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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001782/0.001782, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001961/0.001961, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.582/1.582, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2329/0.2329, allocations: 46.11 MB / 344.2 MB, free: 11.55 MB / 286.1 MB 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.002252/0.002252, allocations: 77.72 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1406/0.1429, allocations: 62.45 MB / 480.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004532/0.1475, allocations: 2.363 MB / 482.6 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001695/0.1492, allocations: 0.8958 MB / 483.5 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001306/0.1493, allocations: 7.938 kB / 483.5 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002783/0.1497, allocations: 51.58 kB / 483.5 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002088/0.1499, allocations: 79.33 kB / 483.6 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003884/0.1503, allocations: 147.6 kB / 483.7 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004138/0.1507, allocations: 343.4 kB / 484.1 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002123/0.1509, allocations: 80.92 kB / 484.2 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002863/0.1512, allocations: 155.5 kB / 484.3 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002619/0.1515, allocations: 159.4 kB / 484.5 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.673e-05/0.1516, allocations: 31.94 kB / 484.5 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001902/0.1518, allocations: 91.97 kB / 484.6 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001345/0.1519, allocations: 71.75 kB / 484.7 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001707/0.1521, allocations: 135.4 kB / 484.8 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004897/0.1526, allocations: 379.1 kB / 485.2 MB, free: 144 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.1526, allocations: 0 / 485.2 MB, free: 144 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1526, allocations: 0 / 485.2 MB, free: 144 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.1526, allocations: 0 / 485.2 MB, free: 144 kB / 350.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.001056/0.1537, allocations: 0.581 MB / 485.7 MB, free: 15.51 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.1537, allocations: 15.97 kB / 485.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.345e-05/0.1538, allocations: 50.73 kB / 485.8 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001796/0.154, allocations: 36.64 kB / 485.8 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003152/0.1543, allocations: 252.5 kB / 486.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.309e-05/0.1544, allocations: 16.94 kB / 486.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.183e-05/0.1544, allocations: 24.38 kB / 486.1 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00054/0.155, allocations: 272.9 kB / 486.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.155, allocations: 4 kB / 486.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.13e-05/0.155, allocations: 8 kB / 486.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.1551, allocations: 4 kB / 486.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005403/0.1556, allocations: 246 kB / 486.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001453/0.1571, allocations: 0.7444 MB / 487.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005733/0.1577, allocations: 248.7 kB / 487.6 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002781/0.1579, allocations: 136.8 kB / 487.8 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.272e-05/0.158, allocations: 8.062 kB / 487.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.158, allocations: 30.56 kB / 487.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.623e-06/0.158, allocations: 3.938 kB / 487.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.003361/0.1614, allocations: 1.427 MB / 489.2 MB, free: 11.78 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.235e-05/0.1615, allocations: 63.34 kB / 489.3 MB, free: 11.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002417/0.1617, allocations: 203.8 kB / 489.5 MB, free: 11.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.293e-05/0.1618, allocations: 37.7 kB / 489.5 MB, free: 11.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.1619, allocations: 136.6 kB / 489.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.162, allocations: 126.3 kB / 489.8 MB, free: 11.19 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001235/0.1621, allocations: 61.69 kB / 489.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.1623, allocations: 338.8 kB / 490.2 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002585/0.1626, allocations: 119.9 kB / 490.3 MB, free: 10.67 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002998/0.1629, allocations: 160.4 kB / 490.5 MB, free: 10.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004584/0.1634, allocations: 239.2 kB / 490.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.1634, allocations: 0 / 490.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008987/0.1643, allocations: 429.7 kB / 491.1 MB, free: 9.824 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.1643, allocations: 16 kB / 491.1 MB, free: 9.809 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.1643, allocations: 3.938 kB / 491.1 MB, free: 9.805 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005321/0.1649, allocations: 188.7 kB / 491.3 MB, free: 9.617 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002211/0.1651, allocations: 51.91 kB / 491.4 MB, free: 9.566 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008147/0.1659, allocations: 0.732 MB / 492.1 MB, free: 8.809 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002648/0.1662, allocations: 35.95 kB / 492.1 MB, free: 8.773 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3e-05/0.1662, allocations: 12 kB / 492.1 MB, free: 8.762 MB / 366.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.0001904/0.1664, allocations: 153.7 kB / 492.3 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.529e-05/0.1665, allocations: 23.72 kB / 492.3 MB, free: 8.578 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.246e-05/0.1666, allocations: 38.72 kB / 492.4 MB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.1666, allocations: 4 kB / 492.4 MB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.1666, allocations: 0 / 492.4 MB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.1666, allocations: 3.984 kB / 492.4 MB, free: 8.531 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001737/0.1684, allocations: 0.9479 MB / 493.3 MB, free: 7.516 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1684, allocations: 0 / 493.3 MB, free: 7.516 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002246/0.1686, allocations: 51.91 kB / 493.4 MB, free: 7.465 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003937/0.169, allocations: 172.8 kB / 493.5 MB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.736e-05/0.1691, allocations: 7.984 kB / 493.5 MB, free: 7.285 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007214/0.1698, allocations: 0.6927 MB / 494.2 MB, free: 6.566 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.1698, allocations: 4.031 kB / 494.2 MB, free: 6.562 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/0.171, allocations: 0.6106 MB / 494.8 MB, free: 5.93 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001441/0.1711, allocations: 128.8 kB / 495 MB, free: 5.785 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.798e-05/0.1712, allocations: 11.98 kB / 495 MB, free: 5.773 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002671/0.1715, allocations: 32.03 kB / 495 MB, free: 5.742 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/0.1716, allocations: 47.92 kB / 495.1 MB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-05/0.1717, allocations: 19.92 kB / 495.1 MB, free: 5.676 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001491/0.1718, allocations: 149.5 kB / 495.2 MB, free: 5.531 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1718, allocations: 0 / 495.2 MB, free: 5.531 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003795/0.1722, allocations: 79.92 kB / 495.3 MB, free: 5.453 MB / 366.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.00267/0.1749, allocations: 1.399 MB / 496.7 MB, free: 4.141 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008119/0.1757, allocations: 323.7 kB / 497 MB, free: 3.824 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.1757, allocations: 0 / 497 MB, free: 3.824 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003558/0.1761, allocations: 168.3 kB / 497.2 MB, free: 3.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004627/0.1766, allocations: 38.77 kB / 497.2 MB, free: 3.625 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005435/0.182, allocations: 3.089 MB / 0.4886 GB, free: 444 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000451/0.1825, allocations: 0.7564 MB / 0.4893 GB, free: 15.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001216/0.1826, allocations: 26.27 kB / 0.4893 GB, free: 15.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001337/0.1828, allocations: 75.41 kB / 0.4894 GB, free: 15.54 MB / 382.1 MB Notification: Performance of SimCode: time 1.233e-06/0.1828, allocations: 0 / 0.4894 GB, free: 15.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03932/0.2221, allocations: 7.696 MB / 0.4969 GB, free: 8.027 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.05, allocations: 5.469 kB / 0.4969 GB, free: 8.027 MB / 382.1 MB (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.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1)