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.001154/0.001154, allocations: 116.5 kB / 17.78 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.001369/0.001369, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, 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.2247/0.2247, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 67.88 kB / 481.3 MB, free: 4.105 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3957/0.3971, allocations: 62.44 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.005007/0.4021, allocations: 3.035 MB / 0.5339 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002312/0.4045, allocations: 1.076 MB / 0.535 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002161/0.4047, allocations: 9.438 kB / 0.535 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002181/0.4049, allocations: 54.27 kB / 0.535 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003755/0.4053, allocations: 128.6 kB / 0.5352 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006319/0.406, allocations: 173.7 kB / 0.5353 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005704/0.4066, allocations: 450.9 kB / 0.5358 GB, free: 9.785 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002476/0.4068, allocations: 121.2 kB / 0.5359 GB, free: 9.711 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001891/0.407, allocations: 167.5 kB / 0.536 GB, free: 9.617 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002622/0.4073, allocations: 175.8 kB / 0.5362 GB, free: 9.5 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.67e-05/0.4073, allocations: 34.25 kB / 0.5362 GB, free: 9.496 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001534/0.4075, allocations: 50.95 kB / 0.5363 GB, free: 9.488 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.224e-05/0.4076, allocations: 75.05 kB / 0.5364 GB, free: 9.426 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002203/0.4078, allocations: 192.4 kB / 0.5365 GB, free: 9.305 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007139/0.4085, allocations: 441.9 kB / 0.537 GB, free: 9.004 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.4086, allocations: 0 / 0.537 GB, free: 9.004 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4086, allocations: 1.219 kB / 0.537 GB, free: 9.004 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.005e-05/0.4086, 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.00112/0.4097, allocations: 0.668 MB / 0.5376 GB, free: 8.414 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.4098, allocations: 9.344 kB / 0.5376 GB, free: 8.414 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003112/0.4101, allocations: 68.56 kB / 0.5377 GB, free: 8.383 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005424/0.4106, allocations: 297.7 kB / 0.538 GB, free: 8.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.923e-05/0.4107, allocations: 27.81 kB / 0.538 GB, free: 8.078 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.684e-05/0.4107, allocations: 41.17 kB / 0.538 GB, free: 8.062 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006104/0.4114, allocations: 367 kB / 0.5384 GB, free: 7.809 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.524e-05/0.4114, allocations: 6.969 kB / 0.5384 GB, free: 7.805 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.202e-05/0.4114, allocations: 15.56 kB / 0.5384 GB, free: 7.793 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.4115, allocations: 13.41 kB / 0.5384 GB, free: 7.789 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004583/0.4119, allocations: 226.7 kB / 0.5386 GB, free: 7.684 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00216/0.4141, allocations: 1.57 MB / 0.5402 GB, free: 6.277 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006079/0.4147, allocations: 310.9 kB / 0.5405 GB, free: 6.035 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001636/0.4149, allocations: 101 kB / 0.5406 GB, free: 5.953 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.46e-05/0.4149, allocations: 2.906 kB / 0.5406 GB, free: 5.953 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.896e-05/0.415, allocations: 41.31 kB / 0.5406 GB, free: 5.906 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.643e-06/0.415, allocations: 0 / 0.5406 GB, free: 5.906 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006873/0.4157, allocations: 275.3 kB / 0.5409 GB, free: 5.758 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.137e-05/0.4158, allocations: 187.2 kB / 0.5411 GB, free: 5.535 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002557/0.416, allocations: 237 kB / 0.5413 GB, free: 5.367 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.463e-05/0.4161, allocations: 34.89 kB / 0.5413 GB, free: 5.328 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001391/0.4162, allocations: 219.9 kB / 0.5415 GB, free: 5.129 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.526e-05/0.4163, allocations: 111.3 kB / 0.5416 GB, free: 5.031 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001069/0.4164, allocations: 77.34 kB / 0.5417 GB, free: 4.973 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.4166, allocations: 341.6 kB / 0.542 GB, free: 4.637 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001821/0.4167, allocations: 81.2 kB / 0.5421 GB, free: 4.602 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002889/0.417, allocations: 251.5 kB / 0.5423 GB, free: 4.344 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00051/0.4176, allocations: 371.8 kB / 0.5427 GB, free: 4.012 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.4176, allocations: 1.25 kB / 0.5427 GB, free: 4.012 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006859/0.4183, allocations: 376.3 kB / 0.5431 GB, free: 3.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.4183, allocations: 6.906 kB / 0.5431 GB, free: 3.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.4183, allocations: 9.812 kB / 0.5431 GB, free: 3.816 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.571e-05/0.4184, allocations: 12.75 kB / 0.5431 GB, free: 3.812 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003555/0.4187, allocations: 102.8 kB / 0.5432 GB, free: 3.793 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.596e-05/0.4187, allocations: 15.22 kB / 0.5432 GB, free: 3.785 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002163/0.419, allocations: 50.19 kB / 0.5432 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.192e-05/0.419, allocations: 19.62 kB / 0.5433 GB, free: 3.746 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.0002371/0.4192, allocations: 162.6 kB / 0.5434 GB, free: 3.594 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001386/0.4194, allocations: 35 kB / 0.5435 GB, free: 3.574 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001911/0.4196, allocations: 90.06 kB / 0.5435 GB, free: 3.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.4196, allocations: 3.344 kB / 0.5435 GB, free: 3.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.435e-06/0.4196, allocations: 6.188 kB / 0.5435 GB, free: 3.496 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.829e-05/0.4197, allocations: 2.156 kB / 0.5436 GB, free: 3.496 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007111/0.4204, allocations: 361.7 kB / 0.5439 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.4204, allocations: 1.188 kB / 0.5439 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004128/0.4208, allocations: 79.55 kB / 0.544 GB, free: 3.156 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.4209, allocations: 4.156 kB / 0.544 GB, free: 3.156 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.753e-05/0.4209, allocations: 11.41 kB / 0.544 GB, free: 3.148 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.162e-06/0.4209, allocations: 7.312 kB / 0.544 GB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.4209, allocations: 1.156 kB / 0.544 GB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009891/0.4219, allocations: 0.7744 MB / 0.5448 GB, free: 2.496 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.328e-05/0.422, allocations: 101.1 kB / 0.5448 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.958e-05/0.4221, allocations: 12.45 kB / 0.5449 GB, free: 2.379 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003161/0.4224, allocations: 20.67 kB / 0.5449 GB, free: 2.363 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.636e-05/0.4224, allocations: 12.67 kB / 0.5449 GB, free: 2.359 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-05/0.4225, allocations: 14.73 kB / 0.5449 GB, free: 2.352 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001798/0.4227, allocations: 171.7 kB / 0.5451 GB, free: 2.23 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4227, allocations: 1.125 kB / 0.5451 GB, free: 2.23 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006636/0.4233, allocations: 94.06 kB / 0.5452 GB, free: 2.211 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.0001598/0.4235, allocations: 110 kB / 0.5453 GB, free: 2.109 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005411/0.424, allocations: 231.7 kB / 0.5455 GB, free: 2.016 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.4241, allocations: 0 / 0.5455 GB, free: 2.016 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002126/0.4243, allocations: 98.77 kB / 0.5456 GB, free: 1.977 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009413/0.4252, allocations: 83.11 kB / 0.5457 GB, free: 1.934 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002407/0.4276, allocations: 1.306 MB / 0.5469 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000474/0.4281, allocations: 0.7912 MB / 0.5477 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001475/0.4283, allocations: 34.95 kB / 0.5477 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.703e-05/0.4284, allocations: 31.36 kB / 0.5478 GB, free: 15.83 MB / 414.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4284, allocations: 0 / 0.5478 GB, free: 15.83 MB / 414.1 MB Notification: Performance of Templates: time 0.007152/0.4355, allocations: 3.096 MB / 0.5508 GB, free: 12.77 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