Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 97.06 kB / 16.98 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008658/0.0008658, allocations: 183.1 kB / 17.87 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 223.2 MB / 241.8 MB, free: 14.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2252/0.2252, allocations: 44.23 MB / 337.1 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003209/0.0003211, allocations: 8 kB / 409.6 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1456/0.146, allocations: 61.91 MB / 471.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.00254/0.1486, allocations: 1.805 MB / 473.3 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001195/0.1498, allocations: 0.7056 MB / 474 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.1499, allocations: 4 kB / 474 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001114/0.15, allocations: 19.84 kB / 474.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001716/0.1502, allocations: 75.78 kB / 474.1 MB, free: 11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003451/0.1506, allocations: 99.8 kB / 474.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002667/0.1508, allocations: 212 kB / 474.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001667/0.151, allocations: 64.77 kB / 474.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001818/0.1512, allocations: 115.6 kB / 474.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002231/0.1514, allocations: 139.5 kB / 474.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.429e-05/0.1515, allocations: 15.98 kB / 474.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001269/0.1516, allocations: 47.97 kB / 474.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.598e-05/0.1517, allocations: 55.83 kB / 474.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.508e-05/0.1518, allocations: 65.58 kB / 474.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002787/0.1521, allocations: 239.6 kB / 475.2 MB, free: 9.961 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1521, allocations: 0 / 475.2 MB, free: 9.961 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1521, allocations: 3.938 kB / 475.2 MB, free: 9.957 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.1521, allocations: 4 kB / 475.2 MB, free: 9.953 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0009904/0.1531, allocations: 0.5146 MB / 475.7 MB, free: 9.387 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.292e-05/0.1532, allocations: 8.031 kB / 475.7 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.651e-05/0.1533, allocations: 58.53 kB / 475.8 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.837e-05/0.1534, allocations: 27.62 kB / 475.8 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003407/0.1537, allocations: 238.7 kB / 476 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.744e-05/0.1538, allocations: 20.44 kB / 476 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.9e-05/0.1538, allocations: 31.94 kB / 476.1 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005146/0.1543, allocations: 259.2 kB / 476.3 MB, free: 8.703 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.1544, allocations: 4 kB / 476.3 MB, free: 8.699 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.909e-05/0.1544, allocations: 4 kB / 476.3 MB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.1544, allocations: 7.938 kB / 476.3 MB, free: 8.688 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004695/0.1549, allocations: 241.6 kB / 476.6 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001363/0.1563, allocations: 0.7479 MB / 477.3 MB, free: 7.652 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005112/0.1568, allocations: 250.4 kB / 477.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.862e-05/0.1568, allocations: 4 kB / 477.6 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/0.1569, allocations: 38.55 kB / 477.6 MB, free: 7.348 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.223e-06/0.1569, allocations: 0 / 477.6 MB, free: 7.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.003071/0.1599, allocations: 1.502 MB / 479.1 MB, free: 5.734 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.273e-05/0.16, allocations: 55.41 kB / 479.2 MB, free: 5.668 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001907/0.1602, allocations: 202.5 kB / 479.4 MB, free: 5.457 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.939e-05/0.1602, allocations: 33.7 kB / 479.4 MB, free: 5.418 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.17e-05/0.1603, allocations: 136.8 kB / 479.5 MB, free: 5.281 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.151e-05/0.1604, allocations: 114.5 kB / 479.6 MB, free: 5.168 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.929e-05/0.1605, allocations: 4 kB / 479.6 MB, free: 5.164 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.1606, allocations: 330.8 kB / 480 MB, free: 4.832 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002341/0.1608, allocations: 124 kB / 480.1 MB, free: 4.711 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000253/0.1611, allocations: 172.2 kB / 480.3 MB, free: 4.531 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002156/0.1613, allocations: 112 kB / 480.4 MB, free: 4.422 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.1613, allocations: 0 / 480.4 MB, free: 4.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008133/0.1621, allocations: 457.8 kB / 480.8 MB, free: 3.965 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.1622, allocations: 11.98 kB / 480.8 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.1622, allocations: 0 / 480.8 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005056/0.1627, allocations: 240.7 kB / 481.1 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002199/0.1629, allocations: 59.86 kB / 481.1 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007451/0.1637, allocations: 0.7437 MB / 481.9 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002483/0.1639, allocations: 52.05 kB / 481.9 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.86e-05/0.164, allocations: 12 kB / 481.9 MB, free: 2.824 MB / 350.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,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001519/0.1641, allocations: 146.8 kB / 482.1 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.868e-05/0.1642, allocations: 27.66 kB / 482.1 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.554e-05/0.1643, allocations: 30.66 kB / 482.1 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.1643, allocations: 7.938 kB / 482.1 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.1643, allocations: 0 / 482.1 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.1643, allocations: 7.969 kB / 482.1 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001465/0.1658, allocations: 0.9598 MB / 483.1 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.1658, allocations: 0 / 483.1 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002094/0.166, allocations: 51.92 kB / 483.2 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003652/0.1664, allocations: 212.7 kB / 483.4 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.763e-05/0.1664, allocations: 15.98 kB / 483.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005968/0.167, allocations: 0.7123 MB / 484.1 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.646e-06/0.1671, allocations: 4.031 kB / 484.1 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.1681, allocations: 0.6585 MB / 484.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001124/0.1682, allocations: 120.9 kB / 484.9 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.88e-05/0.1683, allocations: 8 kB / 484.9 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002613/0.1685, allocations: 55.97 kB / 484.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001361/0.1687, allocations: 51.89 kB / 485 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.249e-05/0.1687, allocations: 15.98 kB / 485 MB, free: 15.6 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001154/0.1688, allocations: 143 kB / 485.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1688, allocations: 0 / 485.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003552/0.1692, allocations: 72 kB / 485.2 MB, free: 15.39 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001408/0.1706, allocations: 1.299 MB / 486.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006889/0.1713, allocations: 315.7 kB / 486.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.1713, allocations: 0 / 486.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003035/0.1716, allocations: 155.9 kB / 487 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000304/0.172, allocations: 32.38 kB / 487 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003618/0.1756, allocations: 2.413 MB / 489.4 MB, free: 11.08 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003318/0.1759, allocations: 0.7647 MB / 490.2 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.933e-05/0.176, allocations: 22.23 kB / 490.2 MB, free: 10.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000105/0.1761, allocations: 71.41 kB / 490.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of SimCode: time 1.563e-06/0.1762, allocations: 0 / 490.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02096/0.1971, allocations: 6.791 MB / 497.1 MB, free: 3.59 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002967/0.1975, allocations: 222.4 kB / 497.3 MB, free: 3.344 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.849/2.046, allocations: 0 / 497.3 MB, free: 3.344 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat does not exist to compare? outputFormat=mat