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.001006/0.001006, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001183/0.001183, allocations: 168.7 kB / 25.61 MB, free: 8.582 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.9837/0.9837, allocations: 177.1 MB / 206 MB, free: 4.477 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.1419/0.1419, allocations: 32.8 MB / 295.4 MB, free: 15.38 MB / 282.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.473e-06/1.473e-06, allocations: 0 / 377.2 MB, free: 25.64 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.589e-05/1.736e-05, allocations: 2.312 kB / 377.2 MB, free: 25.64 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.00235/0.002368, allocations: 2.801 MB / 380 MB, free: 22.82 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001175/0.003543, allocations: 0.9892 MB / 381 MB, free: 21.83 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001552/0.003698, allocations: 7.938 kB / 381 MB, free: 21.82 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001392/0.003837, allocations: 51.45 kB / 381.1 MB, free: 21.77 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000141/0.003978, allocations: 111 kB / 381.2 MB, free: 21.66 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003786/0.004357, allocations: 159.4 kB / 381.3 MB, free: 21.5 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002578/0.004615, allocations: 394 kB / 381.7 MB, free: 21.12 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001427/0.004757, allocations: 66.39 kB / 381.8 MB, free: 21.05 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000167/0.004924, allocations: 207.5 kB / 382 MB, free: 20.85 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001282/0.005052, allocations: 111.6 kB / 382.1 MB, free: 20.74 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.881e-05/0.005081, allocations: 24 kB / 382.1 MB, free: 20.72 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.946e-05/0.005171, allocations: 51.97 kB / 382.2 MB, free: 20.67 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 3.331e-05/0.005204, allocations: 67.69 kB / 382.2 MB, free: 20.6 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 6.255e-05/0.005267, allocations: 111.8 kB / 382.3 MB, free: 20.49 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002236/0.00549, allocations: 271 kB / 382.6 MB, free: 20.23 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.005492, allocations: 0 / 382.6 MB, free: 20.23 MB / 314.7 MB Notification: Performance of FrontEnd: time 6.72e-07/0.005493, allocations: 0 / 382.6 MB, free: 20.23 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.005498, allocations: 0 / 382.6 MB, free: 20.23 MB / 314.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.0004797/0.005978, allocations: 0.6323 MB / 383.2 MB, free: 19.56 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.146e-05/0.006009, allocations: 19.98 kB / 383.3 MB, free: 19.54 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001884/0.006198, allocations: 84.56 kB / 383.3 MB, free: 19.46 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001753/0.006373, allocations: 212.9 kB / 383.6 MB, free: 19.22 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.47e-05/0.006388, allocations: 21.03 kB / 383.6 MB, free: 19.2 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.43e-05/0.006422, allocations: 44.31 kB / 383.6 MB, free: 19.16 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000194/0.006616, allocations: 248.9 kB / 383.9 MB, free: 18.88 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.00663, allocations: 4.188 kB / 383.9 MB, free: 18.88 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.608e-05/0.006646, allocations: 19.94 kB / 383.9 MB, free: 18.86 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.006652, allocations: 8 kB / 383.9 MB, free: 18.85 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001103/0.006762, allocations: 94.67 kB / 384 MB, free: 18.76 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008497/0.007612, allocations: 1.386 MB / 385.4 MB, free: 17.3 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001874/0.007799, allocations: 235.5 kB / 385.6 MB, free: 17 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.109e-05/0.007841, allocations: 70.39 kB / 385.7 MB, free: 16.91 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.4e-05/0.007855, allocations: 4 kB / 385.7 MB, free: 16.91 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.746e-05/0.007872, allocations: 41.39 kB / 385.7 MB, free: 16.86 MB / 314.7 MB Notification: Performance of pre-optimization done (n=22): time 1.393e-06/0.007873, allocations: 0 / 385.7 MB, free: 16.86 MB / 314.7 MB Notification: Performance of matching and sorting (n=22): time 0.0002451/0.008119, allocations: 173.3 kB / 385.9 MB, free: 16.68 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.079e-05/0.008149, allocations: 162.2 kB / 386 MB, free: 16.49 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.778e-05/0.008237, allocations: 258.7 kB / 386.3 MB, free: 16.21 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.677e-06/0.008246, allocations: 29.7 kB / 386.3 MB, free: 16.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.032e-05/0.008306, allocations: 251.1 kB / 386.6 MB, free: 15.93 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.562e-05/0.008342, allocations: 99.14 kB / 386.7 MB, free: 15.83 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.155e-05/0.008393, allocations: 71.33 kB / 386.7 MB, free: 15.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.623e-05/0.008449, allocations: 0.5078 MB / 387.2 MB, free: 15.23 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.41e-05/0.008484, allocations: 27.97 kB / 387.3 MB, free: 15.21 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.465e-05/0.008568, allocations: 229.3 kB / 387.5 MB, free: 14.89 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001491/0.008717, allocations: 293 kB / 387.8 MB, free: 14.52 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.008721, allocations: 0 / 387.8 MB, free: 14.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0002141/0.008935, allocations: 269 kB / 388 MB, free: 14.25 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.008947, allocations: 4 kB / 388 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.008953, allocations: 8.719 kB / 388.1 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.008965, allocations: 8 kB / 388.1 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/0.009108, allocations: 91.91 kB / 388.2 MB, free: 14.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.009114, allocations: 11.92 kB / 388.2 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.319e-05/0.009197, allocations: 43.61 kB / 388.2 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.152e-05/0.009209, allocations: 16 kB / 388.2 MB, free: 14.07 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.583e-05/0.009275, allocations: 172.5 kB / 388.4 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.824e-05/0.009343, allocations: 35.8 kB / 388.4 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.523e-05/0.009438, allocations: 79.14 kB / 388.5 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.009442, allocations: 4 kB / 388.5 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.009444, allocations: 4 kB / 388.5 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.009449, allocations: 11.92 kB / 388.5 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003079/0.009757, allocations: 185 kB / 388.7 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.604e-06/0.009759, allocations: 0 / 388.7 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001606/0.009919, allocations: 67.91 kB / 388.8 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.009921, allocations: 0 / 388.8 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.009934, allocations: 11.98 kB / 388.8 MB, free: 13.47 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.009936, allocations: 0 / 388.8 MB, free: 13.47 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.009937, allocations: 4 kB / 388.8 MB, free: 13.46 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002535/0.01019, allocations: 0.8005 MB / 389.6 MB, free: 12.64 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.884e-05/0.01021, allocations: 31.78 kB / 389.6 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.163e-05/0.01023, allocations: 8 kB / 389.6 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001356/0.01037, allocations: 4 kB / 389.6 MB, free: 12.6 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.021e-05/0.01039, allocations: 19.97 kB / 389.6 MB, free: 12.58 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-06/0.01039, allocations: 7.938 kB / 389.7 MB, free: 12.57 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.054e-05/0.01043, allocations: 173.7 kB / 389.8 MB, free: 12.41 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01043, allocations: 0 / 389.8 MB, free: 12.41 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000321/0.01075, allocations: 79.89 kB / 389.9 MB, free: 12.33 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 6.393e-05/0.01082, allocations: 103.2 kB / 390 MB, free: 12.21 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001455/0.01096, allocations: 151.2 kB / 390.2 MB, free: 12.06 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.01097, allocations: 0 / 390.2 MB, free: 12.06 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 4.355e-05/0.01101, allocations: 67.2 kB / 390.2 MB, free: 12 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004774/0.01149, allocations: 77.47 kB / 390.3 MB, free: 11.92 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001014/0.0125, allocations: 0.9071 MB / 391.2 MB, free: 10.97 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.531e-05/0.01256, allocations: 96.11 kB / 391.3 MB, free: 10.86 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.875e-05/0.01263, allocations: 30.97 kB / 391.3 MB, free: 10.82 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.503e-05/0.01273, allocations: 122.2 kB / 391.4 MB, free: 10.7 MB / 314.7 MB Notification: Performance of SimCode: time 7.31e-07/0.01273, allocations: 0 / 391.4 MB, free: 10.7 MB / 314.7 MB Notification: Performance of Templates: time 0.004291/0.01702, allocations: 2.766 MB / 394.2 MB, free: 8.016 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: 3.089314282871783]