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.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001764/0.001764, allocations: 114.4 kB / 17.78 MB, free: 5.246 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002242/0.002242, allocations: 183 kB / 18.71 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.576/1.576, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2239/0.2239, allocations: 44.19 MB / 336.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 59.91 kB / 470.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4366/0.438, allocations: 60.83 MB / 0.5189 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004426/0.4425, allocations: 2.698 MB / 0.5215 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001577/0.4441, allocations: 0.9509 MB / 0.5224 GB, free: 1.023 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001482/0.4443, allocations: 5.312 kB / 0.5225 GB, free: 1.023 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001845/0.4445, allocations: 52.47 kB / 0.5225 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001821/0.4447, allocations: 103.3 kB / 0.5226 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004629/0.4451, allocations: 145.6 kB / 0.5227 GB, free: 0.832 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000395/0.4455, allocations: 372.8 kB / 0.5231 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002494/0.4458, allocations: 101 kB / 0.5232 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001917/0.446, allocations: 138.2 kB / 0.5233 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002447/0.4462, allocations: 139.6 kB / 0.5235 GB, free: 472 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.475e-05/0.4463, allocations: 24.59 kB / 0.5235 GB, free: 472 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001407/0.4465, allocations: 47.23 kB / 0.5235 GB, free: 464 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.813e-05/0.4465, allocations: 59.44 kB / 0.5236 GB, free: 424 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001859/0.4467, allocations: 163.8 kB / 0.5237 GB, free: 328 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005429/0.4473, allocations: 360.7 kB / 0.5241 GB, free: 192 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.4473, allocations: 4.594 kB / 0.5241 GB, free: 188 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.4473, allocations: 0 / 0.5241 GB, free: 188 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.4473, allocations: 0 / 0.5241 GB, free: 188 kB / 382.1 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.0012/0.4485, allocations: 0.6041 MB / 0.5247 GB, free: 15.68 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.4486, allocations: 8.156 kB / 0.5247 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000271/0.4488, allocations: 48.84 kB / 0.5247 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003828/0.4492, allocations: 263.1 kB / 0.525 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.892e-05/0.4493, allocations: 21.34 kB / 0.525 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.505e-05/0.4494, allocations: 36.81 kB / 0.525 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005993/0.45, allocations: 307.3 kB / 0.5253 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.366e-05/0.45, allocations: 6.328 kB / 0.5253 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.212e-05/0.45, allocations: 9.906 kB / 0.5253 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.4501, allocations: 8.094 kB / 0.5254 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003878/0.4505, allocations: 175.6 kB / 0.5255 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00218/0.4526, allocations: 1.334 MB / 0.5268 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004584/0.4531, allocations: 249.6 kB / 0.5271 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001308/0.4533, allocations: 88.28 kB / 0.5271 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.662e-05/0.4533, allocations: 6.75 kB / 0.5272 GB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.768e-05/0.4533, allocations: 34.72 kB / 0.5272 GB, free: 13.81 MB / 398.1 MB Notification: Performance of pre-optimization done (n=22): time 1.703e-06/0.4534, allocations: 0 / 0.5272 GB, free: 13.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005493/0.4539, allocations: 223.7 kB / 0.5274 GB, free: 13.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.454, allocations: 160.9 kB / 0.5276 GB, free: 13.51 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002009/0.4542, allocations: 207.3 kB / 0.5277 GB, free: 13.36 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.084e-05/0.4543, allocations: 27.08 kB / 0.5278 GB, free: 13.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001299/0.4544, allocations: 194.9 kB / 0.528 GB, free: 13.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.071e-05/0.4545, allocations: 90.73 kB / 0.528 GB, free: 13.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.473e-05/0.4546, allocations: 67.78 kB / 0.5281 GB, free: 13.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.4547, allocations: 341.4 kB / 0.5284 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001337/0.4549, allocations: 62.59 kB / 0.5285 GB, free: 12.65 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002446/0.4551, allocations: 207.4 kB / 0.5287 GB, free: 12.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004244/0.4556, allocations: 298.7 kB / 0.529 GB, free: 12.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.4556, allocations: 1.281 kB / 0.529 GB, free: 12.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005311/0.4561, allocations: 320.5 kB / 0.5293 GB, free: 11.99 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.4561, allocations: 14.97 kB / 0.5293 GB, free: 11.99 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.4562, allocations: 4.25 kB / 0.5293 GB, free: 11.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.852e-05/0.4562, allocations: 7 kB / 0.5293 GB, free: 11.99 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002967/0.4565, allocations: 85.11 kB / 0.5294 GB, free: 11.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.708e-05/0.4565, allocations: 13.78 kB / 0.5294 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000187/0.4567, allocations: 35.38 kB / 0.5294 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.698e-05/0.4568, allocations: 12.66 kB / 0.5295 GB, free: 11.94 MB / 398.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.000184/0.4569, allocations: 157 kB / 0.5296 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/0.4571, allocations: 22.59 kB / 0.5296 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002013/0.4573, allocations: 89.36 kB / 0.5297 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.4573, allocations: 2.875 kB / 0.5297 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.4573, allocations: 2.469 kB / 0.5297 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.4574, allocations: 4 kB / 0.5297 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006401/0.458, allocations: 317.5 kB / 0.53 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.458, allocations: 1.531 kB / 0.53 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003286/0.4583, allocations: 68.5 kB / 0.5301 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.4584, allocations: 1.656 kB / 0.5301 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.4584, allocations: 7.688 kB / 0.5301 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.738e-06/0.4584, allocations: 2.25 kB / 0.5301 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.4584, allocations: 1.125 kB / 0.5301 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006651/0.4591, allocations: 0.6382 MB / 0.5307 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.029e-05/0.4592, allocations: 100.2 kB / 0.5308 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5e-05/0.4592, allocations: 11.67 kB / 0.5308 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002405/0.4595, allocations: 2.562 kB / 0.5308 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.213e-05/0.4595, allocations: 15.36 kB / 0.5308 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.209e-05/0.4595, allocations: 9.531 kB / 0.5309 GB, free: 10.71 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001462/0.4597, allocations: 154.5 kB / 0.531 GB, free: 10.6 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4597, allocations: 96 / 0.531 GB, free: 10.6 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005931/0.4603, allocations: 94.88 kB / 0.5311 GB, free: 10.57 MB / 398.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.0001408/0.4605, allocations: 101.7 kB / 0.5312 GB, free: 10.47 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004085/0.4609, allocations: 191 kB / 0.5314 GB, free: 10.39 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.4609, allocations: 5.094 kB / 0.5314 GB, free: 10.39 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001598/0.4611, allocations: 75.66 kB / 0.5314 GB, free: 10.36 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001021/0.4621, allocations: 60.95 kB / 0.5315 GB, free: 10.32 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001947/0.464, allocations: 1.104 MB / 0.5326 GB, free: 9.449 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004314/0.4645, allocations: 0.7738 MB / 0.5333 GB, free: 8.711 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001468/0.4646, allocations: 28.72 kB / 0.5334 GB, free: 8.695 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.011e-05/0.4647, allocations: 25.61 kB / 0.5334 GB, free: 8.684 MB / 398.1 MB Notification: Performance of SimCode: time 3e-07/0.4647, allocations: 0 / 0.5334 GB, free: 8.684 MB / 398.1 MB Notification: Performance of Templates: time 0.007136/0.4719, allocations: 2.527 MB / 0.5359 GB, free: 7.441 MB / 398.1 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches