Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.WhyArrows.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.0009476/0.0009476, allocations: 78.66 kB / 21.42 MB, free: 3.074 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: 169.7 kB / 24.82 MB, free: 9.254 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 0.9405/0.9405, allocations: 177.1 MB / 205.3 MB, free: 5.504 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.WhyArrows,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inertia2.s|inertia2.v|mass1.s|mass1.v",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.WhyArrows") translateModel(Modelica.Mechanics.Translational.Examples.WhyArrows,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inertia2.s|inertia2.v|mass1.s|mass1.v",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.WhyArrows") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.948e-05/2.079e-05, allocations: 6.25 kB / 273.4 MB, free: 1.305 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.002436/0.002457, allocations: 2.247 MB / 275.6 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.000405/0.002862, allocations: 199.3 kB / 275.8 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.084e-05/0.002943, allocations: 4 kB / 275.8 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 6.212e-05/0.003005, allocations: 39.64 kB / 275.9 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001275/0.003133, allocations: 59.36 kB / 275.9 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001259/0.003259, allocations: 59.86 kB / 276 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001592/0.003418, allocations: 238.8 kB / 276.2 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001418/0.00356, allocations: 83 kB / 276.3 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001363/0.003696, allocations: 139.6 kB / 276.4 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001012/0.003797, allocations: 75.78 kB / 276.5 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.856e-05/0.003826, allocations: 28 kB / 276.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.384e-05/0.00385, allocations: 20 kB / 276.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.249e-05/0.003882, allocations: 47.83 kB / 276.6 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.914e-05/0.003941, allocations: 83.8 kB / 276.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001556/0.004097, allocations: 159.4 kB / 276.8 MB, free: 13.83 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.004099, allocations: 4 kB / 276.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.91e-07/0.0041, allocations: 0 / 276.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.004104, allocations: 0 / 276.8 MB, free: 13.82 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0004549/0.004559, allocations: 0.5313 MB / 277.4 MB, free: 13.25 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.274e-05/0.004591, allocations: 8.031 kB / 277.4 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.856e-05/0.00464, allocations: 44.8 kB / 277.4 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001428/0.004783, allocations: 179.4 kB / 277.6 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.561e-05/0.004798, allocations: 16.88 kB / 277.6 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.864e-05/0.004827, allocations: 24.38 kB / 277.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001872/0.005014, allocations: 183.4 kB / 277.8 MB, free: 12.76 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.005025, allocations: 8.125 kB / 277.8 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.005039, allocations: 12.38 kB / 277.8 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.005047, allocations: 4.375 kB / 277.8 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.531e-05/0.005132, allocations: 75.8 kB / 277.9 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006948/0.005827, allocations: 0.9149 MB / 278.8 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001215/0.005948, allocations: 145.3 kB / 279 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.071e-05/0.005989, allocations: 47.05 kB / 279 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.027e-06/0.005998, allocations: 4 kB / 279 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.038e-05/0.006019, allocations: 41.33 kB / 279.1 MB, free: 11.41 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.102e-06/0.00602, allocations: 0 / 279.1 MB, free: 11.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.0001904/0.00621, allocations: 125.6 kB / 279.2 MB, free: 11.28 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.368e-05/0.006254, allocations: 110.8 kB / 279.3 MB, free: 11.14 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.006363, allocations: 226.7 kB / 279.5 MB, free: 10.9 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.32e-05/0.006377, allocations: 25.7 kB / 279.5 MB, free: 10.87 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.138e-05/0.006458, allocations: 214.9 kB / 279.8 MB, free: 10.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.469e-05/0.006493, allocations: 79.28 kB / 279.8 MB, free: 10.58 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.024e-05/0.006543, allocations: 59.58 kB / 279.9 MB, free: 10.51 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.006658, allocations: 0.5001 MB / 280.4 MB, free: 9.996 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.796e-05/0.006686, allocations: 20.55 kB / 280.4 MB, free: 9.977 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.362e-05/0.00678, allocations: 180 kB / 280.6 MB, free: 9.734 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001419/0.006921, allocations: 222.7 kB / 280.8 MB, free: 9.449 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.006924, allocations: 0 / 280.8 MB, free: 9.449 MB / 266.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0001894/0.007113, allocations: 206.1 kB / 281 MB, free: 9.242 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.067e-06/0.007122, allocations: 4 kB / 281 MB, free: 9.238 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.007128, allocations: 4 kB / 281 MB, free: 9.234 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.007141, allocations: 8 kB / 281 MB, free: 9.227 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.007259, allocations: 59.86 kB / 281.1 MB, free: 9.168 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.208e-06/0.007269, allocations: 11.92 kB / 281.1 MB, free: 9.156 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.727e-05/0.007336, allocations: 27.78 kB / 281.1 MB, free: 9.129 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.007346, allocations: 12 kB / 281.1 MB, free: 9.117 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 (33): * Single equations (assignments): 33 * 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 7.837e-05/0.007424, allocations: 172.8 kB / 281.3 MB, free: 8.938 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.96e-05/0.007464, allocations: 19.91 kB / 281.3 MB, free: 8.918 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.368e-05/0.007498, allocations: 21.47 kB / 281.3 MB, free: 8.898 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.007502, allocations: 4 kB / 281.3 MB, free: 8.895 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.007506, allocations: 3.938 kB / 281.3 MB, free: 8.891 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.007511, allocations: 3.984 kB / 281.3 MB, free: 8.887 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002916/0.007802, allocations: 360.9 kB / 281.7 MB, free: 8.488 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.007804, allocations: 0 / 281.7 MB, free: 8.488 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.512e-05/0.0079, allocations: 35.98 kB / 281.7 MB, free: 8.453 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.007904, allocations: 8.094 kB / 281.7 MB, free: 8.445 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/0.007915, allocations: 7.938 kB / 281.8 MB, free: 8.438 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.007918, allocations: 8 kB / 281.8 MB, free: 8.43 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.00792, allocations: 3.938 kB / 281.8 MB, free: 8.426 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002304/0.008151, allocations: 424.4 kB / 282.2 MB, free: 7.98 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.747e-05/0.008168, allocations: 23.89 kB / 282.2 MB, free: 7.957 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.417e-05/0.008182, allocations: 3.938 kB / 282.2 MB, free: 7.953 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.765e-05/0.00825, allocations: 8 kB / 282.2 MB, free: 7.945 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.656e-05/0.008266, allocations: 11.92 kB / 282.2 MB, free: 7.934 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.589e-06/0.008271, allocations: 4 kB / 282.2 MB, free: 7.93 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.711e-05/0.008328, allocations: 164.8 kB / 282.4 MB, free: 7.77 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008328, allocations: 0 / 282.4 MB, free: 7.77 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002422/0.00857, allocations: 55.83 kB / 282.4 MB, free: 7.715 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (inertia2.s,inertia2.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 (17): * Single equations (assignments): 17 * 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 8.809e-05/0.008658, allocations: 107.2 kB / 282.5 MB, free: 7.602 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001322/0.008791, allocations: 108.2 kB / 282.7 MB, free: 7.492 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.008793, allocations: 3.938 kB / 282.7 MB, free: 7.488 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.168e-05/0.008834, allocations: 51.72 kB / 282.7 MB, free: 7.434 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000267/0.009101, allocations: 27.92 kB / 282.7 MB, free: 7.406 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005821/0.009684, allocations: 0.5192 MB / 283.3 MB, free: 6.84 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.73e-05/0.009741, allocations: 83.91 kB / 283.3 MB, free: 6.738 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.743e-05/0.009798, allocations: 17.64 kB / 283.4 MB, free: 6.719 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.25e-05/0.009881, allocations: 98.19 kB / 283.4 MB, free: 6.621 MB / 266.7 MB Notification: Performance of SimCode: time 8.42e-07/0.009882, allocations: 0 / 283.4 MB, free: 6.621 MB / 266.7 MB Notification: Performance of Templates: time 0.003088/0.01297, allocations: 1.571 MB / 285 MB, free: 5.082 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.WhyArrows.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.WhyArrows -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/WhyArrows/WhyArrows.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.5495390482246876]