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.001219/0.001219, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 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.00104/0.00104, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 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 1.039/1.039, allocations: 177.1 MB / 205 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] 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 1.282e-06/1.282e-06, allocations: 0 / 273 MB, free: 1.523 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.95e-05/2.078e-05, allocations: 2.312 kB / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.00239/0.00241, allocations: 2.361 MB / 275.3 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.003477, allocations: 0.7399 MB / 276.1 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.003584, allocations: 7.938 kB / 276.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001161/0.0037, allocations: 43.58 kB / 276.1 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000233/0.003933, allocations: 91.2 kB / 276.2 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002819/0.004215, allocations: 127.6 kB / 276.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002704/0.004486, allocations: 314.5 kB / 276.6 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.004604, allocations: 40.92 kB / 276.7 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001491/0.004753, allocations: 175.5 kB / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000116/0.004869, allocations: 95.69 kB / 276.9 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.796e-05/0.004897, allocations: 20 kB / 277 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.62e-05/0.004924, allocations: 20 kB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.797e-05/0.004962, allocations: 59.75 kB / 277 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.287e-05/0.005024, allocations: 87.77 kB / 277.1 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001963/0.005221, allocations: 191.3 kB / 277.3 MB, free: 13.15 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.005223, allocations: 0 / 277.3 MB, free: 13.15 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.005224, allocations: 0 / 277.3 MB, free: 13.15 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.86e-06/0.005229, allocations: 0 / 277.3 MB, free: 13.15 MB / 266.7 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.0005853/0.005814, allocations: 0.5779 MB / 277.9 MB, free: 12.54 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.00585, allocations: 12.02 kB / 277.9 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.156e-05/0.005911, allocations: 48.75 kB / 278 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002102/0.006121, allocations: 208.9 kB / 278.2 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.09e-05/0.006142, allocations: 12.88 kB / 278.2 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.755e-05/0.00618, allocations: 24.31 kB / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000268/0.006448, allocations: 224.1 kB / 278.4 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.006463, allocations: 8.125 kB / 278.4 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.863e-05/0.006482, allocations: 12.38 kB / 278.4 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.996e-06/0.006491, allocations: 11.94 kB / 278.4 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001441/0.006635, allocations: 99.47 kB / 278.5 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008054/0.00744, allocations: 1.063 MB / 279.6 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000257/0.007697, allocations: 244.4 kB / 279.8 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.825e-05/0.007775, allocations: 78.61 kB / 279.9 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.977e-05/0.007795, allocations: 7.938 kB / 279.9 MB, free: 10.31 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.007818, allocations: 49.38 kB / 280 MB, free: 10.25 MB / 266.7 MB Notification: Performance of pre-optimization done (n=28): time 1.402e-06/0.00782, allocations: 4 kB / 280 MB, free: 10.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.0009412/0.008761, allocations: 0.9477 MB / 280.9 MB, free: 9.168 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/0.008806, allocations: 132.5 kB / 281.1 MB, free: 9.008 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.008952, allocations: 261.5 kB / 281.3 MB, free: 8.734 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.54e-05/0.008968, allocations: 29.7 kB / 281.3 MB, free: 8.699 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.196e-05/0.009049, allocations: 203.5 kB / 281.5 MB, free: 8.496 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.34e-05/0.009113, allocations: 118.9 kB / 281.7 MB, free: 8.379 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.974e-05/0.009183, allocations: 87.8 kB / 281.7 MB, free: 8.285 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.0093, allocations: 0.504 MB / 282.2 MB, free: 7.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.249e-05/0.009372, allocations: 44.97 kB / 282.3 MB, free: 7.727 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001315/0.009504, allocations: 203.9 kB / 282.5 MB, free: 7.461 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002291/0.009733, allocations: 291.5 kB / 282.8 MB, free: 7.109 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.009735, allocations: 4 kB / 282.8 MB, free: 7.105 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0002953/0.01003, allocations: 281.1 kB / 283.1 MB, free: 6.824 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.01005, allocations: 8 kB / 283.1 MB, free: 6.816 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.01005, allocations: 4 kB / 283.1 MB, free: 6.812 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.01007, allocations: 4 kB / 283.1 MB, free: 6.809 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002144/0.01028, allocations: 104.1 kB / 283.2 MB, free: 6.707 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.01029, allocations: 4 kB / 283.2 MB, free: 6.703 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.882e-05/0.01037, allocations: 12 kB / 283.2 MB, free: 6.691 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.691e-05/0.01038, allocations: 16 kB / 283.2 MB, free: 6.676 MB / 266.7 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 9.144e-05/0.01048, allocations: 188.3 kB / 283.4 MB, free: 6.48 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.534e-05/0.01054, allocations: 35.86 kB / 283.4 MB, free: 6.445 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.686e-05/0.01059, allocations: 33.47 kB / 283.5 MB, free: 6.41 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.01059, allocations: 7.984 kB / 283.5 MB, free: 6.402 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.0106, allocations: 0 / 283.5 MB, free: 6.402 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.0106, allocations: 0 / 283.5 MB, free: 6.402 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00077/0.01137, allocations: 1.019 MB / 284.5 MB, free: 5.305 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.01137, allocations: 4 kB / 284.5 MB, free: 5.301 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001928/0.01157, allocations: 76.14 kB / 284.6 MB, free: 5.227 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.01157, allocations: 4 kB / 284.6 MB, free: 5.223 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.01159, allocations: 16 kB / 284.6 MB, free: 5.207 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.01159, allocations: 16.12 kB / 284.6 MB, free: 5.191 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.0116, allocations: 7.938 kB / 284.6 MB, free: 5.184 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004608/0.01206, allocations: 0.8357 MB / 285.4 MB, free: 4.285 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.35e-05/0.01208, allocations: 19.86 kB / 285.5 MB, free: 4.266 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.575e-05/0.01211, allocations: 15.94 kB / 285.5 MB, free: 4.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001329/0.01224, allocations: 15.98 kB / 285.5 MB, free: 4.234 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.83e-05/0.01229, allocations: 23.95 kB / 285.5 MB, free: 4.211 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.155e-05/0.0123, allocations: 12 kB / 285.5 MB, free: 4.199 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.254e-05/0.01238, allocations: 176.5 kB / 285.7 MB, free: 4.027 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01238, allocations: 4 kB / 285.7 MB, free: 4.023 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003045/0.01269, allocations: 64 kB / 285.8 MB, free: 3.961 MB / 266.7 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 9.386e-05/0.01278, allocations: 115.1 kB / 285.9 MB, free: 3.84 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002431/0.01302, allocations: 193.3 kB / 286.1 MB, free: 3.648 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.01303, allocations: 0.5 kB / 286.1 MB, free: 3.648 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.628e-05/0.01312, allocations: 99.44 kB / 286.2 MB, free: 3.547 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004583/0.01358, allocations: 66.92 kB / 286.2 MB, free: 3.484 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008393/0.01442, allocations: 0.7998 MB / 287 MB, free: 2.613 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.724e-05/0.01449, allocations: 93.23 kB / 287.1 MB, free: 2.496 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.738e-05/0.01457, allocations: 38.94 kB / 287.2 MB, free: 2.457 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.208e-05/0.01464, allocations: 32.5 kB / 287.2 MB, free: 2.426 MB / 266.7 MB Notification: Performance of SimCode: time 7.52e-07/0.01464, allocations: 0 / 287.2 MB, free: 2.426 MB / 266.7 MB Notification: Performance of Templates: time 0.004857/0.01949, allocations: 3.078 MB / 290.3 MB, free: 15.4 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.CompareBrakingForce_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/CompareBrakingForce/CompareBrakingForce.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: 3.0668641165830195]