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.0009582/0.0009582, allocations: 80.8 kB / 21.49 MB, free: 2.996 MB / 18.57 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.0009651/0.0009651, allocations: 173 kB / 24.91 MB, free: 8.723 MB / 18.57 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 0.9781/0.9781, allocations: 177.1 MB / 205.3 MB, free: 5.098 MB / 186.7 MB " [Timeout remaining time 179] 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.2479/0.2479, allocations: 32.8 MB / 294.6 MB, free: 1.207 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.522e-06/1.522e-06, allocations: 0 / 323.2 MB, free: 9.781 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.603e-05/1.755e-05, allocations: 5.578 kB / 323.2 MB, free: 9.777 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004042/0.004059, allocations: 2.802 MB / 326 MB, free: 6.953 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002019/0.006078, allocations: 1.009 MB / 327 MB, free: 5.941 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001862/0.006264, allocations: 15.88 kB / 327 MB, free: 5.926 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001791/0.006443, allocations: 51.45 kB / 327.1 MB, free: 5.875 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002325/0.006676, allocations: 111 kB / 327.2 MB, free: 5.766 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005307/0.007207, allocations: 155.5 kB / 327.3 MB, free: 5.613 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004472/0.007654, allocations: 402.5 kB / 327.7 MB, free: 5.219 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001637/0.007818, allocations: 68.05 kB / 327.8 MB, free: 5.156 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002829/0.0081, allocations: 211.5 kB / 328 MB, free: 4.949 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001865/0.008287, allocations: 111.7 kB / 328.1 MB, free: 4.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.113e-05/0.008338, allocations: 24 kB / 328.1 MB, free: 4.816 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001233/0.008461, allocations: 43.98 kB / 328.2 MB, free: 4.773 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.691e-05/0.008518, allocations: 67.75 kB / 328.2 MB, free: 4.707 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001198/0.008638, allocations: 115.7 kB / 328.3 MB, free: 4.594 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003771/0.009015, allocations: 266.9 kB / 328.6 MB, free: 4.332 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.963e-06/0.009017, allocations: 0 / 328.6 MB, free: 4.332 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.009018, allocations: 0 / 328.6 MB, free: 4.332 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.009026, allocations: 0 / 328.6 MB, free: 4.332 MB / 298.7 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.0007409/0.009767, allocations: 0.5244 MB / 329.1 MB, free: 3.785 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.009801, allocations: 8.031 kB / 329.1 MB, free: 3.777 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002976/0.0101, allocations: 76.8 kB / 329.2 MB, free: 3.703 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002729/0.01037, allocations: 190.1 kB / 329.4 MB, free: 3.488 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.442e-05/0.0104, allocations: 25.03 kB / 329.4 MB, free: 3.461 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.772e-05/0.01045, allocations: 40.27 kB / 329.5 MB, free: 3.422 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003058/0.01076, allocations: 238.8 kB / 329.7 MB, free: 3.168 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.397e-05/0.01078, allocations: 4.141 kB / 329.7 MB, free: 3.164 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.354e-05/0.01081, allocations: 19.94 kB / 329.7 MB, free: 3.145 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.01082, allocations: 8 kB / 329.7 MB, free: 3.137 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001827/0.011, allocations: 88.38 kB / 329.8 MB, free: 3.055 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001317/0.01232, allocations: 1.037 MB / 330.8 MB, free: 1.957 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001886/0.01251, allocations: 180.8 kB / 331 MB, free: 1.734 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.546e-05/0.01255, allocations: 56.41 kB / 331.1 MB, free: 1.664 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.676e-05/0.01257, allocations: 8 kB / 331.1 MB, free: 1.656 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.125e-05/0.01259, allocations: 38.56 kB / 331.1 MB, free: 1.609 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.413e-06/0.01259, allocations: 0 / 331.1 MB, free: 1.609 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0002136/0.01281, allocations: 141.5 kB / 331.3 MB, free: 1.465 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.073e-05/0.01286, allocations: 166.2 kB / 331.4 MB, free: 1.266 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.01297, allocations: 207.3 kB / 331.6 MB, free: 1.047 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.187e-05/0.01298, allocations: 33.64 kB / 331.7 MB, free: 1.008 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.427e-05/0.01304, allocations: 188.3 kB / 331.8 MB, free: 0.8164 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.368e-05/0.01308, allocations: 91.19 kB / 331.9 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.86e-05/0.01314, allocations: 65.66 kB / 332 MB, free: 0.6562 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.753e-05/0.01322, allocations: 342.7 kB / 332.3 MB, free: 320 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.123e-05/0.01325, allocations: 27.97 kB / 332.4 MB, free: 292 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.872e-05/0.01334, allocations: 169.9 kB / 332.5 MB, free: 56 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001684/0.01351, allocations: 241.6 kB / 332.8 MB, free: 15.75 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.01351, allocations: 4 kB / 332.8 MB, free: 15.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0001854/0.0137, allocations: 213.5 kB / 333 MB, free: 15.54 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.01371, allocations: 11.98 kB / 333 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.01372, allocations: 4 kB / 333 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.01373, allocations: 8 kB / 333 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001508/0.01388, allocations: 83.91 kB / 333.1 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.01389, allocations: 11.94 kB / 333.1 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003359/0.01423, allocations: 39.66 kB / 333.1 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.159e-05/0.01424, allocations: 16 kB / 333.1 MB, free: 15.36 MB / 314.7 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 6.873e-05/0.01431, allocations: 125.8 kB / 333.3 MB, free: 15.23 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.528e-05/0.01436, allocations: 24.14 kB / 333.3 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.751e-05/0.01445, allocations: 79.06 kB / 333.4 MB, free: 15.12 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.01445, allocations: 4.25 kB / 333.4 MB, free: 15.12 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.01445, allocations: 4 kB / 333.4 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.239e-06/0.01446, allocations: 7.984 kB / 333.4 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002672/0.01473, allocations: 157.6 kB / 333.5 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.01473, allocations: 0 / 333.5 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001657/0.01489, allocations: 71.89 kB / 333.6 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.0149, allocations: 0 / 333.6 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.01491, allocations: 8 kB / 333.6 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.01491, allocations: 4 kB / 333.6 MB, free: 14.85 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.01491, allocations: 4 kB / 333.6 MB, free: 14.85 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002468/0.01516, allocations: 0.5595 MB / 334.2 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.033e-05/0.01518, allocations: 23.8 kB / 334.2 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.014e-05/0.0152, allocations: 8 kB / 334.2 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.01532, allocations: 4 kB / 334.2 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.001e-05/0.01534, allocations: 15.97 kB / 334.2 MB, free: 14.22 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.184e-06/0.01535, allocations: 8 kB / 334.2 MB, free: 14.21 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.988e-05/0.01539, allocations: 63.34 kB / 334.3 MB, free: 14.15 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01539, allocations: 0 / 334.3 MB, free: 14.15 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002806/0.01567, allocations: 87.84 kB / 334.4 MB, free: 14.06 MB / 314.7 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 7.373e-05/0.01575, allocations: 89.83 kB / 334.5 MB, free: 13.97 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002758/0.01602, allocations: 137.1 kB / 334.6 MB, free: 13.83 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/0.01603, allocations: 1.062 kB / 334.6 MB, free: 13.83 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.895e-05/0.01613, allocations: 63.53 kB / 334.7 MB, free: 13.77 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005181/0.01665, allocations: 71.39 kB / 334.7 MB, free: 13.7 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008606/0.01751, allocations: 0.6877 MB / 335.4 MB, free: 12.98 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.331e-05/0.01758, allocations: 100.2 kB / 335.5 MB, free: 12.86 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.022e-05/0.01765, allocations: 26.97 kB / 335.6 MB, free: 12.83 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001121/0.01776, allocations: 103.3 kB / 335.7 MB, free: 12.73 MB / 314.7 MB Notification: Performance of SimCode: time 4.61e-07/0.01776, allocations: 0 / 335.7 MB, free: 12.73 MB / 314.7 MB Notification: Performance of Templates: time 0.004278/0.02204, allocations: 2.717 MB / 338.4 MB, free: 10.09 MB / 314.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8392610079608858]