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.001906/0.001906, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002139/0.002139, allocations: 169.3 kB / 24.28 MB, free: 152 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.621/1.621, allocations: 177.1 MB / 204.6 MB, free: 5.594 MB / 186.7 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 1.703e-06/1.703e-06, allocations: 0 / 272.3 MB, free: 1.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.847e-05/3.018e-05, allocations: 2.312 kB / 272.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.004216/0.004246, allocations: 2.349 MB / 274.7 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001474/0.00572, allocations: 0.7323 MB / 275.4 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.005849, allocations: 11.88 kB / 275.4 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001543/0.006003, allocations: 35.59 kB / 275.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002812/0.006284, allocations: 87.27 kB / 275.5 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003441/0.006628, allocations: 119.6 kB / 275.6 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004185/0.007047, allocations: 318.5 kB / 275.9 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001332/0.00718, allocations: 40.92 kB / 276 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002494/0.007429, allocations: 179.5 kB / 276.2 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001822/0.007611, allocations: 95.69 kB / 276.3 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.587e-05/0.007657, allocations: 20 kB / 276.3 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.755e-05/0.007705, allocations: 20 kB / 276.3 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.4e-05/0.007779, allocations: 55.75 kB / 276.3 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001225/0.007901, allocations: 91.75 kB / 276.4 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003739/0.008275, allocations: 283 kB / 276.7 MB, free: 13.41 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.008278, allocations: 0 / 276.7 MB, free: 13.41 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.008279, allocations: 0 / 276.7 MB, free: 13.41 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.008285, allocations: 0 / 276.7 MB, free: 13.41 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.001077/0.009362, allocations: 0.5893 MB / 277.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.009395, allocations: 12.03 kB / 277.3 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001018/0.009497, allocations: 48.75 kB / 277.4 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003611/0.009858, allocations: 209.8 kB / 277.6 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.769e-05/0.009886, allocations: 16.88 kB / 277.6 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.632e-05/0.009932, allocations: 20.38 kB / 277.6 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004875/0.01042, allocations: 259.3 kB / 277.9 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.517e-05/0.01044, allocations: 8.141 kB / 277.9 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.367e-05/0.01047, allocations: 8.375 kB / 277.9 MB, free: 12.17 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.01048, allocations: 7.938 kB / 277.9 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003904/0.01087, allocations: 155.8 kB / 278 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001601/0.01247, allocations: 1.137 MB / 279.2 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006595/0.01313, allocations: 316.4 kB / 279.5 MB, free: 10.44 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002105/0.01334, allocations: 98.66 kB / 279.6 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.613e-05/0.01338, allocations: 11.94 kB / 279.6 MB, free: 10.31 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.222e-05/0.01342, allocations: 41.39 kB / 279.6 MB, free: 10.26 MB / 266.7 MB Notification: Performance of pre-optimization done (n=28): time 1.573e-06/0.01342, allocations: 4 kB / 279.6 MB, free: 10.26 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.002383/0.0158, allocations: 1.073 MB / 280.7 MB, free: 9.055 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.0159, allocations: 132.5 kB / 280.8 MB, free: 8.895 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003015/0.0162, allocations: 285.6 kB / 281.1 MB, free: 8.598 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.492e-05/0.01624, allocations: 33.7 kB / 281.1 MB, free: 8.559 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001623/0.0164, allocations: 211.4 kB / 281.4 MB, free: 8.348 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000126/0.01653, allocations: 126.9 kB / 281.5 MB, free: 8.223 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.01667, allocations: 87.84 kB / 281.6 MB, free: 8.125 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002991/0.01697, allocations: 0.5157 MB / 282.1 MB, free: 7.598 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001941/0.01717, allocations: 72.97 kB / 282.1 MB, free: 7.527 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003593/0.01753, allocations: 255.9 kB / 282.4 MB, free: 7.215 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000585/0.01811, allocations: 358.8 kB / 282.7 MB, free: 6.797 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.01811, allocations: 3.938 kB / 282.8 MB, free: 6.793 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006961/0.01881, allocations: 365.1 kB / 283.1 MB, free: 6.43 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.01883, allocations: 12.25 kB / 283.1 MB, free: 6.418 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.01884, allocations: 4 kB / 283.1 MB, free: 6.414 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.01885, allocations: 4 kB / 283.1 MB, free: 6.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003735/0.01923, allocations: 91.89 kB / 283.2 MB, free: 6.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.01924, allocations: 7.938 kB / 283.2 MB, free: 6.312 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001588/0.0194, allocations: 15.98 kB / 283.2 MB, free: 6.297 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.128e-05/0.01943, allocations: 16 kB / 283.3 MB, free: 6.281 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.0001969/0.01963, allocations: 196.5 kB / 283.5 MB, free: 6.078 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.01974, allocations: 35.8 kB / 283.5 MB, free: 6.043 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.729e-05/0.01983, allocations: 33.45 kB / 283.5 MB, free: 6.008 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.01983, allocations: 8 kB / 283.5 MB, free: 6 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/0.01984, allocations: 0 / 283.5 MB, free: 6 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.01984, allocations: 0 / 283.5 MB, free: 6 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001683/0.02153, allocations: 1.109 MB / 284.6 MB, free: 4.812 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.02153, allocations: 4 kB / 284.6 MB, free: 4.809 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000383/0.02191, allocations: 84.14 kB / 284.7 MB, free: 4.727 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/0.02192, allocations: 4 kB / 284.7 MB, free: 4.723 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.352e-05/0.02194, allocations: 8.25 kB / 284.7 MB, free: 4.715 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.198e-05/0.02196, allocations: 11.94 kB / 284.7 MB, free: 4.703 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.867e-06/0.02197, allocations: 8.25 kB / 284.8 MB, free: 4.695 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00112/0.02309, allocations: 0.9177 MB / 285.7 MB, free: 3.715 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.427e-05/0.02313, allocations: 19.86 kB / 285.7 MB, free: 3.695 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.99e-05/0.02318, allocations: 19.94 kB / 285.7 MB, free: 3.676 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002699/0.02345, allocations: 15.98 kB / 285.7 MB, free: 3.66 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.235e-05/0.02352, allocations: 23.97 kB / 285.7 MB, free: 3.637 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.186e-05/0.02354, allocations: 11.98 kB / 285.8 MB, free: 3.625 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001801/0.02372, allocations: 192.5 kB / 285.9 MB, free: 3.438 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02372, allocations: 0 / 285.9 MB, free: 3.438 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004862/0.02421, allocations: 68 kB / 286 MB, free: 3.371 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.0001794/0.02439, allocations: 107.1 kB / 286.1 MB, free: 3.258 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005799/0.02497, allocations: 268.3 kB / 286.4 MB, free: 2.992 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.02497, allocations: 7.938 kB / 286.4 MB, free: 2.984 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002507/0.02523, allocations: 127.4 kB / 286.5 MB, free: 2.855 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007762/0.026, allocations: 56.97 kB / 286.6 MB, free: 2.801 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001824/0.02783, allocations: 0.8388 MB / 287.4 MB, free: 1.891 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001999/0.02803, allocations: 151.1 kB / 287.6 MB, free: 1.719 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001389/0.02816, allocations: 34.97 kB / 287.6 MB, free: 1.68 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.941e-05/0.02825, allocations: 28.48 kB / 287.6 MB, free: 1.648 MB / 266.7 MB Notification: Performance of SimCode: time 1.142e-06/0.02826, allocations: 0 / 287.6 MB, free: 1.648 MB / 266.7 MB Notification: Performance of Templates: time 0.008211/0.03647, allocations: 3.073 MB / 290.7 MB, free: 14.62 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","/var/lib/jenkins/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: 4.706774944905192]