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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001999/0.001999, allocations: 175.7 kB / 16.76 MB, free: 5.02 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.512/1.512, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007752/0.0007753, allocations: 94.39 kB / 271.3 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3398/0.3398, allocations: 43.55 MB / 363.1 MB, free: 52.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003724/0.0003724, allocations: 12 kB / 432.6 MB, free: 5.211 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1247, allocations: 58.85 MB / 491.5 MB, free: 10.28 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3031/0.4278, allocations: 88.35 MB / 0.5662 GB, free: 13.64 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002373/0.4281, allocations: 71.97 kB / 0.5663 GB, free: 13.57 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01258/0.4407, allocations: 4.542 MB / 0.5707 GB, free: 9.062 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4408, allocations: 0 / 0.5707 GB, free: 9.062 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.4408, allocations: 4 kB / 0.5707 GB, free: 9.059 MB / 394.7 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.000738/0.4415, allocations: 0.5264 MB / 0.5712 GB, free: 8.488 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.4416, allocations: 8.031 kB / 0.5713 GB, free: 8.48 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.739e-05/0.4416, allocations: 24.66 kB / 0.5713 GB, free: 8.457 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00025/0.4419, allocations: 243.9 kB / 0.5715 GB, free: 8.18 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.021e-05/0.4419, allocations: 16.81 kB / 0.5715 GB, free: 8.164 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.656e-05/0.442, allocations: 20.38 kB / 0.5715 GB, free: 8.145 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004564/0.4424, allocations: 256.6 kB / 0.5718 GB, free: 7.891 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.162e-05/0.4425, allocations: 8.094 kB / 0.5718 GB, free: 7.883 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.091e-05/0.4425, allocations: 15.92 kB / 0.5718 GB, free: 7.867 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.39e-05/0.4425, allocations: 4 kB / 0.5718 GB, free: 7.863 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000423/0.443, allocations: 213.6 kB / 0.572 GB, free: 7.656 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001261/0.4442, allocations: 0.7203 MB / 0.5727 GB, free: 6.883 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004027/0.4447, allocations: 219.2 kB / 0.5729 GB, free: 6.66 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002532/0.4449, allocations: 141.3 kB / 0.5731 GB, free: 6.52 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.801e-05/0.445, allocations: 8.234 kB / 0.5731 GB, free: 6.512 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.273e-05/0.445, allocations: 34.8 kB / 0.5731 GB, free: 6.469 MB / 394.7 MB Notification: Performance of pre-optimization done (n=27): time 1.493e-06/0.445, allocations: 0 / 0.5731 GB, free: 6.469 MB / 394.7 MB Notification: Performance of matching and sorting (n=35): time 0.003041/0.4481, allocations: 1.501 MB / 0.5746 GB, free: 4.859 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.39e-05/0.4481, allocations: 55.41 kB / 0.5746 GB, free: 4.793 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001933/0.4483, allocations: 186.5 kB / 0.5748 GB, free: 4.602 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.999e-05/0.4484, allocations: 41.7 kB / 0.5748 GB, free: 4.555 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.711e-05/0.4485, allocations: 124.8 kB / 0.575 GB, free: 4.43 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.4486, allocations: 118.5 kB / 0.5751 GB, free: 4.312 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.867e-05/0.4486, allocations: 8 kB / 0.5751 GB, free: 4.305 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.4488, allocations: 330.8 kB / 0.5754 GB, free: 3.973 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002432/0.449, allocations: 119.7 kB / 0.5755 GB, free: 3.855 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002615/0.4493, allocations: 155.4 kB / 0.5757 GB, free: 3.691 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000409/0.4497, allocations: 232.5 kB / 0.5759 GB, free: 3.453 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.4497, allocations: 0 / 0.5759 GB, free: 3.453 MB / 394.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007578/0.4505, allocations: 421.5 kB / 0.5763 GB, free: 3.031 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.4505, allocations: 8 kB / 0.5763 GB, free: 3.023 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/0.4505, allocations: 0 / 0.5763 GB, free: 3.023 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004612/0.451, allocations: 192.8 kB / 0.5765 GB, free: 2.832 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000237/0.4513, allocations: 55.91 kB / 0.5765 GB, free: 2.777 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007466/0.452, allocations: 0.7085 MB / 0.5772 GB, free: 2.043 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002427/0.4523, allocations: 56.05 kB / 0.5773 GB, free: 1.988 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.431e-05/0.4523, allocations: 8 kB / 0.5773 GB, free: 1.98 MB / 394.7 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 ($PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode,bearingFriction1.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001587/0.4525, allocations: 157.6 kB / 0.5774 GB, free: 1.816 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.994e-05/0.4525, allocations: 19.72 kB / 0.5775 GB, free: 1.797 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009493/0.4535, allocations: 456.8 kB / 0.5779 GB, free: 1.34 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.4535, allocations: 4 kB / 0.5779 GB, free: 1.336 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.4535, allocations: 0 / 0.5779 GB, free: 1.336 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.4535, allocations: 4 kB / 0.5779 GB, free: 1.332 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001539/0.4551, allocations: 0.9389 MB / 0.5788 GB, free: 332 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.4551, allocations: 4.062 kB / 0.5788 GB, free: 328 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002178/0.4553, allocations: 55.89 kB / 0.5789 GB, free: 272 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003961/0.4557, allocations: 172.8 kB / 0.579 GB, free: 96 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.857e-05/0.4558, allocations: 11.98 kB / 0.579 GB, free: 84 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006491/0.4564, allocations: 0.6772 MB / 0.5797 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.4564, allocations: 3.938 kB / 0.5797 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001125/0.4576, allocations: 0.6225 MB / 0.5803 GB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001383/0.4577, allocations: 124.8 kB / 0.5804 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.27e-05/0.4578, allocations: 19.92 kB / 0.5805 GB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002464/0.458, allocations: 44.03 kB / 0.5805 GB, free: 14.52 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.4582, allocations: 55.88 kB / 0.5806 GB, free: 14.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.075e-05/0.4582, allocations: 19.98 kB / 0.5806 GB, free: 14.45 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000121/0.4583, allocations: 127.5 kB / 0.5807 GB, free: 14.32 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4583, allocations: 0 / 0.5807 GB, free: 14.32 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004077/0.4588, allocations: 91.92 kB / 0.5808 GB, free: 14.23 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (25): * Single equations (assignments): 24 * 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.0002142/0.459, allocations: 128.1 kB / 0.5809 GB, free: 14.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007166/0.4597, allocations: 344.4 kB / 0.5812 GB, free: 13.76 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4597, allocations: 0 / 0.5812 GB, free: 13.76 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003253/0.46, allocations: 157.9 kB / 0.5814 GB, free: 13.61 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004251/0.4605, allocations: 32.62 kB / 0.5814 GB, free: 13.58 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002011/0.4625, allocations: 0.9453 MB / 0.5823 GB, free: 12.61 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.4629, allocations: 0.7561 MB / 0.5831 GB, free: 11.83 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001003/0.463, allocations: 22.28 kB / 0.5831 GB, free: 11.81 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.815e-05/0.463, allocations: 23.38 kB / 0.5831 GB, free: 11.79 MB / 410.7 MB Notification: Performance of SimCode: time 4.31e-07/0.463, allocations: 0 / 0.5831 GB, free: 11.79 MB / 410.7 MB Notification: Performance of Templates: time 0.008054/0.4711, allocations: 4.365 MB / 0.5874 GB, free: 7.434 MB / 410.7 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/jenkins1/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