Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001277/0.001277, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00166/0.001661, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2388/0.2388, allocations: 46.11 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 76.06 kB / 481.3 MB, free: 4.105 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.385/0.3864, allocations: 62.44 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.00439/0.3909, allocations: 3.039 MB / 0.5339 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002192/0.3931, allocations: 1.066 MB / 0.535 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000251/0.3933, allocations: 10.81 kB / 0.535 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002574/0.3936, allocations: 60.83 kB / 0.535 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002581/0.3939, allocations: 130.1 kB / 0.5352 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005782/0.3945, allocations: 179 kB / 0.5353 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005156/0.395, allocations: 458.7 kB / 0.5358 GB, free: 9.773 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002414/0.3953, allocations: 108.4 kB / 0.5359 GB, free: 9.711 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001988/0.3955, allocations: 169.4 kB / 0.536 GB, free: 9.617 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002492/0.3957, allocations: 177.3 kB / 0.5362 GB, free: 9.5 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.54e-05/0.3958, allocations: 30.28 kB / 0.5362 GB, free: 9.5 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001416/0.3959, allocations: 54.39 kB / 0.5363 GB, free: 9.488 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.487e-05/0.396, allocations: 75.47 kB / 0.5364 GB, free: 9.426 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002044/0.3962, allocations: 192.8 kB / 0.5365 GB, free: 9.305 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005489/0.3968, allocations: 443.6 kB / 0.537 GB, free: 9.004 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3968, allocations: 0 / 0.537 GB, free: 9.004 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3968, allocations: 0 / 0.537 GB, free: 9.004 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.3968, allocations: 0 / 0.537 GB, free: 9.004 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001207/0.398, allocations: 0.6579 MB / 0.5376 GB, free: 8.426 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.3981, allocations: 8.594 kB / 0.5376 GB, free: 8.426 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003643/0.3984, allocations: 64.02 kB / 0.5377 GB, free: 8.398 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004486/0.3989, allocations: 302.2 kB / 0.538 GB, free: 8.102 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.928e-05/0.3989, allocations: 24.19 kB / 0.538 GB, free: 8.094 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.436e-05/0.399, allocations: 48.58 kB / 0.538 GB, free: 8.07 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006795/0.3997, allocations: 367 kB / 0.5384 GB, free: 7.816 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.95e-05/0.3998, allocations: 6.844 kB / 0.5384 GB, free: 7.812 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.468e-05/0.3998, allocations: 14.91 kB / 0.5384 GB, free: 7.801 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.78e-05/0.3998, allocations: 9.062 kB / 0.5384 GB, free: 7.801 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005159/0.4003, allocations: 220.9 kB / 0.5386 GB, free: 7.699 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002367/0.4027, allocations: 1.576 MB / 0.5402 GB, free: 6.285 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006208/0.4034, allocations: 307.2 kB / 0.5405 GB, free: 6.047 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001794/0.4036, allocations: 99.92 kB / 0.5406 GB, free: 5.965 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.671e-05/0.4036, allocations: 4.125 kB / 0.5406 GB, free: 5.965 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.333e-05/0.4036, allocations: 44.86 kB / 0.5406 GB, free: 5.914 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.783e-06/0.4036, allocations: 1.25 kB / 0.5406 GB, free: 5.914 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007538/0.4044, allocations: 270 kB / 0.5409 GB, free: 5.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001821/0.4046, allocations: 183.8 kB / 0.541 GB, free: 5.551 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002788/0.4049, allocations: 240.5 kB / 0.5413 GB, free: 5.379 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.313e-05/0.4049, allocations: 30.8 kB / 0.5413 GB, free: 5.344 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001592/0.4051, allocations: 219.4 kB / 0.5415 GB, free: 5.145 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.641e-05/0.4052, allocations: 107.4 kB / 0.5416 GB, free: 5.051 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/0.4053, allocations: 76.75 kB / 0.5417 GB, free: 4.992 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.4055, allocations: 338.7 kB / 0.542 GB, free: 4.66 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001805/0.4057, allocations: 84.58 kB / 0.5421 GB, free: 4.621 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003341/0.406, allocations: 242.8 kB / 0.5423 GB, free: 4.371 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005507/0.4066, allocations: 372.1 kB / 0.5427 GB, free: 4.039 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.4066, allocations: 2.25 kB / 0.5427 GB, free: 4.039 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006917/0.4073, allocations: 387.1 kB / 0.543 GB, free: 3.836 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.732e-05/0.4073, allocations: 7.469 kB / 0.543 GB, free: 3.836 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/0.4073, allocations: 5.375 kB / 0.5431 GB, free: 3.836 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.549e-05/0.4074, allocations: 12.97 kB / 0.5431 GB, free: 3.832 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003801/0.4078, allocations: 106.4 kB / 0.5432 GB, free: 3.809 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.732e-05/0.4078, allocations: 12.89 kB / 0.5432 GB, free: 3.805 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002256/0.4081, allocations: 41.34 kB / 0.5432 GB, free: 3.777 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.27e-05/0.4081, allocations: 20.38 kB / 0.5432 GB, free: 3.773 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (52): * Single equations (assignments): 52 * 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.0001596/0.4083, allocations: 165.8 kB / 0.5434 GB, free: 3.617 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001319/0.4084, allocations: 31.08 kB / 0.5434 GB, free: 3.602 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001949/0.4086, allocations: 97.61 kB / 0.5435 GB, free: 3.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/0.4086, allocations: 3.469 kB / 0.5435 GB, free: 3.52 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.284e-05/0.4086, allocations: 2.75 kB / 0.5435 GB, free: 3.52 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.4087, allocations: 9.172 kB / 0.5435 GB, free: 3.512 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007067/0.4094, allocations: 349.6 kB / 0.5439 GB, free: 3.199 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.4094, allocations: 1.938 kB / 0.5439 GB, free: 3.199 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000396/0.4098, allocations: 84.17 kB / 0.544 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.4098, allocations: 2.594 kB / 0.544 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.83e-05/0.4098, allocations: 8.188 kB / 0.544 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.4099, allocations: 2.469 kB / 0.544 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.4099, allocations: 1.344 kB / 0.544 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008188/0.4107, allocations: 0.7805 MB / 0.5447 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.017e-05/0.4108, allocations: 101.5 kB / 0.5448 GB, free: 2.414 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.859e-05/0.4108, allocations: 16.64 kB / 0.5448 GB, free: 2.402 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002989/0.4111, allocations: 8.25 kB / 0.5448 GB, free: 2.398 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.165e-05/0.4112, allocations: 20.69 kB / 0.5449 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.691e-05/0.4112, allocations: 6.531 kB / 0.5449 GB, free: 2.387 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001916/0.4114, allocations: 173 kB / 0.545 GB, free: 2.266 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4114, allocations: 0 / 0.545 GB, free: 2.266 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007231/0.4122, allocations: 97.69 kB / 0.5451 GB, free: 2.242 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,inertia6.w,inverseSpeedDependentTorque.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 (27): * Single equations (assignments): 27 * 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.0001913/0.4124, allocations: 109.4 kB / 0.5452 GB, free: 2.141 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006973/0.4131, allocations: 233 kB / 0.5455 GB, free: 2.047 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.4131, allocations: 1.5 kB / 0.5455 GB, free: 2.047 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000253/0.4134, allocations: 99.8 kB / 0.5456 GB, free: 2.004 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001124/0.4145, allocations: 71.31 kB / 0.5456 GB, free: 1.969 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002352/0.4169, allocations: 1.292 MB / 0.5469 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005483/0.4174, allocations: 0.7912 MB / 0.5477 GB, free: 15.93 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001671/0.4176, allocations: 38.94 kB / 0.5477 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.797e-05/0.4177, allocations: 27.44 kB / 0.5477 GB, free: 15.86 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4177, allocations: 3.938 kB / 0.5477 GB, free: 15.86 MB / 414.1 MB Notification: Performance of Templates: time 0.00733/0.425, allocations: 3.099 MB / 0.5508 GB, free: 12.79 MB / 414.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches