Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007276/0.007276, allocations: 100.8 kB / 15.87 MB, free: 6.309 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.001193/0.001193, allocations: 195.8 kB / 16.79 MB, free: 6.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.676/1.676, allocations: 205.1 MB / 222.7 MB, free: 4.711 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4108/0.4108, allocations: 43.5 MB / 313.5 MB, free: 8.516 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 66.56 kB / 382 MB, free: 8.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.1527, allocations: 57.79 MB / 439.8 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003611/0.1564, allocations: 2.287 MB / 442.1 MB, free: 12.54 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001391/0.1578, allocations: 0.7802 MB / 442.9 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.1579, allocations: 4 kB / 442.9 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002121/0.1582, allocations: 27.78 kB / 442.9 MB, free: 11.72 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001355/0.1583, allocations: 59.53 kB / 443 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003779/0.1587, allocations: 115.8 kB / 443.1 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003292/0.159, allocations: 311.3 kB / 443.4 MB, free: 11.24 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001898/0.1592, allocations: 84.94 kB / 443.5 MB, free: 11.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002071/0.1595, allocations: 127.5 kB / 443.6 MB, free: 11.04 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002127/0.1597, allocations: 143.4 kB / 443.7 MB, free: 10.89 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.166e-05/0.1597, allocations: 16 kB / 443.8 MB, free: 10.88 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001498/0.1599, allocations: 63.95 kB / 443.8 MB, free: 10.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.151e-05/0.16, allocations: 59.8 kB / 443.9 MB, free: 10.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001247/0.1601, allocations: 119.4 kB / 444 MB, free: 10.64 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003619/0.1605, allocations: 327.2 kB / 444.3 MB, free: 10.32 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.1605, allocations: 0 / 444.3 MB, free: 10.32 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.71e-07/0.1605, allocations: 3.938 kB / 444.3 MB, free: 10.32 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.1605, allocations: 4 kB / 444.3 MB, free: 10.31 MB / 382.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.001015/0.1615, allocations: 0.5497 MB / 444.9 MB, free: 9.715 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.1616, allocations: 12.03 kB / 444.9 MB, free: 9.703 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.246e-05/0.1617, allocations: 24.66 kB / 444.9 MB, free: 9.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002996/0.162, allocations: 247.9 kB / 445.1 MB, free: 9.398 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.229e-05/0.162, allocations: 20.81 kB / 445.2 MB, free: 9.379 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.833e-05/0.1621, allocations: 20.38 kB / 445.2 MB, free: 9.359 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005971/0.1627, allocations: 267.4 kB / 445.4 MB, free: 9.094 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.814e-05/0.1627, allocations: 7.891 kB / 445.5 MB, free: 9.086 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.306e-05/0.1628, allocations: 12 kB / 445.5 MB, free: 9.074 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.1628, allocations: 4 kB / 445.5 MB, free: 9.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004668/0.1632, allocations: 233.6 kB / 445.7 MB, free: 8.844 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0013/0.1645, allocations: 0.7362 MB / 446.4 MB, free: 8.055 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005153/0.1651, allocations: 238.5 kB / 446.7 MB, free: 7.812 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002688/0.1654, allocations: 140.8 kB / 446.8 MB, free: 7.672 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.321e-05/0.1654, allocations: 4 kB / 446.8 MB, free: 7.668 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001296/0.1655, allocations: 38.5 kB / 446.8 MB, free: 7.621 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 1.152e-06/0.1655, allocations: 0 / 446.8 MB, free: 7.621 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.003256/0.1688, allocations: 1.457 MB / 448.3 MB, free: 6.055 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.24e-05/0.1689, allocations: 55.41 kB / 448.4 MB, free: 5.988 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002004/0.1691, allocations: 194.6 kB / 448.5 MB, free: 5.785 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.715e-05/0.1691, allocations: 41.69 kB / 448.6 MB, free: 5.738 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.063e-05/0.1692, allocations: 136.7 kB / 448.7 MB, free: 5.602 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.1693, allocations: 110.5 kB / 448.8 MB, free: 5.492 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.1695, allocations: 61.69 kB / 448.9 MB, free: 5.426 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.1696, allocations: 338.8 kB / 449.2 MB, free: 5.086 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003275/0.17, allocations: 127.7 kB / 449.3 MB, free: 4.961 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002799/0.1702, allocations: 171.2 kB / 449.5 MB, free: 4.781 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004344/0.1707, allocations: 251.1 kB / 449.8 MB, free: 4.523 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1707, allocations: 0 / 449.8 MB, free: 4.523 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007511/0.1714, allocations: 433.9 kB / 450.2 MB, free: 4.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.1715, allocations: 8 kB / 450.2 MB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.1715, allocations: 0 / 450.2 MB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005902/0.1721, allocations: 232.7 kB / 450.4 MB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002245/0.1723, allocations: 63.95 kB / 450.5 MB, free: 3.789 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008958/0.1732, allocations: 0.7552 MB / 451.2 MB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003137/0.1736, allocations: 40.05 kB / 451.3 MB, free: 2.969 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.869e-05/0.1736, allocations: 12 kB / 451.3 MB, free: 2.957 MB / 382.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,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0001549/0.1738, allocations: 150 kB / 451.4 MB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.469e-05/0.1738, allocations: 27.66 kB / 451.5 MB, free: 2.773 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001788/0.174, allocations: 38.58 kB / 451.5 MB, free: 2.734 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.174, allocations: 7.938 kB / 451.5 MB, free: 2.727 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.174, allocations: 0 / 451.5 MB, free: 2.727 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.174, allocations: 7.984 kB / 451.5 MB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001863/0.1759, allocations: 0.9559 MB / 452.5 MB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.1759, allocations: 0 / 452.5 MB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002192/0.1761, allocations: 43.97 kB / 452.5 MB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004133/0.1766, allocations: 224.6 kB / 452.7 MB, free: 1.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.795e-05/0.1766, allocations: 7.984 kB / 452.7 MB, free: 1.422 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006628/0.1773, allocations: 0.7084 MB / 453.4 MB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.1773, allocations: 8.047 kB / 453.5 MB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001179/0.1785, allocations: 0.641 MB / 454.1 MB, free: 16 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2671/0.4456, allocations: 119.8 kB / 454.2 MB, free: 49.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.566e-05/0.4458, allocations: 15.94 kB / 454.2 MB, free: 49.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000322/0.4461, allocations: 35.62 kB / 454.3 MB, free: 49.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000171/0.4463, allocations: 43.97 kB / 454.3 MB, free: 49.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.977e-05/0.4463, allocations: 14.47 kB / 454.3 MB, free: 49.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001659/0.4465, allocations: 146.2 kB / 454.5 MB, free: 49.17 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.11e-07/0.4465, allocations: 0 / 454.5 MB, free: 49.17 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004832/0.447, allocations: 77.22 kB / 454.5 MB, free: 49.17 MB / 382.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,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002404/0.4472, allocations: 125 kB / 454.7 MB, free: 49.08 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007465/0.448, allocations: 316.1 kB / 455 MB, free: 49.08 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.448, allocations: 0 / 455 MB, free: 49.08 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003048/0.4483, allocations: 160.4 kB / 455.1 MB, free: 49.08 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004179/0.4487, allocations: 41.84 kB / 455.2 MB, free: 49.08 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001773/0.4505, allocations: 0.838 MB / 456 MB, free: 48.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000207/0.4507, allocations: 0.752 MB / 456.8 MB, free: 48.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.089e-05/0.4508, allocations: 23.08 kB / 456.8 MB, free: 48.05 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.527e-05/0.4509, allocations: 22.84 kB / 456.8 MB, free: 48.05 MB / 382.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4509, allocations: 0 / 456.8 MB, free: 48.05 MB / 382.1 MB Notification: Performance of Templates: time 0.008019/0.4589, allocations: 4.789 MB / 461.6 MB, free: 47.8 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches