Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001945/0.001945, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002232/0.002232, allocations: 213.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.532/1.532, allocations: 230.3 MB / 258 MB, free: 8.191 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2336/0.2336, allocations: 46.94 MB / 361.4 MB, free: 4.484 MB / 286.1 MB
"
[Timeout remaining time 180]
Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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=5006,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking")
translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking") [Timeout 660]
"Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.003353/0.003353, allocations: 79.88 kB / 0.4971 GB, free: 7.543 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.431/0.4343, allocations: 66.04 MB / 0.5616 GB, free: 4.543 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004558/0.4389, allocations: 3.069 MB / 0.5646 GB, free: 1.457 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002061/0.441, allocations: 1.083 MB / 0.5657 GB, free: 380 kB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.000163/0.4411, allocations: 7.938 kB / 0.5657 GB, free: 372 kB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001875/0.4413, allocations: 63.31 kB / 0.5658 GB, free: 308 kB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.000239/0.4416, allocations: 127 kB / 0.5659 GB, free: 180 kB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0005362/0.4421, allocations: 175.5 kB / 0.566 GB, free: 4 kB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0005178/0.4426, allocations: 457.8 kB / 0.5665 GB, free: 15.55 MB / 414.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001904/0.4428, allocations: 80 kB / 0.5666 GB, free: 15.47 MB / 414.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002121/0.443, allocations: 171.4 kB / 0.5667 GB, free: 15.3 MB / 414.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002333/0.4432, allocations: 175.2 kB / 0.5669 GB, free: 15.13 MB / 414.1 MB
Notification: Performance of NFPackage.collectConstants: time 5.234e-05/0.4433, allocations: 32 kB / 0.5669 GB, free: 15.1 MB / 414.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001253/0.4434, allocations: 47.98 kB / 0.567 GB, free: 15.05 MB / 414.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.291e-05/0.4435, allocations: 79.69 kB / 0.567 GB, free: 14.97 MB / 414.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001838/0.4437, allocations: 195 kB / 0.5672 GB, free: 14.78 MB / 414.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0005149/0.4442, allocations: 440.7 kB / 0.5676 GB, free: 14.36 MB / 414.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.4442, allocations: 0 / 0.5676 GB, free: 14.36 MB / 414.1 MB
Notification: Performance of FrontEnd: time 1.413e-06/0.4442, allocations: 0 / 0.5676 GB, free: 14.36 MB / 414.1 MB
Notification: Performance of Transformations before backend: time 7.364e-06/0.4442, allocations: 0 / 0.5676 GB, free: 14.36 MB / 414.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.001069/0.4453, allocations: 0.6066 MB / 0.5682 GB, free: 13.72 MB / 414.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.4453, allocations: 8.031 kB / 0.5682 GB, free: 13.71 MB / 414.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002909/0.4456, allocations: 72.56 kB / 0.5683 GB, free: 13.64 MB / 414.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003978/0.446, allocations: 233.7 kB / 0.5685 GB, free: 13.39 MB / 414.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.944e-05/0.446, allocations: 29.38 kB / 0.5686 GB, free: 13.36 MB / 414.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 6.674e-05/0.4461, allocations: 40.33 kB / 0.5686 GB, free: 13.32 MB / 414.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.000635/0.4467, allocations: 363.5 kB / 0.569 GB, free: 12.94 MB / 414.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.639e-05/0.4468, allocations: 8 kB / 0.569 GB, free: 12.93 MB / 414.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.79e-05/0.4468, allocations: 12 kB / 0.569 GB, free: 12.92 MB / 414.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.4468, allocations: 12 kB / 0.569 GB, free: 12.91 MB / 414.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004597/0.4473, allocations: 223.2 kB / 0.5692 GB, free: 12.69 MB / 414.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002247/0.4495, allocations: 1.506 MB / 0.5707 GB, free: 11.08 MB / 414.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0005815/0.4501, allocations: 303.6 kB / 0.571 GB, free: 10.73 MB / 414.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001667/0.4503, allocations: 93.12 kB / 0.571 GB, free: 10.62 MB / 414.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.212e-05/0.4503, allocations: 4 kB / 0.5711 GB, free: 10.62 MB / 414.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.152e-05/0.4503, allocations: 42.5 kB / 0.5711 GB, free: 10.57 MB / 414.1 MB
Notification: Performance of pre-optimization done (n=26): time 1.463e-06/0.4503, allocations: 4 kB / 0.5711 GB, free: 10.56 MB / 414.1 MB
Notification: Performance of matching and sorting (n=26): time 0.0008116/0.4511, allocations: 270.2 kB / 0.5714 GB, free: 10.29 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001347/0.4513, allocations: 187.9 kB / 0.5715 GB, free: 10.07 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003231/0.4516, allocations: 241.8 kB / 0.5718 GB, free: 9.82 MB / 414.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.59e-05/0.4516, allocations: 29.7 kB / 0.5718 GB, free: 9.785 MB / 414.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001902/0.4518, allocations: 216.3 kB / 0.572 GB, free: 9.57 MB / 414.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.4519, allocations: 123.1 kB / 0.5721 GB, free: 9.449 MB / 414.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.000142/0.4521, allocations: 74.09 kB / 0.5722 GB, free: 9.367 MB / 414.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001867/0.4523, allocations: 342.8 kB / 0.5725 GB, free: 9.023 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002366/0.4525, allocations: 76.84 kB / 0.5726 GB, free: 8.949 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000428/0.4529, allocations: 253.7 kB / 0.5728 GB, free: 8.629 MB / 414.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0007169/0.4536, allocations: 361.1 kB / 0.5732 GB, free: 8.199 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.4536, allocations: 0 / 0.5732 GB, free: 8.199 MB / 414.1 MB
Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009434/0.4546, allocations: 384.8 kB / 0.5735 GB, free: 7.816 MB / 414.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.4546, allocations: 8 kB / 0.5735 GB, free: 7.809 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.4546, allocations: 8.609 kB / 0.5736 GB, free: 7.801 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 3.11e-05/0.4547, allocations: 8 kB / 0.5736 GB, free: 7.793 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005205/0.4552, allocations: 111.8 kB / 0.5737 GB, free: 7.684 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.312e-05/0.4552, allocations: 11.94 kB / 0.5737 GB, free: 7.672 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003314/0.4555, allocations: 43.67 kB / 0.5737 GB, free: 7.629 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.375e-05/0.4556, allocations: 23.98 kB / 0.5737 GB, free: 7.605 MB / 414.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.0002786/0.4559, allocations: 162.5 kB / 0.5739 GB, free: 7.438 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002003/0.4561, allocations: 32.06 kB / 0.5739 GB, free: 7.406 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002318/0.4563, allocations: 91.39 kB / 0.574 GB, free: 7.309 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.014e-05/0.4563, allocations: 11.98 kB / 0.574 GB, free: 7.297 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.4563, allocations: 4 kB / 0.574 GB, free: 7.293 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.4563, allocations: 3.984 kB / 0.574 GB, free: 7.289 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001005/0.4573, allocations: 316.4 kB / 0.5743 GB, free: 6.938 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.4573, allocations: 4 kB / 0.5743 GB, free: 6.934 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000564/0.4579, allocations: 83.89 kB / 0.5744 GB, free: 6.852 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.4579, allocations: 0 / 0.5744 GB, free: 6.852 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.556e-05/0.4579, allocations: 11.98 kB / 0.5744 GB, free: 6.84 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.835e-06/0.4579, allocations: 4 kB / 0.5744 GB, free: 6.836 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.4579, allocations: 0 / 0.5744 GB, free: 6.836 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00124/0.4592, allocations: 0.7742 MB / 0.5752 GB, free: 6.039 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 6.28e-05/0.4592, allocations: 31.8 kB / 0.5752 GB, free: 6.008 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.85e-05/0.4593, allocations: 8 kB / 0.5752 GB, free: 6 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005268/0.4598, allocations: 12 kB / 0.5752 GB, free: 5.988 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 7.723e-05/0.4599, allocations: 23.95 kB / 0.5753 GB, free: 5.965 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.008e-05/0.4599, allocations: 4 kB / 0.5753 GB, free: 5.961 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 0.0002213/0.4601, allocations: 173.2 kB / 0.5754 GB, free: 5.789 MB / 414.1 MB
Notification: Performance of sort global known variables: time 1.2e-07/0.4601, allocations: 3.938 kB / 0.5754 GB, free: 5.785 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.001018/0.4612, allocations: 99.78 kB / 0.5755 GB, free: 5.688 MB / 414.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.0001521/0.4613, allocations: 103.2 kB / 0.5756 GB, free: 5.578 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.000647/0.462, allocations: 223.6 kB / 0.5758 GB, free: 5.359 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.462, allocations: 1.25 kB / 0.5758 GB, free: 5.359 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0002439/0.4622, allocations: 91.83 kB / 0.5759 GB, free: 5.27 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001413/0.4636, allocations: 77.88 kB / 0.576 GB, free: 5.195 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003055/0.4667, allocations: 1.312 MB / 0.5773 GB, free: 3.836 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005999/0.4673, allocations: 0.7874 MB / 0.5781 GB, free: 3.023 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.0002073/0.4675, allocations: 42.94 kB / 0.5781 GB, free: 2.984 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 9.296e-05/0.4676, allocations: 27.38 kB / 0.5781 GB, free: 2.957 MB / 414.1 MB
Notification: Performance of SimCode: time 4.21e-07/0.4676, allocations: 4 kB / 0.5781 GB, free: 2.953 MB / 414.1 MB
Notification: Performance of Templates: time 0.01172/0.4793, allocations: 3.327 MB / 0.5814 GB, free: 15.66 MB / 430.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.makefile [Timeout 660]
(rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 5.390263774432242]