Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.001377/0.001377, allocations: 118.6 kB / 18.5 MB, free: 4.434 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.001489/0.001489, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.549/1.549, allocations: 230.2 MB / 254.5 MB, free: 15.41 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.2635/0.2635, allocations: 46.88 MB / 357.4 MB, free: 10.53 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.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",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.002369/0.002369, allocations: 81.55 kB / 0.4912 GB, free: 26.89 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1471/0.1494, allocations: 65.98 MB / 0.5556 GB, free: 9.168 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004211/0.1536, allocations: 2.371 MB / 0.558 GB, free: 6.777 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001729/0.1554, allocations: 0.915 MB / 0.5588 GB, free: 5.855 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.1555, allocations: 4 kB / 0.5589 GB, free: 5.852 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002919/0.1558, allocations: 59.52 kB / 0.5589 GB, free: 5.793 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002133/0.156, allocations: 79.39 kB / 0.559 GB, free: 5.715 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003997/0.1564, allocations: 143.6 kB / 0.5591 GB, free: 5.574 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004148/0.1568, allocations: 351.3 kB / 0.5595 GB, free: 5.23 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000184/0.157, allocations: 69.2 kB / 0.5595 GB, free: 5.156 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002911/0.1573, allocations: 151.6 kB / 0.5597 GB, free: 5.008 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003229/0.1576, allocations: 163.3 kB / 0.5598 GB, free: 4.848 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.373e-05/0.1577, allocations: 28 kB / 0.5598 GB, free: 4.82 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001922/0.1579, allocations: 87.95 kB / 0.5599 GB, free: 4.734 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001256/0.158, allocations: 71.75 kB / 0.56 GB, free: 4.664 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001657/0.1582, allocations: 135.4 kB / 0.5601 GB, free: 4.531 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005636/0.1587, allocations: 386.5 kB / 0.5605 GB, free: 4.152 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1587, allocations: 4 kB / 0.5605 GB, free: 4.148 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1587, allocations: 0 / 0.5605 GB, free: 4.148 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.216e-05/0.1588, allocations: 3.938 kB / 0.5605 GB, free: 4.145 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001068/0.1598, allocations: 0.5844 MB / 0.5611 GB, free: 3.512 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.1599, allocations: 8.031 kB / 0.5611 GB, free: 3.504 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.513e-05/0.16, allocations: 70.66 kB / 0.5612 GB, free: 3.426 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001857/0.1601, allocations: 32.78 kB / 0.5612 GB, free: 3.395 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004534/0.1606, allocations: 260.6 kB / 0.5614 GB, free: 3.102 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.915e-05/0.1606, allocations: 16.94 kB / 0.5614 GB, free: 3.086 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.021e-05/0.1607, allocations: 24.38 kB / 0.5615 GB, free: 3.062 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005816/0.1613, allocations: 276.9 kB / 0.5617 GB, free: 2.785 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.995e-05/0.1613, allocations: 3.953 kB / 0.5617 GB, free: 2.781 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.982e-05/0.1613, allocations: 12 kB / 0.5618 GB, free: 2.77 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.938e-06/0.1613, allocations: 8 kB / 0.5618 GB, free: 2.762 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005315/0.1619, allocations: 238.1 kB / 0.562 GB, free: 2.531 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001525/0.1634, allocations: 0.733 MB / 0.5627 GB, free: 1.746 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005669/0.164, allocations: 226.5 kB / 0.5629 GB, free: 1.516 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000275/0.1642, allocations: 132.7 kB / 0.563 GB, free: 1.383 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.056e-05/0.1643, allocations: 0 / 0.563 GB, free: 1.383 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.996e-05/0.1643, allocations: 34.56 kB / 0.5631 GB, free: 1.34 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.573e-06/0.1643, allocations: 4 kB / 0.5631 GB, free: 1.336 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.003416/0.1677, allocations: 1.411 MB / 0.5645 GB, free: 15.81 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.946e-05/0.1678, allocations: 59.34 kB / 0.5645 GB, free: 15.74 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002702/0.168, allocations: 207.8 kB / 0.5647 GB, free: 15.52 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.109e-05/0.1681, allocations: 37.7 kB / 0.5647 GB, free: 15.48 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.1682, allocations: 140.8 kB / 0.5649 GB, free: 15.34 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001249/0.1683, allocations: 126.9 kB / 0.565 GB, free: 15.21 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/0.1685, allocations: 65.69 kB / 0.5651 GB, free: 15.14 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001807/0.1686, allocations: 334.8 kB / 0.5654 GB, free: 14.8 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002729/0.1689, allocations: 116 kB / 0.5655 GB, free: 14.69 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00031/0.1692, allocations: 168.4 kB / 0.5657 GB, free: 14.52 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000467/0.1697, allocations: 234.8 kB / 0.5659 GB, free: 14.28 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.1697, allocations: 4 kB / 0.5659 GB, free: 14.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009873/0.1707, allocations: 430 kB / 0.5663 GB, free: 13.84 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.6e-05/0.1707, allocations: 11.94 kB / 0.5663 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.1707, allocations: 0 / 0.5663 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005278/0.1712, allocations: 184.7 kB / 0.5665 GB, free: 13.65 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000243/0.1715, allocations: 59.89 kB / 0.5665 GB, free: 13.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008812/0.1724, allocations: 0.7319 MB / 0.5673 GB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002757/0.1726, allocations: 35.95 kB / 0.5673 GB, free: 12.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.866e-05/0.1727, allocations: 12 kB / 0.5673 GB, free: 12.79 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (bearingFriction1.free,bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * 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,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0002112/0.1729, allocations: 157.6 kB / 0.5675 GB, free: 12.62 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.596e-05/0.1729, allocations: 27.92 kB / 0.5675 GB, free: 12.6 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001088/0.1731, allocations: 34.66 kB / 0.5675 GB, free: 12.56 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.1731, allocations: 4 kB / 0.5675 GB, free: 12.56 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.1731, allocations: 0 / 0.5675 GB, free: 12.56 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.1731, allocations: 3.984 kB / 0.5675 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001819/0.1749, allocations: 0.9363 MB / 0.5684 GB, free: 11.55 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.1749, allocations: 0 / 0.5684 GB, free: 11.55 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002409/0.1751, allocations: 51.91 kB / 0.5685 GB, free: 11.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004149/0.1756, allocations: 176.7 kB / 0.5686 GB, free: 11.32 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.065e-05/0.1756, allocations: 12.05 kB / 0.5687 GB, free: 11.31 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007481/0.1763, allocations: 0.6968 MB / 0.5693 GB, free: 10.59 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.1763, allocations: 0 / 0.5693 GB, free: 10.59 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001239/0.1776, allocations: 0.6076 MB / 0.5699 GB, free: 9.961 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002014/0.1778, allocations: 136.9 kB / 0.5701 GB, free: 9.809 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.249e-05/0.1778, allocations: 8 kB / 0.5701 GB, free: 9.801 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002695/0.1781, allocations: 39.95 kB / 0.5701 GB, free: 9.762 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.1782, allocations: 47.92 kB / 0.5702 GB, free: 9.715 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.207e-05/0.1783, allocations: 4 kB / 0.5702 GB, free: 9.711 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001818/0.1784, allocations: 161.6 kB / 0.5703 GB, free: 9.555 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1784, allocations: 0 / 0.5703 GB, free: 9.555 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004056/0.1789, allocations: 71.94 kB / 0.5704 GB, free: 9.484 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002788/0.1816, allocations: 1.384 MB / 0.5717 GB, free: 8.195 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0008961/0.1825, allocations: 295.3 kB / 0.572 GB, free: 7.906 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.1825, allocations: 0 / 0.572 GB, free: 7.906 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003764/0.1829, allocations: 160.3 kB / 0.5722 GB, free: 7.75 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000473/0.1834, allocations: 43.98 kB / 0.5722 GB, free: 7.707 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005382/0.1888, allocations: 3.096 MB / 0.5752 GB, free: 4.496 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004114/0.1892, allocations: 0.7525 MB / 0.576 GB, free: 3.719 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000121/0.1893, allocations: 18.3 kB / 0.576 GB, free: 3.699 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001315/0.1894, allocations: 79.41 kB / 0.5761 GB, free: 3.621 MB / 430.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1894, allocations: 0 / 0.5761 GB, free: 3.621 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05882/0.2483, allocations: 7.93 MB / 0.5838 GB, free: 11.85 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/13.1, allocations: 7.938 kB / 0.5838 GB, free: 11.84 MB / 446.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.336768308654428] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertia4.phi', 'inertia4.w', 'bearingFriction1.mode', 'bearingFriction1.startBackward', 'bearingFriction1.startForward'] 13.250936744734645 13.273945402 13.110894285 Calling exit ...