Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002021/0.002021, allocations: 106 kB / 21.18 MB, free: 0.6992 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001487/0.001487, allocations: 179.9 kB / 24.46 MB, free: 4.062 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.487/1.487, allocations: 207.6 MB / 235.2 MB, free: 10.02 MB / 190.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(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_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660]
"Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Performance of FrontEnd - loaded program: time 0.002423/0.002423, allocations: 55.91 kB / 347.6 MB, free: 9.578 MB / 286.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3339/0.3364, allocations: 49.15 MB / 396.8 MB, free: 9.516 MB / 318.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003864/0.3402, allocations: 2.435 MB / 399.2 MB, free: 7.805 MB / 318.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001008/0.3412, allocations: 0.5048 MB / 399.7 MB, free: 7.449 MB / 318.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001357/0.3414, allocations: 6.094 kB / 399.7 MB, free: 7.445 MB / 318.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0002325/0.3416, allocations: 48.92 kB / 399.8 MB, free: 7.418 MB / 318.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001593/0.3418, allocations: 82.17 kB / 399.9 MB, free: 7.363 MB / 318.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0005254/0.3423, allocations: 200.8 kB / 400.1 MB, free: 7.258 MB / 318.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0005791/0.3429, allocations: 497.6 kB / 400.6 MB, free: 7.031 MB / 318.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001797/0.3431, allocations: 61.66 kB / 400.6 MB, free: 6.996 MB / 318.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002539/0.3433, allocations: 217.4 kB / 400.8 MB, free: 6.906 MB / 318.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003676/0.3437, allocations: 239.5 kB / 401.1 MB, free: 6.805 MB / 318.1 MB
Notification: Performance of NFPackage.collectConstants: time 7.083e-05/0.3437, allocations: 37.75 kB / 401.1 MB, free: 6.805 MB / 318.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001908/0.3439, allocations: 90.64 kB / 401.2 MB, free: 6.789 MB / 318.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001465/0.3441, allocations: 100.3 kB / 401.3 MB, free: 6.727 MB / 318.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002358/0.3443, allocations: 178.6 kB / 401.5 MB, free: 6.617 MB / 318.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0006283/0.3449, allocations: 470.7 kB / 401.9 MB, free: 6.438 MB / 318.1 MB
Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.3449, allocations: 4 kB / 401.9 MB, free: 6.434 MB / 318.1 MB
Notification: Performance of FrontEnd: time 9.82e-07/0.3449, allocations: 0 / 401.9 MB, free: 6.434 MB / 318.1 MB
Notification: Performance of Transformations before backend: time 6.933e-06/0.345, allocations: 0 / 401.9 MB, free: 6.434 MB / 318.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 69
 * Number of variables: 69
Notification: Performance of Generate backend data structure: time 0.001153/0.3461, allocations: 0.5972 MB / 402.5 MB, free: 6.008 MB / 318.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.3462, allocations: 8.75 kB / 402.5 MB, free: 6.008 MB / 318.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 9.765e-05/0.3463, allocations: 38.61 kB / 402.6 MB, free: 5.988 MB / 318.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003281/0.3466, allocations: 223.8 kB / 402.8 MB, free: 5.801 MB / 318.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.389e-05/0.3466, allocations: 25 kB / 402.8 MB, free: 5.785 MB / 318.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 7.449e-05/0.3467, allocations: 34.16 kB / 402.8 MB, free: 5.773 MB / 318.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008294/0.3475, allocations: 378.3 kB / 403.2 MB, free: 5.629 MB / 318.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.049e-05/0.3475, allocations: 6.156 kB / 403.2 MB, free: 5.625 MB / 318.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.935e-05/0.3476, allocations: 14.41 kB / 403.2 MB, free: 5.613 MB / 318.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.343e-05/0.3476, allocations: 8.766 kB / 403.2 MB, free: 5.613 MB / 318.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000854/0.3485, allocations: 402.6 kB / 403.6 MB, free: 5.496 MB / 318.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001999/0.3505, allocations: 1.058 MB / 404.7 MB, free: 4.852 MB / 318.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0005629/0.351, allocations: 278.8 kB / 405 MB, free: 4.738 MB / 318.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0003612/0.3514, allocations: 187 kB / 405.2 MB, free: 4.664 MB / 318.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 4.933e-05/0.3514, allocations: 3.562 kB / 405.2 MB, free: 4.664 MB / 318.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.929e-05/0.3515, allocations: 48.81 kB / 405.2 MB, free: 4.609 MB / 318.1 MB
Notification: Performance of pre-optimization done (n=39): time 1.513e-06/0.3515, allocations: 0 / 405.2 MB, free: 4.609 MB / 318.1 MB
Notification: Performance of matching and sorting (n=45): time 0.004953/0.3564, allocations: 1.73 MB / 406.9 MB, free: 3.828 MB / 318.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.226e-05/0.3565, allocations: 57.55 kB / 407 MB, free: 3.766 MB / 318.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002951/0.3567, allocations: 233.2 kB / 407.2 MB, free: 3.621 MB / 318.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.827e-05/0.3568, allocations: 44 kB / 407.3 MB, free: 3.578 MB / 318.1 MB
Notification: Performance of collectInitialEqns (initialization): time 9.272e-05/0.3569, allocations: 155.4 kB / 407.4 MB, free: 3.441 MB / 318.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001122/0.357, allocations: 163 kB / 407.6 MB, free: 3.316 MB / 318.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001669/0.3572, allocations: 96.62 kB / 407.7 MB, free: 3.266 MB / 318.1 MB
Notification: Performance of setup shared object (initialization): time 8.439e-05/0.3573, allocations: 341.6 kB / 408 MB, free: 2.938 MB / 318.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003946/0.3576, allocations: 211.5 kB / 408.2 MB, free: 2.863 MB / 318.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004441/0.3581, allocations: 282.6 kB / 408.5 MB, free: 2.715 MB / 318.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0006119/0.3587, allocations: 381 kB / 408.9 MB, free: 2.523 MB / 318.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.634e-06/0.3587, allocations: 1.062 kB / 408.9 MB, free: 2.523 MB / 318.1 MB
Notification: Performance of matching and sorting (n=62) (initialization): time 0.001447/0.3602, allocations: 0.6914 MB / 409.5 MB, free: 2.238 MB / 318.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.3602, allocations: 6.234 kB / 409.6 MB, free: 2.238 MB / 318.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.3602, allocations: 2.344 kB / 409.6 MB, free: 2.238 MB / 318.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0008907/0.3611, allocations: 0.4918 MB / 410 MB, free: 2.02 MB / 318.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003121/0.3614, allocations: 72.16 kB / 410.1 MB, free: 2.004 MB / 318.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001083/0.3625, allocations: 1.395 MB / 411.5 MB, free: 0.7734 MB / 318.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004073/0.3629, allocations: 66.5 kB / 411.6 MB, free: 0.7422 MB / 318.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.517e-05/0.3629, allocations: 18.84 kB / 411.6 MB, free: 0.7383 MB / 318.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 (49):
 * Single equations (assignments): 47
 * 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,6)}
Notification: Performance of prepare postOptimizeDAE: time 0.0002003/0.3631, allocations: 164.9 kB / 411.8 MB, free: 0.5859 MB / 318.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 9.066e-05/0.3632, allocations: 34.19 kB / 411.8 MB, free: 0.5664 MB / 318.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.856e-05/0.3633, allocations: 49.86 kB / 411.8 MB, free: 0.5234 MB / 318.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-06/0.3633, allocations: 4.062 kB / 411.8 MB, free: 0.5234 MB / 318.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/0.3633, allocations: 1.156 kB / 411.8 MB, free: 0.5234 MB / 318.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.3633, allocations: 0 / 411.8 MB, free: 0.5234 MB / 318.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002577/0.3659, allocations: 1.321 MB / 413.2 MB, free: 15.6 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.3659, allocations: 1.094 kB / 413.2 MB, free: 15.6 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002731/0.3662, allocations: 58.95 kB / 413.2 MB, free: 15.59 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0007926/0.367, allocations: 470.4 kB / 413.7 MB, free: 15.38 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.112e-05/0.367, allocations: 13.77 kB / 413.7 MB, free: 15.37 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001517/0.3685, allocations: 1.341 MB / 415 MB, free: 14.16 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.3685, allocations: 5.031 kB / 415 MB, free: 14.16 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001938/0.3705, allocations: 0.9369 MB / 416 MB, free: 13.58 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0002054/0.3707, allocations: 81.55 kB / 416.1 MB, free: 13.52 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.845e-05/0.3708, allocations: 19.19 kB / 416.1 MB, free: 13.51 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003117/0.3711, allocations: 35.67 kB / 416.1 MB, free: 13.5 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002189/0.3713, allocations: 90.16 kB / 416.2 MB, free: 13.43 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.742e-05/0.3714, allocations: 31.09 kB / 416.2 MB, free: 13.41 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 0.0002192/0.3716, allocations: 170.2 kB / 416.4 MB, free: 13.3 MB / 334.1 MB
Notification: Performance of sort global known variables: time 6e-08/0.3716, allocations: 0 / 416.4 MB, free: 13.3 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0006739/0.3722, allocations: 100.7 kB / 416.5 MB, free: 13.29 MB / 334.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,5), (1,5)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.0003442/0.3726, allocations: 136.1 kB / 416.6 MB, free: 13.18 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.001197/0.3738, allocations: 483.7 kB / 417.1 MB, free: 12.97 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.3738, allocations: 1.25 kB / 417.1 MB, free: 12.97 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0006278/0.3744, allocations: 285.2 kB / 417.4 MB, free: 12.84 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004937/0.3749, allocations: 57.72 kB / 417.4 MB, free: 12.8 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002691/0.3776, allocations: 0.9682 MB / 418.4 MB, free: 12.12 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005491/0.3782, allocations: 0.7762 MB / 419.2 MB, free: 11.38 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 0.0001578/0.3783, allocations: 37.53 kB / 419.2 MB, free: 11.36 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 9.133e-05/0.3784, allocations: 30.31 kB / 419.2 MB, free: 11.35 MB / 334.1 MB
Notification: Performance of SimCode: time 4.31e-07/0.3784, allocations: 0 / 419.2 MB, free: 11.35 MB / 334.1 MB
Notification: Performance of Templates: time 0.01973/0.3981, allocations: 9.205 MB / 428.5 MB, free: 3.148 MB / 334.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660]
(rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 5.030549729242921]