Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.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.00174/0.00174, allocations: 106.5 kB / 21.22 MB, free: 0.6797 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.002226/0.002226, allocations: 209.9 kB / 24.54 MB, free: 4.055 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.537/1.537, allocations: 230.3 MB / 258 MB, free: 8.266 MB / 206.1 MB
"
[Timeout remaining time 178]
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(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake")
translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 63.89 kB / 378.7 MB, free: 2.82 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2454, allocations: 53.37 MB / 432.1 MB, free: 7.102 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004237/0.2496, allocations: 2.605 MB / 434.7 MB, free: 4.488 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001159/0.2508, allocations: 0.5849 MB / 435.3 MB, free: 3.902 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.2509, allocations: 4 kB / 435.3 MB, free: 3.898 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003183/0.2512, allocations: 75.34 kB / 435.4 MB, free: 3.824 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0003157/0.2515, allocations: 131.1 kB / 435.5 MB, free: 3.695 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003492/0.2519, allocations: 171.7 kB / 435.7 MB, free: 3.527 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0006003/0.2525, allocations: 0.507 MB / 436.2 MB, free: 3.016 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001582/0.2526, allocations: 44.92 kB / 436.2 MB, free: 2.973 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002792/0.2529, allocations: 239.3 kB / 436.5 MB, free: 2.738 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003581/0.2533, allocations: 251.2 kB / 436.7 MB, free: 2.492 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 8.754e-05/0.2534, allocations: 43.94 kB / 436.7 MB, free: 2.449 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001911/0.2536, allocations: 99.97 kB / 436.8 MB, free: 2.352 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001816/0.2537, allocations: 115.6 kB / 437 MB, free: 2.238 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.000213/0.254, allocations: 191.1 kB / 437.1 MB, free: 2.051 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0006642/0.2546, allocations: 0.5037 MB / 437.6 MB, free: 1.551 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2546, allocations: 0 / 437.6 MB, free: 1.551 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.493e-06/0.2546, allocations: 0 / 437.6 MB, free: 1.551 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 1.184e-05/0.2546, allocations: 3.938 kB / 437.6 MB, free: 1.547 MB / 334.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 73
 * Number of variables: 73
Notification: Performance of Generate backend data structure: time 0.00147/0.2561, allocations: 0.6452 MB / 438.3 MB, free: 0.8672 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.2561, allocations: 12.03 kB / 438.3 MB, free: 0.8555 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.2562, allocations: 40.7 kB / 438.3 MB, free: 0.8164 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004634/0.2567, allocations: 233.9 kB / 438.6 MB, free: 0.5625 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.642e-05/0.2567, allocations: 25.03 kB / 438.6 MB, free: 0.5391 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 7.782e-05/0.2568, allocations: 32.31 kB / 438.6 MB, free: 0.5078 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008182/0.2576, allocations: 382.4 kB / 439 MB, free: 132 kB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.2577, allocations: 4.141 kB / 439 MB, free: 128 kB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.93e-05/0.2577, allocations: 15.94 kB / 439 MB, free: 112 kB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.2577, allocations: 4 kB / 439 MB, free: 108 kB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000901/0.2586, allocations: 394.4 kB / 439.4 MB, free: 15.72 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002291/0.2609, allocations: 1.099 MB / 440.5 MB, free: 14.55 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.000704/0.2616, allocations: 313.6 kB / 440.8 MB, free: 14.23 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.000403/0.262, allocations: 180.8 kB / 441 MB, free: 14.05 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 4.559e-05/0.2621, allocations: 4 kB / 441 MB, free: 14.05 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/0.2621, allocations: 34.56 kB / 441 MB, free: 14.01 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=43): time 2.134e-06/0.2621, allocations: 0 / 441 MB, free: 14.01 MB / 350.1 MB
Notification: Performance of matching and sorting (n=49): time 0.005105/0.2672, allocations: 1.708 MB / 442.7 MB, free: 12.24 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.501e-05/0.2673, allocations: 59.78 kB / 442.8 MB, free: 12.17 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003066/0.2676, allocations: 253 kB / 443 MB, free: 11.91 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 6.61e-05/0.2676, allocations: 49.69 kB / 443.1 MB, free: 11.86 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.2677, allocations: 157 kB / 443.2 MB, free: 11.7 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001673/0.2679, allocations: 174.6 kB / 443.4 MB, free: 11.53 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001741/0.2681, allocations: 94.3 kB / 443.5 MB, free: 11.43 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.000167/0.2682, allocations: 342.8 kB / 443.8 MB, free: 11.09 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.00044/0.2687, allocations: 189.2 kB / 444 MB, free: 10.91 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005216/0.2692, allocations: 277.7 kB / 444.3 MB, free: 10.61 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0007213/0.2699, allocations: 361.6 kB / 444.7 MB, free: 10.23 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2699, allocations: 0 / 444.7 MB, free: 10.23 MB / 350.1 MB
Notification: Performance of matching and sorting (n=64) (initialization): time 0.00131/0.2712, allocations: 0.6029 MB / 445.3 MB, free: 9.617 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.2713, allocations: 4 kB / 445.3 MB, free: 9.613 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/0.2713, allocations: 4 kB / 445.3 MB, free: 9.609 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0007987/0.2721, allocations: 341.6 kB / 445.6 MB, free: 9.27 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002965/0.2724, allocations: 71.91 kB / 445.7 MB, free: 9.199 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001565/0.2739, allocations: 1.362 MB / 447 MB, free: 7.785 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004662/0.2744, allocations: 68.03 kB / 447.1 MB, free: 7.719 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.139e-05/0.2744, allocations: 20 kB / 447.1 MB, free: 7.699 MB / 350.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 8
 * Number of states: 0 ()
 * Number of discrete variables: 16 (brake1.mode,$PRE.brake1.mode,brake1.locked,brake1.startBackward,$PRE.brake1.startBackward,brake1.startForward,$PRE.brake1.startForward,brake1.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (47):
 * Single equations (assignments): 45
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 2
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 0 systems
 * Non-linear torn systems (#iteration vars, #inner vars): 2 systems
   {(1,9), (1,8)}
Notification: Performance of prepare postOptimizeDAE: time 0.0002223/0.2747, allocations: 161.7 kB / 447.3 MB, free: 7.531 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 9.855e-05/0.2748, allocations: 43.7 kB / 447.3 MB, free: 7.488 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001493/0.2749, allocations: 55.61 kB / 447.4 MB, free: 7.43 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.2749, allocations: 8.031 kB / 447.4 MB, free: 7.422 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.2749, allocations: 0 / 447.4 MB, free: 7.422 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.2749, allocations: 0 / 447.4 MB, free: 7.422 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003079/0.278, allocations: 1.297 MB / 448.7 MB, free: 6.051 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.278, allocations: 4 kB / 448.7 MB, free: 6.047 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002886/0.2783, allocations: 59.91 kB / 448.7 MB, free: 5.988 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0006517/0.2789, allocations: 301.7 kB / 449 MB, free: 5.688 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.745e-05/0.279, allocations: 24.05 kB / 449.1 MB, free: 5.664 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001401/0.2804, allocations: 1.312 MB / 450.4 MB, free: 4.301 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.2804, allocations: 4.031 kB / 450.4 MB, free: 4.297 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001965/0.2824, allocations: 0.9181 MB / 451.3 MB, free: 3.34 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001984/0.2826, allocations: 83.73 kB / 451.4 MB, free: 3.258 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.924e-05/0.2827, allocations: 16 kB / 451.4 MB, free: 3.242 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000348/0.283, allocations: 39.95 kB / 451.4 MB, free: 3.203 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000208/0.2832, allocations: 91.75 kB / 451.5 MB, free: 3.113 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.392e-05/0.2833, allocations: 23.98 kB / 451.5 MB, free: 3.09 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0002085/0.2835, allocations: 188.4 kB / 451.7 MB, free: 2.906 MB / 350.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.2835, allocations: 0 / 451.7 MB, free: 2.906 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0004662/0.2839, allocations: 103.9 kB / 451.8 MB, free: 2.805 MB / 350.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 6
 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v)
 * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode)
 * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (35):
 * Single equations (assignments): 33
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 2
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 0 systems
 * Non-linear torn systems (#iteration vars, #inner vars): 2 systems
   {(1,7), (1,7)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.001405/0.2853, allocations: 377.7 kB / 452.2 MB, free: 2.547 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.001188/0.2865, allocations: 469.2 kB / 452.7 MB, free: 2.09 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2865, allocations: 0 / 452.7 MB, free: 2.09 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0006826/0.2872, allocations: 280 kB / 452.9 MB, free: 1.816 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005801/0.2878, allocations: 60.53 kB / 453 MB, free: 1.758 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002637/0.2904, allocations: 1.055 MB / 454 MB, free: 0.6602 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005283/0.291, allocations: 0.7879 MB / 454.8 MB, free: 15.84 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.0001571/0.2911, allocations: 42.97 kB / 454.9 MB, free: 15.8 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001014/0.2912, allocations: 31.42 kB / 454.9 MB, free: 15.77 MB / 366.1 MB
Notification: Performance of SimCode: time 5.81e-07/0.2912, allocations: 0 / 454.9 MB, free: 15.77 MB / 366.1 MB
Notification: Performance of Templates: time 0.01698/0.3082, allocations: 9.116 MB / 464 MB, free: 6.691 MB / 366.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.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: 4.814069035463035]