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.0008576/0.0008576, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001105/0.001963, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007014/0.0007014, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008659/0.001567, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.046/1.046, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1676/1.213, allocations: 53.66 MB / 243.3 MB, free: 15.58 MB / 250.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.3937/0.3937, allocations: 32.8 MB / 276.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03363/0.4274, allocations: 12.53 MB / 289.3 MB, free: 8.676 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 2.655e-06/2.655e-06, allocations: 0 / 290.6 MB, free: 7.676 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.613e-05/4.878e-05, allocations: 5.719 kB / 290.6 MB, free: 7.672 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.005443/0.005492, allocations: 2.857 MB / 293.4 MB, free: 5.43 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002143/0.007635, allocations: 1.022 MB / 294.5 MB, free: 4.441 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002496/0.007885, allocations: 7.938 kB / 294.5 MB, free: 4.434 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001465/0.008031, allocations: 55.39 kB / 294.5 MB, free: 4.379 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002279/0.008259, allocations: 119 kB / 294.6 MB, free: 4.262 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005155/0.008775, allocations: 147.5 kB / 294.8 MB, free: 4.117 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004602/0.009235, allocations: 398 kB / 295.2 MB, free: 3.727 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000171/0.009406, allocations: 60.12 kB / 295.2 MB, free: 3.672 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003133/0.009719, allocations: 231.4 kB / 295.5 MB, free: 3.445 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001735/0.009893, allocations: 107.7 kB / 295.6 MB, free: 3.34 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.657e-05/0.009929, allocations: 24 kB / 295.6 MB, free: 3.316 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001636/0.01009, allocations: 55.91 kB / 295.6 MB, free: 3.262 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.559e-05/0.01014, allocations: 43.81 kB / 295.7 MB, free: 3.219 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.687e-05/0.01024, allocations: 99.81 kB / 295.8 MB, free: 3.121 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000377/0.01061, allocations: 247 kB / 296 MB, free: 2.879 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.308e-05/0.01064, allocations: 3.984 kB / 296 MB, free: 2.875 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.556e-06/0.01064, allocations: 4 kB / 296 MB, free: 2.871 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.053e-05/0.01066, allocations: 0 / 296 MB, free: 2.871 MB / 282.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.0008144/0.01147, allocations: 0.5783 MB / 296.6 MB, free: 2.27 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.01152, allocations: 12.03 kB / 296.6 MB, free: 2.258 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002956/0.01182, allocations: 149.9 kB / 296.8 MB, free: 2.094 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002915/0.01211, allocations: 202.1 kB / 297 MB, free: 1.867 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.01213, allocations: 21.03 kB / 297 MB, free: 1.844 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.691e-05/0.01219, allocations: 44.25 kB / 297 MB, free: 1.801 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002691/0.01246, allocations: 234.8 kB / 297.3 MB, free: 1.551 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.01247, allocations: 8.141 kB / 297.3 MB, free: 1.543 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.24e-05/0.0125, allocations: 19.92 kB / 297.3 MB, free: 1.523 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.01251, allocations: 8 kB / 297.3 MB, free: 1.516 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000133/0.01264, allocations: 80.89 kB / 297.4 MB, free: 1.438 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001202/0.01384, allocations: 1.044 MB / 298.4 MB, free: 340 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002737/0.01412, allocations: 184.7 kB / 298.6 MB, free: 108 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.247e-05/0.01417, allocations: 52.28 kB / 298.6 MB, free: 40 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.273e-05/0.01419, allocations: 11.98 kB / 298.7 MB, free: 28 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.009e-05/0.01424, allocations: 42.55 kB / 298.7 MB, free: 15.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.743e-06/0.01424, allocations: 0 / 298.7 MB, free: 15.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0002671/0.01451, allocations: 137.6 kB / 298.8 MB, free: 15.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.6e-05/0.01459, allocations: 162.2 kB / 299 MB, free: 15.64 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/0.01472, allocations: 208.8 kB / 299.2 MB, free: 15.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.963e-05/0.01474, allocations: 33.7 kB / 299.2 MB, free: 15.39 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.29e-05/0.01483, allocations: 180.3 kB / 299.4 MB, free: 15.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.648e-05/0.0149, allocations: 99.19 kB / 299.5 MB, free: 15.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.753e-05/0.01497, allocations: 61.62 kB / 299.6 MB, free: 15.04 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.01508, allocations: 346.8 kB / 299.9 MB, free: 14.7 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.468e-05/0.01512, allocations: 27.92 kB / 299.9 MB, free: 14.67 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001256/0.01524, allocations: 169.9 kB / 300.1 MB, free: 14.44 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002152/0.01546, allocations: 245.6 kB / 300.3 MB, free: 14.13 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.01546, allocations: 0 / 300.3 MB, free: 14.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0002389/0.0157, allocations: 217.1 kB / 300.5 MB, free: 13.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.01572, allocations: 7.938 kB / 300.6 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.01573, allocations: 8 kB / 300.6 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.01575, allocations: 4 kB / 300.6 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002621/0.01601, allocations: 111.3 kB / 300.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.274e-05/0.01602, allocations: 19.92 kB / 300.7 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.01612, allocations: 31.78 kB / 300.7 MB, free: 13.74 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/0.01614, allocations: 12 kB / 300.7 MB, free: 13.73 MB / 298.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 0.0001008/0.01624, allocations: 129.7 kB / 300.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.049e-05/0.01632, allocations: 27.97 kB / 300.9 MB, free: 13.56 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001403/0.01646, allocations: 75.08 kB / 301 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.01646, allocations: 3.938 kB / 301 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.311e-06/0.01647, allocations: 4 kB / 301 MB, free: 13.47 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.01647, allocations: 0 / 301 MB, free: 13.47 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003448/0.01682, allocations: 162 kB / 301.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.01682, allocations: 4 kB / 301.1 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000212/0.01703, allocations: 82.14 kB / 301.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.415e-05/0.01706, allocations: 23.8 kB / 301.2 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.611e-06/0.01706, allocations: 7.938 kB / 301.2 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.907e-05/0.01708, allocations: 11.98 kB / 301.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.01709, allocations: 0 / 301.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.616e-06/0.01709, allocations: 4 kB / 301.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003765/0.01747, allocations: 0.5528 MB / 301.8 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.397e-05/0.01749, allocations: 12 kB / 301.8 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001281/0.01762, allocations: 11.94 kB / 301.8 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.794e-05/0.01765, allocations: 20.53 kB / 301.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.332e-06/0.01765, allocations: 7.938 kB / 301.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.204e-05/0.0177, allocations: 59.78 kB / 301.9 MB, free: 12.49 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0177, allocations: 0 / 301.9 MB, free: 12.49 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003676/0.01807, allocations: 87.78 kB / 302 MB, free: 12.4 MB / 298.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 0.0001178/0.01819, allocations: 85.02 kB / 302.1 MB, free: 12.31 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000199/0.01839, allocations: 139.6 kB / 302.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.042e-05/0.0184, allocations: 4 kB / 302.2 MB, free: 12.17 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.34e-05/0.01845, allocations: 56.8 kB / 302.3 MB, free: 12.11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004724/0.01893, allocations: 85.78 kB / 302.4 MB, free: 12.03 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004041/0.02297, allocations: 0.7158 MB / 303.1 MB, free: 11.28 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.83e-05/0.02304, allocations: 96.3 kB / 303.2 MB, free: 11.16 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001005/0.02315, allocations: 27.06 kB / 303.2 MB, free: 11.14 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001223/0.02327, allocations: 103.3 kB / 303.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of SimCode: time 1.122e-06/0.02327, allocations: 0 / 303.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of Templates: time 0.005539/0.02881, allocations: 3.061 MB / 306.4 MB, free: 8.066 MB / 298.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 -ignoreHideResult -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.245653685182333]