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.001446/0.001446, allocations: 120.2 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.001467/0.001467, allocations: 205 kB / 21.45 MB, free: 1.629 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.502/1.502, allocations: 230.4 MB / 254.7 MB, free: 15.02 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.2447/0.2447, allocations: 46.92 MB / 357.7 MB, free: 10.21 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.00227/0.00227, allocations: 87.84 kB / 0.4917 GB, free: 7.754 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1357, allocations: 66.04 MB / 0.5561 GB, free: 5.586 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007908/0.1436, allocations: 5.797 MB / 0.5618 GB, free: 15.75 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004936/0.1485, allocations: 2.364 MB / 0.5641 GB, free: 13.38 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001007/0.1496, allocations: 55.56 kB / 0.5642 GB, free: 13.33 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006104/0.1502, allocations: 226 kB / 0.5644 GB, free: 13.11 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005227/0.1507, allocations: 182.3 kB / 0.5646 GB, free: 12.93 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001181/0.1519, allocations: 478.9 kB / 0.565 GB, free: 12.46 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001346/0.1532, allocations: 1.106 MB / 0.5661 GB, free: 11.35 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007368/0.154, allocations: 441.5 kB / 0.5665 GB, free: 10.89 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005425/0.1545, allocations: 382.7 kB / 0.5669 GB, free: 10.52 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004564/0.155, allocations: 398 kB / 0.5673 GB, free: 10.12 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001326/0.1551, allocations: 100 kB / 0.5673 GB, free: 10.03 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000307/0.1554, allocations: 156 kB / 0.5675 GB, free: 9.875 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002187/0.1556, allocations: 219.3 kB / 0.5677 GB, free: 9.66 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004686/0.1561, allocations: 477.6 kB / 0.5682 GB, free: 9.191 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001485/0.1576, allocations: 1.276 MB / 0.5694 GB, free: 7.91 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1576, allocations: 0 / 0.5694 GB, free: 7.91 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1576, allocations: 0 / 0.5694 GB, free: 7.91 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.699e-05/0.1576, allocations: 0 / 0.5694 GB, free: 7.91 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.001721/0.1593, allocations: 1.168 MB / 0.5705 GB, free: 6.691 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.1594, allocations: 12.03 kB / 0.5706 GB, free: 6.68 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000165/0.1595, allocations: 139.9 kB / 0.5707 GB, free: 6.535 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002745/0.1598, allocations: 120.2 kB / 0.5708 GB, free: 6.418 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009455/0.1607, allocations: 0.5945 MB / 0.5714 GB, free: 5.781 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.316e-05/0.1608, allocations: 66 kB / 0.5715 GB, free: 5.715 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001353/0.1609, allocations: 107.9 kB / 0.5716 GB, free: 5.609 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001566/0.1625, allocations: 0.8852 MB / 0.5724 GB, free: 4.664 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.6e-05/0.1625, allocations: 11.97 kB / 0.5724 GB, free: 4.652 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.18e-05/0.1626, allocations: 40 kB / 0.5725 GB, free: 4.613 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.224e-05/0.1626, allocations: 24 kB / 0.5725 GB, free: 4.59 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001093/0.1637, allocations: 0.519 MB / 0.573 GB, free: 4.066 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004085/0.1678, allocations: 3.616 MB / 0.5765 GB, free: 300 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005736/0.1684, allocations: 208.3 kB / 0.5767 GB, free: 80 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002037/0.1686, allocations: 96.83 kB / 0.5768 GB, free: 15.98 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002512/0.1689, allocations: 247.3 kB / 0.5771 GB, free: 15.68 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.075e-05/0.1689, allocations: 38.55 kB / 0.5771 GB, free: 15.64 MB / 446.1 MB Notification: Performance of pre-optimization done (n=30): time 1.734e-06/0.1689, allocations: 0 / 0.5771 GB, free: 15.64 MB / 446.1 MB Notification: Performance of matching and sorting (n=35): time 0.002702/0.1716, allocations: 1.297 MB / 0.5784 GB, free: 14.24 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.625e-05/0.1716, allocations: 59.34 kB / 0.5784 GB, free: 14.17 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004763/0.1721, allocations: 409.8 kB / 0.5788 GB, free: 13.77 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.143e-05/0.1721, allocations: 29.7 kB / 0.5788 GB, free: 13.73 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003457/0.1725, allocations: 483.5 kB / 0.5793 GB, free: 13.25 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/0.1726, allocations: 142.8 kB / 0.5794 GB, free: 13.11 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001483/0.1728, allocations: 102.2 kB / 0.5795 GB, free: 13.01 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000192/0.1729, allocations: 358.8 kB / 0.5799 GB, free: 12.65 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000234/0.1732, allocations: 121.1 kB / 0.58 GB, free: 12.53 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000388/0.1736, allocations: 298.1 kB / 0.5803 GB, free: 12.15 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006853/0.1743, allocations: 463.6 kB / 0.5807 GB, free: 11.61 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1743, allocations: 4 kB / 0.5807 GB, free: 11.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008972/0.1752, allocations: 0.5126 MB / 0.5812 GB, free: 11.09 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.1752, allocations: 8 kB / 0.5812 GB, free: 11.08 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.349e-05/0.1752, allocations: 12.78 kB / 0.5812 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002033/0.1754, allocations: 48.84 kB / 0.5813 GB, free: 11.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004093/0.1758, allocations: 127.8 kB / 0.5814 GB, free: 10.89 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004432/0.1762, allocations: 0.5562 MB / 0.582 GB, free: 10.31 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002083/0.1765, allocations: 16 kB / 0.582 GB, free: 10.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.889e-05/0.1765, allocations: 31.98 kB / 0.582 GB, free: 10.26 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.0003244/0.1768, allocations: 225.7 kB / 0.5822 GB, free: 10.03 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.331e-05/0.1769, allocations: 67.53 kB / 0.5823 GB, free: 9.965 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006618/0.1776, allocations: 322.9 kB / 0.5826 GB, free: 9.637 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.1776, allocations: 4 kB / 0.5826 GB, free: 9.633 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.1776, allocations: 7.938 kB / 0.5826 GB, free: 9.625 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.1776, allocations: 3.984 kB / 0.5826 GB, free: 9.621 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001614/0.1792, allocations: 1.051 MB / 0.5836 GB, free: 8.496 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1792, allocations: 0 / 0.5836 GB, free: 8.496 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003718/0.1796, allocations: 79.89 kB / 0.5837 GB, free: 8.418 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001346/0.1797, allocations: 36.83 kB / 0.5837 GB, free: 8.379 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.777e-05/0.1798, allocations: 16.14 kB / 0.5838 GB, free: 8.363 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004114/0.1802, allocations: 0.5407 MB / 0.5843 GB, free: 7.797 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/0.1802, allocations: 7.969 kB / 0.5843 GB, free: 7.789 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008609/0.181, allocations: 0.5656 MB / 0.5848 GB, free: 7.184 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.1811, allocations: 120.8 kB / 0.585 GB, free: 7.047 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.137e-05/0.1812, allocations: 12 kB / 0.585 GB, free: 7.035 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001687/0.1814, allocations: 8 kB / 0.585 GB, free: 7.027 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.699e-05/0.1814, allocations: 27.89 kB / 0.585 GB, free: 7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-05/0.1815, allocations: 16 kB / 0.585 GB, free: 6.984 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000329/0.1818, allocations: 271.1 kB / 0.5853 GB, free: 6.727 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1818, allocations: 0 / 0.5853 GB, free: 6.727 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000579/0.1824, allocations: 127.9 kB / 0.5854 GB, free: 6.602 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.001342/0.1837, allocations: 1.112 MB / 0.5865 GB, free: 5.441 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0007187/0.1844, allocations: 311.6 kB / 0.5868 GB, free: 5.137 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.1844, allocations: 1.688 kB / 0.5868 GB, free: 5.137 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003013/0.1847, allocations: 132.1 kB / 0.5869 GB, free: 5.008 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005959/0.1853, allocations: 75.58 kB / 0.587 GB, free: 4.938 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2495/0.4348, allocations: 4.843 MB / 0.5917 GB, free: 34.18 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004307/0.4353, allocations: 0.9562 MB / 0.5926 GB, free: 33.48 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002286/0.4355, allocations: 62.69 kB / 0.5927 GB, free: 33.47 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003099/0.4358, allocations: 295.9 kB / 0.593 GB, free: 33.46 MB / 446.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4358, allocations: 0 / 0.593 GB, free: 33.46 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0486/0.4844, allocations: 9.515 MB / 0.6023 GB, free: 32.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.65/13.13, allocations: 7.438 kB / 0.6023 GB, free: 32.43 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.326654077973217] 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.228213102091104 13.241149962 13.081082197 Calling exit ...