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.001372/0.001372, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.003782/0.003782, allocations: 165.1 kB / 24.99 MB, free: 8.285 MB / 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.046/1.046, allocations: 177.1 MB / 205.3 MB, free: 5.602 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.724e-06/1.724e-06, allocations: 0 / 273.1 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.324e-05/2.497e-05, allocations: 2.312 kB / 273.1 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.0025/0.002525, allocations: 2.349 MB / 275.4 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.003658, allocations: 0.7477 MB / 276.2 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.00379, allocations: 8 kB / 276.2 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000131/0.003921, allocations: 35.58 kB / 276.2 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002353/0.004156, allocations: 95.14 kB / 276.3 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003024/0.004459, allocations: 119.7 kB / 276.4 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002957/0.004754, allocations: 314.5 kB / 276.7 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.004879, allocations: 44.91 kB / 276.8 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001678/0.005046, allocations: 175.5 kB / 276.9 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001231/0.00517, allocations: 91.7 kB / 277 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.096e-05/0.0052, allocations: 20 kB / 277 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.677e-05/0.005227, allocations: 24 kB / 277.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.026e-05/0.005267, allocations: 59.73 kB / 277.1 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.253e-05/0.00534, allocations: 87.77 kB / 277.2 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002068/0.005547, allocations: 187.3 kB / 277.4 MB, free: 13.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.003e-06/0.005549, allocations: 3.938 kB / 277.4 MB, free: 13.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.00555, allocations: 8 kB / 277.4 MB, free: 13.45 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.005554, allocations: 0 / 277.4 MB, free: 13.45 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.000628/0.006182, allocations: 0.5741 MB / 278 MB, free: 12.84 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.006217, allocations: 8.031 kB / 278 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.786e-05/0.006285, allocations: 44.75 kB / 278 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002377/0.006522, allocations: 212.9 kB / 278.2 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.43e-05/0.006547, allocations: 16.88 kB / 278.2 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.476e-05/0.006581, allocations: 24.38 kB / 278.3 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002797/0.006861, allocations: 220.1 kB / 278.5 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.775e-05/0.006879, allocations: 12.12 kB / 278.5 MB, free: 12.26 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.842e-05/0.006897, allocations: 8.375 kB / 278.5 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/0.006907, allocations: 7.938 kB / 278.5 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001498/0.007057, allocations: 99.84 kB / 278.6 MB, free: 12.15 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008466/0.007903, allocations: 1.067 MB / 279.7 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002719/0.008175, allocations: 252.5 kB / 279.9 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.733e-05/0.008253, allocations: 70.67 kB / 280 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.035e-05/0.008273, allocations: 19.91 kB / 280 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.716e-05/0.0083, allocations: 41.39 kB / 280.1 MB, free: 10.55 MB / 266.7 MB Notification: Performance of pre-optimization done (n=28): time 1.483e-06/0.008302, allocations: 0 / 280.1 MB, free: 10.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.00102/0.009322, allocations: 0.9476 MB / 281 MB, free: 9.473 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.073e-05/0.009372, allocations: 136.5 kB / 281.1 MB, free: 9.309 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.00953, allocations: 257.5 kB / 281.4 MB, free: 9.039 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.697e-05/0.009547, allocations: 33.7 kB / 281.4 MB, free: 9 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.097e-05/0.009628, allocations: 195.5 kB / 281.6 MB, free: 8.805 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.653e-05/0.009694, allocations: 126.9 kB / 281.7 MB, free: 8.68 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.074e-05/0.009765, allocations: 75.8 kB / 281.8 MB, free: 8.598 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.00989, allocations: 0.5079 MB / 282.3 MB, free: 8.078 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.617e-05/0.009966, allocations: 44.97 kB / 282.4 MB, free: 8.035 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001392/0.01011, allocations: 207.9 kB / 282.6 MB, free: 7.766 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002429/0.01035, allocations: 283.5 kB / 282.8 MB, free: 7.422 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.01035, allocations: 0 / 282.8 MB, free: 7.422 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0003119/0.01066, allocations: 293.1 kB / 283.1 MB, free: 7.129 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.01068, allocations: 8 kB / 283.1 MB, free: 7.121 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.01068, allocations: 4 kB / 283.1 MB, free: 7.117 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.0107, allocations: 4 kB / 283.1 MB, free: 7.113 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002234/0.01092, allocations: 91.83 kB / 283.2 MB, free: 7.023 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.01093, allocations: 8 kB / 283.2 MB, free: 7.016 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.331e-05/0.01102, allocations: 12 kB / 283.3 MB, free: 7.004 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.957e-05/0.01103, allocations: 28.23 kB / 283.3 MB, free: 6.977 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.376e-05/0.01113, allocations: 184.3 kB / 283.5 MB, free: 6.785 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.728e-05/0.0112, allocations: 35.86 kB / 283.5 MB, free: 6.75 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.8e-05/0.01124, allocations: 33.64 kB / 283.5 MB, free: 6.715 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.01125, allocations: 4 kB / 283.5 MB, free: 6.711 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.01125, allocations: 7.984 kB / 283.5 MB, free: 6.703 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.01126, allocations: 0 / 283.5 MB, free: 6.703 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008009/0.01206, allocations: 1.015 MB / 284.6 MB, free: 5.609 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.01206, allocations: 256 / 284.6 MB, free: 5.609 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002086/0.01227, allocations: 87.89 kB / 284.6 MB, free: 5.523 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.01227, allocations: 4 kB / 284.6 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.01229, allocations: 11.94 kB / 284.7 MB, free: 5.508 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.0123, allocations: 7.938 kB / 284.7 MB, free: 5.5 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.0123, allocations: 11.92 kB / 284.7 MB, free: 5.488 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000468/0.01277, allocations: 0.832 MB / 285.5 MB, free: 4.594 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.632e-05/0.0128, allocations: 23.86 kB / 285.5 MB, free: 4.57 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.873e-05/0.01283, allocations: 15.92 kB / 285.5 MB, free: 4.555 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001417/0.01297, allocations: 8 kB / 285.6 MB, free: 4.547 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.119e-05/0.01302, allocations: 27.95 kB / 285.6 MB, free: 4.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.01303, allocations: 12 kB / 285.6 MB, free: 4.508 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.398e-05/0.01311, allocations: 180.5 kB / 285.8 MB, free: 4.332 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01311, allocations: 0 / 285.8 MB, free: 4.332 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003151/0.01343, allocations: 64 kB / 285.8 MB, free: 4.27 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 0.0001014/0.01353, allocations: 119.1 kB / 285.9 MB, free: 4.145 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002675/0.0138, allocations: 184.8 kB / 286.1 MB, free: 3.961 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.0138, allocations: 0 / 286.1 MB, free: 3.961 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001115/0.01391, allocations: 104.2 kB / 286.2 MB, free: 3.855 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005054/0.01442, allocations: 63.11 kB / 286.3 MB, free: 3.797 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009119/0.01533, allocations: 0.8074 MB / 287.1 MB, free: 2.922 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.102e-05/0.0154, allocations: 93.17 kB / 287.2 MB, free: 2.805 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.131e-05/0.01549, allocations: 38.95 kB / 287.2 MB, free: 2.766 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.919e-05/0.01555, allocations: 24.5 kB / 287.3 MB, free: 2.742 MB / 266.7 MB Notification: Performance of SimCode: time 1.072e-06/0.01555, allocations: 4 kB / 287.3 MB, free: 2.738 MB / 266.7 MB Notification: Performance of Templates: time 0.005044/0.0206, allocations: 3.079 MB / 290.3 MB, free: 15.71 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: 2.9741141439881176]