Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 107.6 kB / 21.19 MB, free: 0.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001565/0.001565, allocations: 207.5 kB / 24.48 MB, free: 3.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.487/1.487, allocations: 230.6 MB / 258.2 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2268/0.2268, allocations: 44.93 MB / 359.6 MB, free: 6.066 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking") translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002096/0.002096, allocations: 67.89 kB / 0.4942 GB, free: 10.07 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3395/0.3416, allocations: 65.47 MB / 0.5582 GB, free: 7.477 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004644/0.3463, allocations: 2.617 MB / 0.5607 GB, free: 4.844 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00192/0.3482, allocations: 0.9466 MB / 0.5616 GB, free: 3.895 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001618/0.3484, allocations: 11.94 kB / 0.5617 GB, free: 3.883 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001847/0.3485, allocations: 51.45 kB / 0.5617 GB, free: 3.832 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002049/0.3487, allocations: 119 kB / 0.5618 GB, free: 3.715 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005023/0.3492, allocations: 151.6 kB / 0.562 GB, free: 3.566 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004629/0.3497, allocations: 386.2 kB / 0.5623 GB, free: 3.188 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001702/0.3499, allocations: 53.34 kB / 0.5624 GB, free: 3.129 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001679/0.35, allocations: 143.4 kB / 0.5625 GB, free: 2.988 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002114/0.3503, allocations: 127.3 kB / 0.5626 GB, free: 2.863 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.557e-05/0.3503, allocations: 28 kB / 0.5627 GB, free: 2.836 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001261/0.3504, allocations: 47.98 kB / 0.5627 GB, free: 2.789 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.683e-05/0.3505, allocations: 71.75 kB / 0.5628 GB, free: 2.719 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001399/0.3506, allocations: 131.3 kB / 0.5629 GB, free: 2.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004877/0.3511, allocations: 380.8 kB / 0.5633 GB, free: 2.223 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3511, allocations: 0 / 0.5633 GB, free: 2.223 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3511, allocations: 3.938 kB / 0.5633 GB, free: 2.219 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.3511, allocations: 4 kB / 0.5633 GB, free: 2.215 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.0009443/0.3521, allocations: 0.5325 MB / 0.5638 GB, free: 1.652 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.3521, allocations: 12.03 kB / 0.5638 GB, free: 1.641 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003019/0.3524, allocations: 56.69 kB / 0.5639 GB, free: 1.586 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004451/0.3529, allocations: 222.7 kB / 0.5641 GB, free: 1.34 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.826e-05/0.3529, allocations: 21.03 kB / 0.5641 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.454e-05/0.353, allocations: 36.33 kB / 0.5641 GB, free: 1.285 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005231/0.3535, allocations: 306.2 kB / 0.5644 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.665e-05/0.3535, allocations: 7.953 kB / 0.5644 GB, free: 0.957 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.969e-05/0.3536, allocations: 16 kB / 0.5644 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.3536, allocations: 8 kB / 0.5645 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003402/0.3539, allocations: 171.8 kB / 0.5646 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001977/0.3559, allocations: 1.183 MB / 0.5658 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004729/0.3564, allocations: 241 kB / 0.566 GB, free: 15.22 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001157/0.3565, allocations: 76.31 kB / 0.5661 GB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.3565, allocations: 7.984 kB / 0.5661 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.98e-05/0.3565, allocations: 42.5 kB / 0.5661 GB, free: 15.07 MB / 414.1 MB Notification: Performance of pre-optimization done (n=22): time 1.853e-06/0.3565, allocations: 4 kB / 0.5661 GB, free: 15.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005232/0.3571, allocations: 213.5 kB / 0.5663 GB, free: 14.86 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.3572, allocations: 170.1 kB / 0.5665 GB, free: 14.65 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002261/0.3574, allocations: 208 kB / 0.5667 GB, free: 14.43 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.587e-05/0.3574, allocations: 29.7 kB / 0.5667 GB, free: 14.4 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001465/0.3576, allocations: 196.3 kB / 0.5669 GB, free: 14.2 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.197e-05/0.3577, allocations: 99.19 kB / 0.567 GB, free: 14.11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.338e-05/0.3578, allocations: 65.66 kB / 0.5671 GB, free: 14.04 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.3579, allocations: 334.8 kB / 0.5674 GB, free: 13.7 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001299/0.358, allocations: 67.91 kB / 0.5674 GB, free: 13.63 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002379/0.3583, allocations: 206.1 kB / 0.5676 GB, free: 13.37 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004081/0.3587, allocations: 301.6 kB / 0.5679 GB, free: 13.01 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3587, allocations: 3.938 kB / 0.5679 GB, free: 13 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005148/0.3592, allocations: 313.1 kB / 0.5682 GB, free: 12.69 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.3592, allocations: 8 kB / 0.5682 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.3592, allocations: 7.938 kB / 0.5683 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.906e-05/0.3593, allocations: 8 kB / 0.5683 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003052/0.3596, allocations: 91.83 kB / 0.5683 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.338e-05/0.3596, allocations: 8 kB / 0.5684 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001729/0.3598, allocations: 39.67 kB / 0.5684 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.352e-05/0.3598, allocations: 16.44 kB / 0.5684 GB, free: 12.52 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001539/0.3599, allocations: 153.7 kB / 0.5686 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.36, allocations: 23.89 kB / 0.5686 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001888/0.3602, allocations: 94.91 kB / 0.5687 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.215e-06/0.3602, allocations: 4 kB / 0.5687 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.3602, allocations: 256 / 0.5687 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.3602, allocations: 4 kB / 0.5687 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005323/0.3608, allocations: 221.2 kB / 0.5689 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.3608, allocations: 0 / 0.5689 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003366/0.3611, allocations: 67.97 kB / 0.569 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.3611, allocations: 4 kB / 0.569 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.18e-05/0.3611, allocations: 8 kB / 0.569 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.232e-06/0.3612, allocations: 7.875 kB / 0.569 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3612, allocations: 4 kB / 0.569 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006982/0.3619, allocations: 0.6315 MB / 0.5696 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.151e-05/0.3619, allocations: 23.86 kB / 0.5696 GB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.711e-05/0.3619, allocations: 4 kB / 0.5696 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002604/0.3622, allocations: 12.02 kB / 0.5696 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.514e-05/0.3622, allocations: 23.86 kB / 0.5697 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.306e-05/0.3622, allocations: 7.984 kB / 0.5697 GB, free: 11.17 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001624/0.3624, allocations: 145.9 kB / 0.5698 GB, free: 11.03 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3624, allocations: 4 kB / 0.5698 GB, free: 11.03 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005408/0.3629, allocations: 87.89 kB / 0.5699 GB, free: 10.94 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 11 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001332/0.3631, allocations: 103.1 kB / 0.57 GB, free: 10.83 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003586/0.3634, allocations: 176.5 kB / 0.5702 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3634, allocations: 256 / 0.5702 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001258/0.3636, allocations: 76.47 kB / 0.5702 GB, free: 10.58 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007998/0.3644, allocations: 60.98 kB / 0.5703 GB, free: 10.52 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001943/0.3663, allocations: 1.164 MB / 0.5714 GB, free: 9.316 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002104/0.3665, allocations: 165.1 kB / 0.5716 GB, free: 9.133 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.223e-05/0.3666, allocations: 31.42 kB / 0.5716 GB, free: 9.105 MB / 414.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3666, allocations: 0 / 0.5716 GB, free: 9.105 MB / 414.1 MB Notification: Performance of Templates: time 0.006281/0.3729, allocations: 3.598 MB / 0.5751 GB, free: 5.516 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.00238226307556]