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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001613/0.001613, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 222.9 MB / 241.6 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 98.59 kB / 291.9 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4085/0.4085, allocations: 44.14 MB / 386.1 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001068/0.001068, allocations: 55.91 kB / 457.7 MB, free: 2.328 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4112/0.4123, allocations: 60.8 MB / 0.5064 GB, free: 38.47 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004164/0.4165, allocations: 2.744 MB / 0.5091 GB, free: 36.56 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001709/0.4183, allocations: 0.9478 MB / 0.51 GB, free: 35.88 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001783/0.4185, allocations: 5.75 kB / 0.51 GB, free: 35.88 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001678/0.4186, allocations: 32.66 kB / 0.51 GB, free: 35.86 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000192/0.4189, allocations: 99.61 kB / 0.5101 GB, free: 35.79 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003925/0.4193, allocations: 126.1 kB / 0.5102 GB, free: 35.71 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002931/0.4196, allocations: 357.1 kB / 0.5106 GB, free: 35.54 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001651/0.4198, allocations: 71.97 kB / 0.5106 GB, free: 35.51 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001036/0.4199, allocations: 128.2 kB / 0.5108 GB, free: 35.45 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001575/0.42, allocations: 143.4 kB / 0.5109 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.41e-05/0.4201, allocations: 15.66 kB / 0.5109 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001048/0.4202, allocations: 30.05 kB / 0.5109 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.942e-05/0.4202, allocations: 57.2 kB / 0.511 GB, free: 35.34 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.4204, allocations: 154 kB / 0.5111 GB, free: 35.26 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002992/0.4207, allocations: 346.2 kB / 0.5115 GB, free: 35.12 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.4207, allocations: 2.844 kB / 0.5115 GB, free: 35.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.4207, allocations: 0 / 0.5115 GB, free: 35.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.4207, allocations: 0 / 0.5115 GB, free: 35.12 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0008029/0.4215, allocations: 0.5956 MB / 0.5121 GB, free: 34.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.4216, allocations: 11.52 kB / 0.5121 GB, free: 34.62 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002042/0.4218, allocations: 50.91 kB / 0.5121 GB, free: 34.61 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002362/0.422, allocations: 264.8 kB / 0.5124 GB, free: 34.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.053e-05/0.422, allocations: 25.61 kB / 0.5124 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.45e-05/0.4221, allocations: 39.09 kB / 0.5124 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004013/0.4225, allocations: 299.6 kB / 0.5127 GB, free: 34.17 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.667e-05/0.4225, allocations: 10.48 kB / 0.5127 GB, free: 34.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.538e-05/0.4226, allocations: 14.44 kB / 0.5127 GB, free: 34.15 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.397e-06/0.4226, allocations: 7.469 kB / 0.5128 GB, free: 34.15 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002981/0.4229, allocations: 172.3 kB / 0.5129 GB, free: 34.1 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001553/0.4245, allocations: 1.342 MB / 0.5142 GB, free: 33.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003322/0.4248, allocations: 252.2 kB / 0.5145 GB, free: 32.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.809e-05/0.4249, allocations: 75.17 kB / 0.5145 GB, free: 32.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/0.4249, allocations: 14.47 kB / 0.5146 GB, free: 32.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.779e-05/0.425, allocations: 41.16 kB / 0.5146 GB, free: 32.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 1.794e-06/0.425, allocations: 0 / 0.5146 GB, free: 32.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004663/0.4254, allocations: 220.5 kB / 0.5148 GB, free: 32.64 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.663e-05/0.4255, allocations: 165.5 kB / 0.515 GB, free: 32.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000181/0.4257, allocations: 202.8 kB / 0.5152 GB, free: 32.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/0.4257, allocations: 30.92 kB / 0.5152 GB, free: 32.28 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.183e-05/0.4258, allocations: 196.7 kB / 0.5154 GB, free: 32.11 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.692e-05/0.4259, allocations: 87.2 kB / 0.5155 GB, free: 32.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.352e-05/0.426, allocations: 67.09 kB / 0.5155 GB, free: 32.01 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.895e-05/0.426, allocations: 335.4 kB / 0.5158 GB, free: 31.68 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001056/0.4262, allocations: 65.28 kB / 0.5159 GB, free: 31.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001504/0.4263, allocations: 204.3 kB / 0.5161 GB, free: 31.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002558/0.4266, allocations: 301.7 kB / 0.5164 GB, free: 31.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.4266, allocations: 0 / 0.5164 GB, free: 31.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004221/0.427, allocations: 321.3 kB / 0.5167 GB, free: 31.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.427, allocations: 5.812 kB / 0.5167 GB, free: 31.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.228e-06/0.4271, allocations: 5.562 kB / 0.5167 GB, free: 31.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.4271, allocations: 7.625 kB / 0.5167 GB, free: 31.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002724/0.4274, allocations: 92.53 kB / 0.5168 GB, free: 31.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.592e-05/0.4274, allocations: 10.69 kB / 0.5168 GB, free: 31.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001602/0.4275, allocations: 35.06 kB / 0.5168 GB, free: 31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.511e-05/0.4276, allocations: 14.91 kB / 0.5169 GB, free: 31 MB / 378.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.0001146/0.4277, allocations: 154.7 kB / 0.517 GB, free: 30.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/0.4278, allocations: 23.06 kB / 0.517 GB, free: 30.85 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000151/0.428, allocations: 86.92 kB / 0.5171 GB, free: 30.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.428, allocations: 3.562 kB / 0.5171 GB, free: 30.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.428, allocations: 1.188 kB / 0.5171 GB, free: 30.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.428, allocations: 5.609 kB / 0.5171 GB, free: 30.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005158/0.4285, allocations: 315 kB / 0.5174 GB, free: 30.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.4285, allocations: 1.75 kB / 0.5174 GB, free: 30.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003039/0.4288, allocations: 75.05 kB / 0.5175 GB, free: 30.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.4289, allocations: 1.344 kB / 0.5175 GB, free: 30.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.873e-05/0.4289, allocations: 11.5 kB / 0.5175 GB, free: 30.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/0.4289, allocations: 9.734 kB / 0.5175 GB, free: 30.51 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4289, allocations: 1.094 kB / 0.5175 GB, free: 30.51 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003088/0.432, allocations: 2.644 MB / 0.5201 GB, free: 28.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.895e-05/0.432, allocations: 105.5 kB / 0.5202 GB, free: 28.44 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.648e-05/0.4321, allocations: 10.27 kB / 0.5202 GB, free: 28.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002295/0.4323, allocations: 2.625 kB / 0.5202 GB, free: 28.44 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.389e-05/0.4324, allocations: 20.2 kB / 0.5202 GB, free: 28.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.377e-06/0.4324, allocations: 5.656 kB / 0.5202 GB, free: 28.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.923e-05/0.4325, allocations: 157.2 kB / 0.5204 GB, free: 28.33 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4325, allocations: 3.938 kB / 0.5204 GB, free: 28.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006201/0.4331, allocations: 116.2 kB / 0.5205 GB, free: 28.3 MB / 378.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.0001143/0.4332, allocations: 99.97 kB / 0.5206 GB, free: 28.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002698/0.4335, allocations: 189.4 kB / 0.5208 GB, free: 28.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.4335, allocations: 0 / 0.5208 GB, free: 28.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.818e-05/0.4336, allocations: 76.53 kB / 0.5208 GB, free: 28.12 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007699/0.4344, allocations: 59.44 kB / 0.5209 GB, free: 28.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001588/0.436, allocations: 1.425 MB / 0.5223 GB, free: 26.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002419/0.4362, allocations: 0.7755 MB / 0.5231 GB, free: 26.28 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001682/0.4364, allocations: 32.91 kB / 0.5231 GB, free: 26.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.779e-05/0.4365, allocations: 24.36 kB / 0.5231 GB, free: 26.26 MB / 378.7 MB Notification: Performance of SimCode: time 5.51e-07/0.4365, allocations: 3.938 kB / 0.5231 GB, free: 26.26 MB / 378.7 MB Notification: Performance of Templates: time 0.00593/0.4424, allocations: 3.198 MB / 0.5262 GB, free: 26.01 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.makefile (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) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches