Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001914/0.001914, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002448/0.002448, allocations: 209.5 kB / 24.48 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 2.137/2.137, allocations: 230.6 MB / 258.2 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.CompareBrakingForce,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|mass1.v|mass2.v|mass3.v|mass4.v",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce") translateModel(Modelica.Mechanics.Translational.Examples.CompareBrakingForce,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|mass1.v|mass2.v|mass3.v|mass4.v",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002089/0.002089, allocations: 47.92 kB / 379 MB, free: 2.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.34, allocations: 53.36 MB / 432.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.005374/0.3454, allocations: 2.211 MB / 434.5 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002211/0.3476, allocations: 0.7284 MB / 435.3 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001779/0.3478, allocations: 7.938 kB / 435.3 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002034/0.348, allocations: 39.58 kB / 435.3 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003935/0.3484, allocations: 91.27 kB / 435.4 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004581/0.3488, allocations: 107.8 kB / 435.5 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005218/0.3493, allocations: 322.5 kB / 435.8 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001923/0.3495, allocations: 46.64 kB / 435.9 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002037/0.3497, allocations: 115.6 kB / 436 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002624/0.35, allocations: 123.5 kB / 436.1 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.004e-05/0.3501, allocations: 20 kB / 436.1 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.744e-05/0.3501, allocations: 20 kB / 436.1 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.481e-05/0.3502, allocations: 63.69 kB / 436.2 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001632/0.3504, allocations: 103.5 kB / 436.3 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004679/0.3508, allocations: 277.8 kB / 436.6 MB, free: 2.434 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3508, allocations: 0 / 436.6 MB, free: 2.434 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3508, allocations: 4 kB / 436.6 MB, free: 2.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.323e-06/0.3508, allocations: 0 / 436.6 MB, free: 2.43 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001368/0.3522, allocations: 489.4 kB / 437.1 MB, free: 1.922 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.3522, allocations: 12.03 kB / 437.1 MB, free: 1.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.422e-05/0.3523, allocations: 28.75 kB / 437.1 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005427/0.3529, allocations: 203.7 kB / 437.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.699e-05/0.3529, allocations: 16.81 kB / 437.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.448e-05/0.353, allocations: 28.3 kB / 437.3 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000759/0.3538, allocations: 246.9 kB / 437.6 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.843e-05/0.3538, allocations: 7.953 kB / 437.6 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.43e-05/0.3538, allocations: 4 kB / 437.6 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.3538, allocations: 8 kB / 437.6 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006698/0.3545, allocations: 159.8 kB / 437.7 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002161/0.3567, allocations: 0.899 MB / 438.6 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001039/0.3577, allocations: 278.3 kB / 438.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003279/0.358, allocations: 87.34 kB / 439 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.725e-05/0.3581, allocations: 8 kB / 439 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.984e-05/0.3581, allocations: 38.55 kB / 439.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 3.116e-06/0.3581, allocations: 4 kB / 439.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003173/0.3613, allocations: 1.047 MB / 440.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/0.3614, allocations: 132.5 kB / 440.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003359/0.3618, allocations: 210.7 kB / 440.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.73e-05/0.3618, allocations: 33.7 kB / 440.5 MB, free: 14.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001665/0.362, allocations: 156.8 kB / 440.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001602/0.3621, allocations: 123 kB / 440.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/0.3623, allocations: 62.14 kB / 440.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002314/0.3625, allocations: 346.8 kB / 441.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003637/0.3629, allocations: 80.83 kB / 441.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005121/0.3634, allocations: 197.9 kB / 441.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008433/0.3642, allocations: 306.8 kB / 441.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.358e-06/0.3643, allocations: 8 kB / 441.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001156/0.3654, allocations: 341.2 kB / 442.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.937e-05/0.3654, allocations: 8 kB / 442.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.3655, allocations: 4 kB / 442.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.358e-05/0.3655, allocations: 4 kB / 442.1 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005776/0.3661, allocations: 91.83 kB / 442.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.099e-05/0.3661, allocations: 11.98 kB / 442.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002796/0.3664, allocations: 12 kB / 442.2 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.497e-05/0.3664, allocations: 20 kB / 442.2 MB, free: 12.31 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (48): * Single equations (assignments): 48 * 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.0002269/0.3666, allocations: 149.6 kB / 442.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001679/0.3668, allocations: 31.92 kB / 442.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.823e-05/0.3669, allocations: 29.39 kB / 442.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.3669, allocations: 7.938 kB / 442.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.3669, allocations: 4 kB / 442.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.3669, allocations: 3.984 kB / 442.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002324/0.3692, allocations: 0.8735 MB / 443.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.776e-06/0.3693, allocations: 4 kB / 443.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006883/0.3699, allocations: 79.89 kB / 443.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.535e-05/0.37, allocations: 7.938 kB / 443.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.808e-05/0.37, allocations: 12 kB / 443.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.149e-05/0.37, allocations: 8.188 kB / 443.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.37, allocations: 0 / 443.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001407/0.3714, allocations: 0.7005 MB / 444.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.408e-05/0.3715, allocations: 31.81 kB / 444.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.113e-05/0.3716, allocations: 12 kB / 444.2 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000496/0.3721, allocations: 12 kB / 444.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.057e-05/0.3722, allocations: 35.83 kB / 444.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.911e-05/0.3722, allocations: 11.94 kB / 444.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002073/0.3724, allocations: 144.6 kB / 444.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3724, allocations: 0 / 444.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008875/0.3733, allocations: 64 kB / 444.4 MB, free: 9.977 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 8 (mass4.s,mass4.v,mass3.s,mass3.v,mass2.s,mass2.v,mass1.s,mass1.v) * 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 (32): * Single equations (assignments): 32 * 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.0001672/0.3734, allocations: 119.1 kB / 444.5 MB, free: 9.848 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008708/0.3743, allocations: 228.6 kB / 444.8 MB, free: 9.625 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3743, allocations: 0 / 444.8 MB, free: 9.625 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004462/0.3748, allocations: 116.7 kB / 444.9 MB, free: 9.512 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0013/0.3761, allocations: 75.59 kB / 444.9 MB, free: 9.441 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002594/0.3787, allocations: 0.9616 MB / 445.9 MB, free: 8.426 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002551/0.3789, allocations: 151 kB / 446.1 MB, free: 8.254 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000146/0.3791, allocations: 30.97 kB / 446.1 MB, free: 8.223 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.3792, allocations: 35.42 kB / 446.1 MB, free: 8.188 MB / 350.1 MB Notification: Performance of SimCode: time 1.243e-06/0.3792, allocations: 0 / 446.1 MB, free: 8.188 MB / 350.1 MB Notification: Performance of Templates: time 0.009597/0.3888, allocations: 3.417 MB / 449.5 MB, free: 4.816 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/CompareBrakingForce/CompareBrakingForce.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.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: 6.415911854011938]