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.001389/0.001389, allocations: 114.4 kB / 17.78 MB, free: 5.266 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.001998/0.001998, allocations: 187.8 kB / 18.71 MB, free: 4.344 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.375/1.375, allocations: 222.9 MB / 242.4 MB, free: 15.17 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.2124/0.2124, allocations: 44.18 MB / 336.7 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 63.91 kB / 470.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3859/0.3873, allocations: 60.81 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003746/0.3911, allocations: 2.702 MB / 0.5215 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001551/0.3927, allocations: 0.9463 MB / 0.5224 GB, free: 1.035 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001515/0.3928, allocations: 9.438 kB / 0.5224 GB, free: 1.031 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001847/0.393, allocations: 52.61 kB / 0.5225 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001859/0.3932, allocations: 106.9 kB / 0.5226 GB, free: 0.918 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004807/0.3937, allocations: 140.1 kB / 0.5227 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004154/0.3942, allocations: 376 kB / 0.5231 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002252/0.3944, allocations: 85.89 kB / 0.5232 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001537/0.3945, allocations: 142.5 kB / 0.5233 GB, free: 0.543 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002088/0.3948, allocations: 139.4 kB / 0.5234 GB, free: 488 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.839e-05/0.3948, allocations: 25.09 kB / 0.5235 GB, free: 488 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000131/0.395, allocations: 42.45 kB / 0.5235 GB, free: 484 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.489e-05/0.395, allocations: 59.08 kB / 0.5236 GB, free: 444 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000155/0.3952, allocations: 163.9 kB / 0.5237 GB, free: 348 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004658/0.3956, allocations: 359 kB / 0.5241 GB, free: 212 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3957, allocations: 7.875 kB / 0.5241 GB, free: 204 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3957, allocations: 1.625 kB / 0.5241 GB, free: 204 kB / 382.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.3957, allocations: 0 / 0.5241 GB, free: 204 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.0009669/0.3966, allocations: 0.6019 MB / 0.5247 GB, free: 15.7 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.3967, allocations: 8.719 kB / 0.5247 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002444/0.397, allocations: 47.34 kB / 0.5247 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004028/0.3974, allocations: 267.8 kB / 0.525 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.083e-05/0.3974, allocations: 29.94 kB / 0.525 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.423e-05/0.3975, allocations: 36.44 kB / 0.525 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005635/0.398, allocations: 300.8 kB / 0.5253 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.599e-05/0.3981, allocations: 3.344 kB / 0.5253 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.165e-05/0.3981, allocations: 11.59 kB / 0.5253 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.3981, allocations: 6.594 kB / 0.5253 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003527/0.3985, allocations: 183.6 kB / 0.5255 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002237/0.4007, allocations: 1.336 MB / 0.5268 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004965/0.4012, allocations: 253 kB / 0.5271 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001255/0.4014, allocations: 80.19 kB / 0.5271 GB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.617e-05/0.4014, allocations: 7.484 kB / 0.5271 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.499e-05/0.4015, allocations: 42.11 kB / 0.5272 GB, free: 13.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=22): time 3.787e-06/0.4015, allocations: 0 / 0.5272 GB, free: 13.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.000556/0.402, allocations: 220.9 kB / 0.5274 GB, free: 13.71 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/0.4022, allocations: 157.6 kB / 0.5275 GB, free: 13.53 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002735/0.4025, allocations: 211.5 kB / 0.5277 GB, free: 13.37 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.608e-05/0.4025, allocations: 31.08 kB / 0.5278 GB, free: 13.33 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001496/0.4026, allocations: 187 kB / 0.528 GB, free: 13.16 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.4028, allocations: 98.02 kB / 0.528 GB, free: 13.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/0.4029, allocations: 72.92 kB / 0.5281 GB, free: 13.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001918/0.4031, allocations: 332.3 kB / 0.5284 GB, free: 12.69 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001538/0.4032, allocations: 62.34 kB / 0.5285 GB, free: 12.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003136/0.4036, allocations: 207.4 kB / 0.5287 GB, free: 12.45 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004447/0.404, allocations: 298.5 kB / 0.529 GB, free: 12.18 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.404, allocations: 5.188 kB / 0.529 GB, free: 12.17 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005053/0.4045, allocations: 314 kB / 0.5293 GB, free: 12.01 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.4046, allocations: 11.44 kB / 0.5293 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.4046, allocations: 9.062 kB / 0.5293 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.534e-05/0.4046, allocations: 10.44 kB / 0.5293 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002963/0.4049, allocations: 88.12 kB / 0.5294 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.717e-05/0.4049, allocations: 11.77 kB / 0.5294 GB, free: 11.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001646/0.4051, allocations: 30.03 kB / 0.5294 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.867e-05/0.4052, allocations: 17.88 kB / 0.5294 GB, free: 11.95 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.0001589/0.4053, allocations: 151.6 kB / 0.5296 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.4054, allocations: 23.28 kB / 0.5296 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001892/0.4056, allocations: 92.89 kB / 0.5297 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.4056, allocations: 3.531 kB / 0.5297 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.4056, allocations: 1.219 kB / 0.5297 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.4057, allocations: 5.109 kB / 0.5297 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006069/0.4063, allocations: 312.1 kB / 0.53 GB, free: 11.42 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.4063, allocations: 1.375 kB / 0.53 GB, free: 11.42 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003117/0.4066, allocations: 65.16 kB / 0.5301 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.4066, allocations: 2.188 kB / 0.5301 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.42e-05/0.4066, allocations: 11.77 kB / 0.5301 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.4067, allocations: 2.656 kB / 0.5301 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.4067, allocations: 1.031 kB / 0.5301 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006223/0.4073, allocations: 0.6341 MB / 0.5307 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001377/0.4074, allocations: 99.89 kB / 0.5308 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.602e-05/0.4075, allocations: 7.281 kB / 0.5308 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002344/0.4077, allocations: 6.344 kB / 0.5308 GB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.281e-05/0.4078, allocations: 16.05 kB / 0.5308 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.4078, allocations: 13.83 kB / 0.5308 GB, free: 10.73 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000116/0.4079, allocations: 151.3 kB / 0.531 GB, free: 10.62 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4079, allocations: 3.938 kB / 0.531 GB, free: 10.61 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005138/0.4084, allocations: 89 kB / 0.5311 GB, free: 10.59 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.0001184/0.4086, allocations: 98.62 kB / 0.5312 GB, free: 10.49 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003354/0.4089, allocations: 194.6 kB / 0.5314 GB, free: 10.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.4089, allocations: 3.938 kB / 0.5314 GB, free: 10.41 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.409, allocations: 73.11 kB / 0.5314 GB, free: 10.38 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007784/0.4098, allocations: 73.52 kB / 0.5315 GB, free: 10.34 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001616/0.4114, allocations: 1.094 MB / 0.5326 GB, free: 9.473 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003393/0.4118, allocations: 0.7739 MB / 0.5333 GB, free: 8.734 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001165/0.4119, allocations: 37.42 kB / 0.5334 GB, free: 8.711 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.749e-05/0.412, allocations: 21.41 kB / 0.5334 GB, free: 8.703 MB / 398.1 MB Notification: Performance of SimCode: time 1.172e-06/0.412, allocations: 3.938 kB / 0.5334 GB, free: 8.699 MB / 398.1 MB Notification: Performance of Templates: time 0.006536/0.4185, allocations: 2.576 MB / 0.5359 GB, free: 7.418 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