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.0009846/0.0009846, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001015/0.001015, allocations: 165 kB / 24.56 MB, free: 12 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 0.9865/0.9865, allocations: 177.1 MB / 205 MB, free: 5.625 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.483e-06/1.483e-06, allocations: 0 / 273 MB, free: 1.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.073e-05/2.221e-05, allocations: 2.312 kB / 273 MB, free: 1.555 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.002977/0.002999, allocations: 2.374 MB / 275.3 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001368/0.004367, allocations: 0.7361 MB / 276.1 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001361/0.004504, allocations: 7.938 kB / 276.1 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001385/0.004642, allocations: 47.52 kB / 276.1 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005074/0.005149, allocations: 95.2 kB / 276.2 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000331/0.00548, allocations: 115.7 kB / 276.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003193/0.0058, allocations: 310.5 kB / 276.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.005928, allocations: 48.89 kB / 276.7 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001721/0.0061, allocations: 171.5 kB / 276.8 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001384/0.006239, allocations: 95.7 kB / 276.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.497e-05/0.006274, allocations: 24 kB / 277 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.184e-05/0.006305, allocations: 20 kB / 277 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.654e-05/0.006352, allocations: 59.75 kB / 277 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.22e-05/0.006434, allocations: 87.75 kB / 277.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002356/0.00667, allocations: 187.3 kB / 277.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.006672, allocations: 4 kB / 277.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.006673, allocations: 0 / 277.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.006678, allocations: 0 / 277.3 MB, free: 13.18 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.0007307/0.007409, allocations: 0.5779 MB / 277.9 MB, free: 12.56 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.007448, allocations: 8.031 kB / 277.9 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.363e-05/0.007532, allocations: 48.75 kB / 277.9 MB, free: 12.51 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002581/0.00779, allocations: 204.9 kB / 278.1 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.883e-05/0.007819, allocations: 24.81 kB / 278.2 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.055e-05/0.007859, allocations: 28.31 kB / 278.2 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003363/0.008196, allocations: 224.1 kB / 278.4 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.008212, allocations: 4.141 kB / 278.4 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.042e-05/0.008232, allocations: 8.375 kB / 278.4 MB, free: 11.97 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.008243, allocations: 7.938 kB / 278.4 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001848/0.008428, allocations: 106.7 kB / 278.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009995/0.009427, allocations: 1.067 MB / 279.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003129/0.00974, allocations: 244.6 kB / 279.8 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/0.009843, allocations: 78.81 kB / 279.9 MB, free: 10.33 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.085e-05/0.009864, allocations: 7.938 kB / 279.9 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.009895, allocations: 45.39 kB / 280 MB, free: 10.27 MB / 266.7 MB Notification: Performance of pre-optimization done (n=28): time 1.663e-06/0.009897, allocations: 0 / 280 MB, free: 10.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.001196/0.01109, allocations: 0.9474 MB / 280.9 MB, free: 9.191 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.384e-05/0.01115, allocations: 136.5 kB / 281.1 MB, free: 9.027 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001787/0.01133, allocations: 257.5 kB / 281.3 MB, free: 8.758 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.01134, allocations: 33.7 kB / 281.3 MB, free: 8.719 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.888e-05/0.01143, allocations: 195.5 kB / 281.5 MB, free: 8.523 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.092e-05/0.01151, allocations: 130.9 kB / 281.7 MB, free: 8.395 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.612e-05/0.0116, allocations: 75.81 kB / 281.7 MB, free: 8.312 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.01173, allocations: 0.504 MB / 282.2 MB, free: 7.797 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.379e-05/0.01182, allocations: 48.95 kB / 282.3 MB, free: 7.75 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001667/0.01199, allocations: 207.5 kB / 282.5 MB, free: 7.484 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002909/0.01228, allocations: 287.5 kB / 282.8 MB, free: 7.137 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.01229, allocations: 4 kB / 282.8 MB, free: 7.133 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006276/0.01291, allocations: 289.4 kB / 283.1 MB, free: 6.844 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.01293, allocations: 12 kB / 283.1 MB, free: 6.832 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.01294, allocations: 4 kB / 283.1 MB, free: 6.828 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.01296, allocations: 4 kB / 283.1 MB, free: 6.824 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002767/0.01323, allocations: 95.83 kB / 283.2 MB, free: 6.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.237e-05/0.01324, allocations: 8 kB / 283.2 MB, free: 6.723 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/0.01335, allocations: 8 kB / 283.2 MB, free: 6.715 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.235e-05/0.01338, allocations: 20 kB / 283.2 MB, free: 6.695 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 0.000103/0.01348, allocations: 184.3 kB / 283.4 MB, free: 6.504 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.818e-05/0.01358, allocations: 39.84 kB / 283.4 MB, free: 6.465 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.884e-05/0.01363, allocations: 37.41 kB / 283.5 MB, free: 6.426 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.01363, allocations: 4 kB / 283.5 MB, free: 6.422 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.01364, allocations: 4 kB / 283.5 MB, free: 6.418 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.01364, allocations: 3.984 kB / 283.5 MB, free: 6.414 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/0.01467, allocations: 1.015 MB / 284.5 MB, free: 5.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.01467, allocations: 256 / 284.5 MB, free: 5.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002611/0.01493, allocations: 84.14 kB / 284.6 MB, free: 5.238 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.01494, allocations: 4 kB / 284.6 MB, free: 5.234 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.181e-05/0.01496, allocations: 12 kB / 284.6 MB, free: 5.223 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.813e-06/0.01497, allocations: 7.938 kB / 284.6 MB, free: 5.215 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.01497, allocations: 7.938 kB / 284.6 MB, free: 5.207 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005592/0.01553, allocations: 0.8318 MB / 285.4 MB, free: 4.312 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.148e-05/0.01556, allocations: 23.86 kB / 285.5 MB, free: 4.289 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.216e-05/0.01559, allocations: 11.94 kB / 285.5 MB, free: 4.277 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002064/0.0158, allocations: 15.98 kB / 285.5 MB, free: 4.262 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.741e-05/0.01586, allocations: 27.97 kB / 285.5 MB, free: 4.234 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.472e-05/0.01587, allocations: 11.98 kB / 285.5 MB, free: 4.223 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.469e-05/0.01597, allocations: 176.5 kB / 285.7 MB, free: 4.051 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01597, allocations: 4 kB / 285.7 MB, free: 4.047 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004511/0.01642, allocations: 60 kB / 285.8 MB, free: 3.988 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.0001021/0.01652, allocations: 119.1 kB / 285.9 MB, free: 3.863 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002922/0.01681, allocations: 188.8 kB / 286.1 MB, free: 3.676 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.01681, allocations: 0 / 286.1 MB, free: 3.676 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.01693, allocations: 95.45 kB / 286.2 MB, free: 3.578 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006538/0.01759, allocations: 72.56 kB / 286.2 MB, free: 3.516 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001062/0.01865, allocations: 0.807 MB / 287 MB, free: 2.637 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.791e-05/0.01874, allocations: 93.23 kB / 287.1 MB, free: 2.52 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001033/0.01884, allocations: 34.97 kB / 287.2 MB, free: 2.484 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.462e-05/0.01892, allocations: 36.48 kB / 287.2 MB, free: 2.449 MB / 266.7 MB Notification: Performance of SimCode: time 6.82e-07/0.01892, allocations: 7.875 kB / 287.2 MB, free: 2.441 MB / 266.7 MB Notification: Performance of Templates: time 0.006339/0.02526, allocations: 3.226 MB / 290.4 MB, free: 15.26 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.916326634120196]