Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.0009635/0.0009635, allocations: 78.28 kB / 21.42 MB, free: 3.078 MB / 18.57 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.0009932/0.0009932, allocations: 150.3 kB / 24.81 MB, free: 9.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9812/0.9812, allocations: 173.3 MB / 201.4 MB, free: 9.188 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 268.4 MB, free: 6.191 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.654e-05/1.783e-05, allocations: 6.312 kB / 268.4 MB, free: 6.184 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.005816/0.005834, allocations: 2.419 MB / 270.8 MB, free: 3.746 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001/0.006834, allocations: 495.2 kB / 271.3 MB, free: 3.262 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001348/0.006969, allocations: 4 kB / 271.3 MB, free: 3.258 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001922/0.007161, allocations: 43.52 kB / 271.3 MB, free: 3.215 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001114/0.008275, allocations: 99.19 kB / 271.4 MB, free: 3.117 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00283/0.01111, allocations: 199.5 kB / 271.6 MB, free: 2.922 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004719/0.01158, allocations: 0.4911 MB / 272.1 MB, free: 2.43 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.01171, allocations: 44.84 kB / 272.2 MB, free: 2.383 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003428/0.01206, allocations: 291.5 kB / 272.5 MB, free: 2.098 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002749/0.01233, allocations: 203.5 kB / 272.7 MB, free: 1.898 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.809e-05/0.01239, allocations: 40 kB / 272.7 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000161/0.01255, allocations: 91.89 kB / 272.8 MB, free: 1.77 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.679e-05/0.01265, allocations: 95.7 kB / 272.9 MB, free: 1.676 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.01277, allocations: 135.6 kB / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004283/0.0132, allocations: 374.8 kB / 273.4 MB, free: 1.176 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.524e-06/0.0132, allocations: 4 kB / 273.4 MB, free: 1.172 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.0132, allocations: 0 / 273.4 MB, free: 1.172 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.01321, allocations: 0 / 273.4 MB, free: 1.172 MB / 250.7 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.0008758/0.01408, allocations: 0.679 MB / 274.1 MB, free: 464 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.017e-05/0.01412, allocations: 12.92 kB / 274.1 MB, free: 452 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.01423, allocations: 52.75 kB / 274.1 MB, free: 400 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002688/0.0145, allocations: 232.9 kB / 274.3 MB, free: 140 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.927e-05/0.01453, allocations: 21.03 kB / 274.4 MB, free: 120 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.876e-05/0.01459, allocations: 32.36 kB / 274.4 MB, free: 88 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004453/0.01503, allocations: 283.2 kB / 274.7 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.01505, allocations: 4.141 kB / 274.7 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.993e-05/0.01508, allocations: 12.38 kB / 274.7 MB, free: 15.79 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.01509, allocations: 12.3 kB / 274.7 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003414/0.01543, allocations: 208.3 kB / 274.9 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005525/0.02095, allocations: 0.8823 MB / 275.8 MB, free: 14.63 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000294/0.02125, allocations: 188.5 kB / 276 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001465/0.02139, allocations: 104.6 kB / 276.1 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.097e-05/0.02142, allocations: 4 kB / 276.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.734e-05/0.02145, allocations: 45.33 kB / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of pre-optimization done (n=39): time 1.854e-06/0.02145, allocations: 4 kB / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.002712/0.02417, allocations: 1.263 MB / 277.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.543e-05/0.0242, allocations: 59.41 kB / 277.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002213/0.02442, allocations: 268.2 kB / 277.7 MB, free: 12.58 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.771e-05/0.02447, allocations: 41.7 kB / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.02458, allocations: 199.7 kB / 277.9 MB, free: 12.34 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/0.02472, allocations: 166.7 kB / 278.1 MB, free: 12.17 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001607/0.02488, allocations: 95.77 kB / 278.2 MB, free: 12.07 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.02507, allocations: 0.5156 MB / 278.7 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002314/0.0253, allocations: 104.9 kB / 278.8 MB, free: 11.44 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002484/0.02555, allocations: 202.8 kB / 279 MB, free: 11.21 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003458/0.02589, allocations: 257.3 kB / 279.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.02589, allocations: 0 / 279.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0009598/0.02685, allocations: 0.5005 MB / 279.8 MB, free: 10.41 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.02688, allocations: 10.59 kB / 279.8 MB, free: 10.4 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.02689, allocations: 7.984 kB / 279.8 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006771/0.02756, allocations: 411 kB / 280.2 MB, free: 9.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002308/0.02779, allocations: 71.91 kB / 280.3 MB, free: 9.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001066/0.02886, allocations: 1.748 MB / 282 MB, free: 8.098 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002565/0.02912, allocations: 48.02 kB / 282.1 MB, free: 8.051 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.933e-05/0.02916, allocations: 19.98 kB / 282.1 MB, free: 8.031 MB / 266.7 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.0001569/0.02931, allocations: 184.5 kB / 282.3 MB, free: 7.84 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.461e-05/0.02941, allocations: 47.75 kB / 282.3 MB, free: 7.793 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.762e-05/0.02948, allocations: 47.3 kB / 282.4 MB, free: 7.742 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.76e-06/0.02949, allocations: 8 kB / 282.4 MB, free: 7.734 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.0295, allocations: 3.938 kB / 282.4 MB, free: 7.73 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.0295, allocations: 0 / 282.4 MB, free: 7.73 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001886/0.03139, allocations: 1.028 MB / 283.4 MB, free: 6.641 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.03139, allocations: 0 / 283.4 MB, free: 6.641 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002243/0.03162, allocations: 59.91 kB / 283.4 MB, free: 6.582 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006001/0.03222, allocations: 399.2 kB / 283.8 MB, free: 6.184 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.513e-05/0.03226, allocations: 19.98 kB / 283.9 MB, free: 6.164 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001057/0.03332, allocations: 1.748 MB / 285.6 MB, free: 4.352 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.03332, allocations: 3.984 kB / 285.6 MB, free: 4.348 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001225/0.03455, allocations: 0.7495 MB / 286.4 MB, free: 3.551 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001598/0.03471, allocations: 75.73 kB / 286.4 MB, free: 3.477 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.269e-05/0.03477, allocations: 12 kB / 286.4 MB, free: 3.465 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002176/0.03499, allocations: 31.97 kB / 286.5 MB, free: 3.434 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001731/0.03516, allocations: 87.77 kB / 286.6 MB, free: 3.348 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.989e-05/0.0352, allocations: 20.02 kB / 286.6 MB, free: 3.328 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001205/0.03532, allocations: 185 kB / 286.8 MB, free: 3.148 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.03532, allocations: 4 kB / 286.8 MB, free: 3.145 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003956/0.03572, allocations: 108 kB / 286.9 MB, free: 3.039 MB / 266.7 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.0001864/0.0359, allocations: 139.1 kB / 287 MB, free: 2.895 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004481/0.03635, allocations: 333.5 kB / 287.3 MB, free: 2.562 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.03635, allocations: 320 / 287.3 MB, free: 2.562 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002175/0.03657, allocations: 201.3 kB / 287.5 MB, free: 2.363 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003109/0.03688, allocations: 76.81 kB / 287.6 MB, free: 2.289 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001252/0.03813, allocations: 0.8362 MB / 288.4 MB, free: 1.402 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.369e-05/0.0382, allocations: 97.28 kB / 288.5 MB, free: 1.289 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.011e-05/0.03829, allocations: 34.97 kB / 288.6 MB, free: 1.258 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.03843, allocations: 126.2 kB / 288.7 MB, free: 1.133 MB / 266.7 MB Notification: Performance of SimCode: time 7.31e-07/0.03843, allocations: 0 / 288.7 MB, free: 1.133 MB / 266.7 MB Notification: Performance of Templates: time 0.09925/0.1377, allocations: 8.119 MB / 296.8 MB, free: 29.83 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.894325331784785]