Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001897/0.001897, allocations: 121.3 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002306/0.002306, allocations: 210.5 kB / 21.46 MB, free: 1.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.518/1.518, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2297/0.2297, allocations: 46.89 MB / 357.4 MB, free: 10.54 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00229/0.00229, allocations: 83.86 kB / 0.4912 GB, free: 8.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1361, allocations: 65.99 MB / 0.5556 GB, free: 6.473 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007497/0.1436, allocations: 5.793 MB / 0.5613 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004449/0.148, allocations: 2.36 MB / 0.5636 GB, free: 14.28 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000699/0.1487, allocations: 47.69 kB / 0.5636 GB, free: 14.23 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005294/0.1493, allocations: 230 kB / 0.5639 GB, free: 14 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004445/0.1497, allocations: 186.3 kB / 0.564 GB, free: 13.82 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001142/0.1509, allocations: 474.9 kB / 0.5645 GB, free: 13.36 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001211/0.1521, allocations: 1.114 MB / 0.5656 GB, free: 12.24 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006629/0.1527, allocations: 429.5 kB / 0.566 GB, free: 11.79 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004881/0.1532, allocations: 382.7 kB / 0.5664 GB, free: 11.42 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000443/0.1537, allocations: 394 kB / 0.5667 GB, free: 11.03 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00012/0.1538, allocations: 96 kB / 0.5668 GB, free: 10.94 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002662/0.1541, allocations: 159.9 kB / 0.567 GB, free: 10.78 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002053/0.1543, allocations: 211.3 kB / 0.5672 GB, free: 10.57 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004476/0.1547, allocations: 473.5 kB / 0.5676 GB, free: 10.11 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001408/0.1561, allocations: 1.284 MB / 0.5689 GB, free: 8.82 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1561, allocations: 0 / 0.5689 GB, free: 8.82 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1561, allocations: 0 / 0.5689 GB, free: 8.82 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.183e-05/0.1561, allocations: 0 / 0.5689 GB, free: 8.82 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.001691/0.1578, allocations: 1.164 MB / 0.57 GB, free: 7.605 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.1579, allocations: 8.031 kB / 0.57 GB, free: 7.598 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001747/0.158, allocations: 147.9 kB / 0.5702 GB, free: 7.445 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002643/0.1583, allocations: 120.2 kB / 0.5703 GB, free: 7.328 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001021/0.1593, allocations: 0.5984 MB / 0.5709 GB, free: 6.688 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.888e-05/0.1594, allocations: 70 kB / 0.5709 GB, free: 6.617 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001373/0.1595, allocations: 95.95 kB / 0.571 GB, free: 6.523 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001499/0.161, allocations: 0.8853 MB / 0.5719 GB, free: 5.578 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.91e-05/0.1611, allocations: 8 kB / 0.5719 GB, free: 5.57 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.219e-05/0.1611, allocations: 39.94 kB / 0.5719 GB, free: 5.531 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.496e-05/0.1612, allocations: 24 kB / 0.572 GB, free: 5.508 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001058/0.1622, allocations: 0.5268 MB / 0.5725 GB, free: 4.977 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003896/0.1661, allocations: 3.605 MB / 0.576 GB, free: 1.215 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005685/0.1667, allocations: 213.4 kB / 0.5762 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001826/0.1669, allocations: 96.81 kB / 0.5763 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002347/0.1671, allocations: 243.3 kB / 0.5765 GB, free: 0.6055 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.992e-05/0.1671, allocations: 38.56 kB / 0.5766 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of pre-optimization done (n=30): time 1.914e-06/0.1671, allocations: 0 / 0.5766 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of matching and sorting (n=35): time 0.002582/0.1697, allocations: 1.308 MB / 0.5778 GB, free: 15.15 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.093e-05/0.1698, allocations: 63.34 kB / 0.5779 GB, free: 15.08 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004505/0.1702, allocations: 405.8 kB / 0.5783 GB, free: 14.68 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.474e-05/0.1702, allocations: 29.7 kB / 0.5783 GB, free: 14.64 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003517/0.1706, allocations: 479.5 kB / 0.5788 GB, free: 14.17 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001109/0.1707, allocations: 142.8 kB / 0.5789 GB, free: 14.03 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001385/0.1708, allocations: 98.2 kB / 0.579 GB, free: 13.93 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.171, allocations: 358.8 kB / 0.5793 GB, free: 13.57 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002259/0.1713, allocations: 117 kB / 0.5795 GB, free: 13.45 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003771/0.1716, allocations: 310.1 kB / 0.5798 GB, free: 13.06 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006334/0.1723, allocations: 455.6 kB / 0.5802 GB, free: 12.53 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.1723, allocations: 4 kB / 0.5802 GB, free: 12.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008517/0.1731, allocations: 0.5211 MB / 0.5807 GB, free: 12 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.1731, allocations: 8 kB / 0.5807 GB, free: 11.99 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.1732, allocations: 8 kB / 0.5807 GB, free: 11.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001853/0.1733, allocations: 40.88 kB / 0.5808 GB, free: 11.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003916/0.1737, allocations: 127.8 kB / 0.5809 GB, free: 11.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004234/0.1742, allocations: 0.5524 MB / 0.5814 GB, free: 11.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002156/0.1744, allocations: 24 kB / 0.5814 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.762e-05/0.1744, allocations: 28 kB / 0.5815 GB, free: 11.18 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003051/0.1747, allocations: 237.6 kB / 0.5817 GB, free: 10.94 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.638e-05/0.1748, allocations: 51.61 kB / 0.5817 GB, free: 10.89 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000635/0.1754, allocations: 327 kB / 0.5821 GB, free: 10.56 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.1754, allocations: 4 kB / 0.5821 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.1754, allocations: 0 / 0.5821 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1754, allocations: 0 / 0.5821 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001554/0.177, allocations: 1.067 MB / 0.5831 GB, free: 9.414 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.177, allocations: 3.938 kB / 0.5831 GB, free: 9.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000363/0.1774, allocations: 75.97 kB / 0.5832 GB, free: 9.336 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000136/0.1775, allocations: 40.88 kB / 0.5832 GB, free: 9.293 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.787e-05/0.1775, allocations: 11.98 kB / 0.5832 GB, free: 9.281 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003751/0.1779, allocations: 0.5407 MB / 0.5838 GB, free: 8.715 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.1779, allocations: 4.031 kB / 0.5838 GB, free: 8.711 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008333/0.1787, allocations: 0.5538 MB / 0.5843 GB, free: 8.117 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001218/0.1789, allocations: 124.8 kB / 0.5844 GB, free: 7.977 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.915e-05/0.1789, allocations: 8 kB / 0.5844 GB, free: 7.969 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001542/0.1791, allocations: 8 kB / 0.5844 GB, free: 7.961 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.377e-05/0.1791, allocations: 35.94 kB / 0.5845 GB, free: 7.926 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.453e-05/0.1792, allocations: 12.19 kB / 0.5845 GB, free: 7.914 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003053/0.1795, allocations: 271.1 kB / 0.5847 GB, free: 7.652 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1795, allocations: 3.938 kB / 0.5847 GB, free: 7.648 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005642/0.18, allocations: 127.9 kB / 0.5849 GB, free: 7.523 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001277/0.1813, allocations: 1.12 MB / 0.586 GB, free: 6.355 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0007127/0.182, allocations: 305.2 kB / 0.5862 GB, free: 6.059 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.182, allocations: 0 / 0.5862 GB, free: 6.059 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002799/0.1823, allocations: 140.2 kB / 0.5864 GB, free: 5.922 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005697/0.1829, allocations: 85.67 kB / 0.5865 GB, free: 5.844 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007044/0.1899, allocations: 4.845 MB / 0.5912 GB, free: 0.7148 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2312/0.4212, allocations: 0.9539 MB / 0.5921 GB, free: 35.41 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002703/0.4214, allocations: 60.25 kB / 0.5922 GB, free: 35.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003371/0.4218, allocations: 295.3 kB / 0.5925 GB, free: 35.39 MB / 446.1 MB Notification: Performance of SimCode: time 1.673e-06/0.4218, allocations: 0 / 0.5925 GB, free: 35.39 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05151/0.4733, allocations: 9.525 MB / 0.6018 GB, free: 34.34 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.63/13.1, allocations: 4.594 kB / 0.6018 GB, free: 34.34 MB / 446.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.066474814899266] Failed to read output from testmodel.py, exit status != 0: ['time', 'directInertia.inertia.phi', 'directInertia.inertia.w', 'inertia2a.phi', 'inertia2a.w', 'inertia2b.phi', 'inertia2b.w', 'inertia3a.phi', 'inertia3a.w', 'inertia3b.phi', 'inertia3b.w'] 13.196329566184431 13.215022228 13.055028274 Calling exit ...