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.001372/0.001372, allocations: 122.5 kB / 18.51 MB, free: 4.52 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.001648/0.001648, allocations: 215.2 kB / 21.46 MB, free: 1.566 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.559/1.559, allocations: 230.4 MB / 254.7 MB, free: 15.03 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.2798/0.2798, allocations: 46.93 MB / 357.7 MB, free: 10.2 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.002347/0.002347, allocations: 87.78 kB / 0.4917 GB, free: 7.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.135, allocations: 66.04 MB / 0.5561 GB, free: 5.559 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004093/0.1391, allocations: 2.364 MB / 0.5585 GB, free: 3.176 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001634/0.1407, allocations: 0.9073 MB / 0.5593 GB, free: 2.262 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001267/0.1408, allocations: 4 kB / 0.5593 GB, free: 2.258 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002839/0.1411, allocations: 63.44 kB / 0.5594 GB, free: 2.195 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000217/0.1413, allocations: 75.41 kB / 0.5595 GB, free: 2.121 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003954/0.1417, allocations: 143.6 kB / 0.5596 GB, free: 1.98 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004333/0.1421, allocations: 359.2 kB / 0.56 GB, free: 1.629 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001779/0.1423, allocations: 60.92 kB / 0.56 GB, free: 1.562 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000279/0.1426, allocations: 159.5 kB / 0.5602 GB, free: 1.406 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000268/0.1429, allocations: 167.4 kB / 0.5603 GB, free: 1.242 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.147e-05/0.1429, allocations: 28 kB / 0.5604 GB, free: 1.215 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001879/0.1431, allocations: 83.98 kB / 0.5604 GB, free: 1.133 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001184/0.1432, allocations: 75.8 kB / 0.5605 GB, free: 1.059 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001568/0.1434, allocations: 139.2 kB / 0.5606 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005067/0.1439, allocations: 390.6 kB / 0.561 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1439, allocations: 0 / 0.561 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1439, allocations: 0 / 0.561 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.1439, allocations: 0 / 0.561 GB, free: 0.5391 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.001087/0.145, allocations: 0.5921 MB / 0.5616 GB, free: 15.9 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.145, allocations: 8.031 kB / 0.5616 GB, free: 15.89 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.754e-05/0.1451, allocations: 62.73 kB / 0.5617 GB, free: 15.82 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001905/0.1453, allocations: 36.78 kB / 0.5617 GB, free: 15.79 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004066/0.1457, allocations: 252.6 kB / 0.5619 GB, free: 15.5 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.974e-05/0.1457, allocations: 24.92 kB / 0.562 GB, free: 15.48 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.652e-05/0.1458, allocations: 20.38 kB / 0.562 GB, free: 15.46 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005664/0.1464, allocations: 272.9 kB / 0.5622 GB, free: 15.18 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.1464, allocations: 7.938 kB / 0.5622 GB, free: 15.18 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.155e-05/0.1464, allocations: 8 kB / 0.5623 GB, free: 15.17 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.1464, allocations: 7.984 kB / 0.5623 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005478/0.147, allocations: 234.1 kB / 0.5625 GB, free: 14.93 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00147/0.1484, allocations: 0.733 MB / 0.5632 GB, free: 14.15 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000613/0.1491, allocations: 230.4 kB / 0.5634 GB, free: 13.91 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002706/0.1493, allocations: 124.4 kB / 0.5635 GB, free: 13.79 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.528e-05/0.1494, allocations: 8 kB / 0.5635 GB, free: 13.79 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.814e-05/0.1494, allocations: 42.56 kB / 0.5636 GB, free: 13.73 MB / 430.1 MB Notification: Performance of pre-optimization done (n=26): time 1.533e-06/0.1494, allocations: 0 / 0.5636 GB, free: 13.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=34): time 0.003471/0.1529, allocations: 1.411 MB / 0.565 GB, free: 12.21 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.757e-05/0.1529, allocations: 59.41 kB / 0.565 GB, free: 12.14 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002649/0.1532, allocations: 211.7 kB / 0.5652 GB, free: 11.92 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.129e-05/0.1532, allocations: 37.7 kB / 0.5653 GB, free: 11.88 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.1533, allocations: 132.9 kB / 0.5654 GB, free: 11.74 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.1535, allocations: 126.9 kB / 0.5655 GB, free: 11.62 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.1536, allocations: 65.69 kB / 0.5656 GB, free: 11.55 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.1537, allocations: 346.7 kB / 0.5659 GB, free: 11.2 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002808/0.154, allocations: 112 kB / 0.566 GB, free: 11.09 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003112/0.1543, allocations: 163.4 kB / 0.5662 GB, free: 10.92 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004781/0.1548, allocations: 243 kB / 0.5664 GB, free: 10.67 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.1548, allocations: 0 / 0.5664 GB, free: 10.67 MB / 430.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009554/0.1558, allocations: 425.8 kB / 0.5668 GB, free: 10.24 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.1558, allocations: 11.94 kB / 0.5668 GB, free: 10.23 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.1558, allocations: 0 / 0.5668 GB, free: 10.23 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000518/0.1563, allocations: 196.8 kB / 0.567 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002383/0.1566, allocations: 55.91 kB / 0.5671 GB, free: 9.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000886/0.1574, allocations: 0.733 MB / 0.5678 GB, free: 9.223 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002954/0.1577, allocations: 39.98 kB / 0.5678 GB, free: 9.184 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.041e-05/0.1578, allocations: 11.98 kB / 0.5678 GB, free: 9.172 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.0002044/0.158, allocations: 153.8 kB / 0.568 GB, free: 9.012 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.203e-05/0.158, allocations: 19.86 kB / 0.568 GB, free: 8.992 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001062/0.1582, allocations: 42.64 kB / 0.568 GB, free: 8.949 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.1582, allocations: 0 / 0.568 GB, free: 8.949 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.333e-06/0.1582, allocations: 4 kB / 0.568 GB, free: 8.945 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.1582, allocations: 0 / 0.568 GB, free: 8.945 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001779/0.1599, allocations: 0.9362 MB / 0.5689 GB, free: 7.941 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.16, allocations: 4 kB / 0.5689 GB, free: 7.938 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00024/0.1602, allocations: 44.05 kB / 0.569 GB, free: 7.895 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004149/0.1606, allocations: 176.7 kB / 0.5692 GB, free: 7.719 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.857e-05/0.1606, allocations: 8 kB / 0.5692 GB, free: 7.711 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007586/0.1614, allocations: 0.6967 MB / 0.5698 GB, free: 6.988 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.1614, allocations: 3.984 kB / 0.5698 GB, free: 6.984 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001223/0.1626, allocations: 0.6036 MB / 0.5704 GB, free: 6.359 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001598/0.1628, allocations: 128.9 kB / 0.5706 GB, free: 6.215 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.555e-05/0.1628, allocations: 12 kB / 0.5706 GB, free: 6.203 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000274/0.1631, allocations: 31.95 kB / 0.5706 GB, free: 6.172 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.1632, allocations: 47.98 kB / 0.5706 GB, free: 6.125 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.778e-05/0.1633, allocations: 19.98 kB / 0.5707 GB, free: 6.105 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001726/0.1634, allocations: 149.5 kB / 0.5708 GB, free: 5.961 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1634, allocations: 0 / 0.5708 GB, free: 5.961 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003769/0.1638, allocations: 75.88 kB / 0.5709 GB, free: 5.887 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.00272/0.1665, allocations: 1.392 MB / 0.5722 GB, free: 4.582 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0008043/0.1674, allocations: 291.5 kB / 0.5725 GB, free: 4.297 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.1674, allocations: 4 kB / 0.5725 GB, free: 4.293 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003608/0.1677, allocations: 156.3 kB / 0.5727 GB, free: 4.141 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004367/0.1682, allocations: 43.72 kB / 0.5727 GB, free: 4.098 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005385/0.1735, allocations: 3.085 MB / 0.5757 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005176/0.1741, allocations: 0.7563 MB / 0.5765 GB, free: 128 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001322/0.1742, allocations: 34.27 kB / 0.5765 GB, free: 92 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001544/0.1743, allocations: 71.41 kB / 0.5766 GB, free: 20 kB / 430.1 MB Notification: Performance of SimCode: time 1.954e-06/0.1743, allocations: 0 / 0.5766 GB, free: 20 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03922/0.2136, allocations: 7.92 MB / 0.5843 GB, free: 8.254 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.66/12.88, allocations: 5.156 kB / 0.5843 GB, free: 8.254 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219912 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.459588611032814] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertia4.phi', 'inertia4.w', 'bearingFriction1.mode', 'bearingFriction1.startBackward', 'bearingFriction1.startForward'] 13.030985830817372 13.263722522 13.117280838 Calling exit ...