Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000832/0.000832, allocations: 85.17 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008847/0.0008847, allocations: 142.2 kB / 24.89 MB, free: 9.211 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9433/0.9433, allocations: 173.3 MB / 201.5 MB, free: 9.223 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Vehicle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|vehicle.s|vehicle.v|vehicle1.s|vehicle1.v|trailer.s|trailer.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle") translateModel(Modelica.Mechanics.Translational.Examples.Vehicle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|vehicle.s|vehicle.v|vehicle1.s|vehicle1.v|trailer.s|trailer.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.262e-06/1.262e-06, allocations: 0 / 268.5 MB, free: 6.191 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.322e-05/1.448e-05, allocations: 2.312 kB / 268.5 MB, free: 6.188 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.005044/0.005058, allocations: 5.983 MB / 274.5 MB, free: 172 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003464/0.008522, allocations: 2.204 MB / 276.7 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005631/0.009085, allocations: 43.69 kB / 276.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006611/0.009747, allocations: 421.2 kB / 277.1 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008854/0.01063, allocations: 492.5 kB / 277.6 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009916/0.01162, allocations: 0.5184 MB / 278.1 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001496/0.01312, allocations: 1.538 MB / 279.7 MB, free: 10.95 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005261/0.01365, allocations: 361.1 kB / 280 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009174/0.01456, allocations: 0.8223 MB / 280.9 MB, free: 9.742 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005776/0.01514, allocations: 0.5063 MB / 281.4 MB, free: 9.234 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001398/0.01528, allocations: 128 kB / 281.5 MB, free: 9.109 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002181/0.0155, allocations: 171.9 kB / 281.7 MB, free: 8.941 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002011/0.0157, allocations: 310.8 kB / 282 MB, free: 8.637 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003407/0.01604, allocations: 426.8 kB / 282.4 MB, free: 8.219 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008901/0.01693, allocations: 0.965 MB / 283.3 MB, free: 7.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.01693, allocations: 4 kB / 283.3 MB, free: 7.246 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.01693, allocations: 0 / 283.3 MB, free: 7.246 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.575e-05/0.01695, allocations: 0 / 283.3 MB, free: 7.246 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001698/0.01865, allocations: 1.48 MB / 284.8 MB, free: 5.734 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.96e-05/0.01868, allocations: 16.03 kB / 284.8 MB, free: 5.719 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001864/0.01886, allocations: 168.8 kB / 285 MB, free: 5.555 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000726/0.01959, allocations: 0.5558 MB / 285.6 MB, free: 4.973 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.748e-05/0.01965, allocations: 74.38 kB / 285.6 MB, free: 4.898 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001152/0.01976, allocations: 116.2 kB / 285.7 MB, free: 4.785 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008019/0.02056, allocations: 0.669 MB / 286.4 MB, free: 4.098 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.49e-05/0.0206, allocations: 7.953 kB / 286.4 MB, free: 4.09 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.988e-05/0.02065, allocations: 40 kB / 286.5 MB, free: 4.051 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.994e-05/0.02067, allocations: 24 kB / 286.5 MB, free: 4.027 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004267/0.0211, allocations: 260.6 kB / 286.7 MB, free: 3.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002657/0.02375, allocations: 1.941 MB / 288.7 MB, free: 1.766 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000603/0.02436, allocations: 424.4 kB / 289.1 MB, free: 1.336 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001675/0.02452, allocations: 130.7 kB / 289.2 MB, free: 1.207 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.992e-05/0.02455, allocations: 12.66 kB / 289.2 MB, free: 1.195 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000276/0.02483, allocations: 235.1 kB / 289.5 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of pre-optimization done (n=80): time 2.114e-06/0.02483, allocations: 0 / 289.5 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of matching and sorting (n=100): time 0.1111/0.136, allocations: 1.939 MB / 291.4 MB, free: 28.82 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.282e-05/0.136, allocations: 64.62 kB / 291.5 MB, free: 28.76 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006797/0.1367, allocations: 0.6782 MB / 292.1 MB, free: 28.62 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.718e-05/0.1367, allocations: 44.33 kB / 292.2 MB, free: 28.59 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003388/0.1371, allocations: 433.3 kB / 292.6 MB, free: 28.46 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001979/0.1373, allocations: 363.7 kB / 293 MB, free: 28.27 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00017/0.1374, allocations: 168.5 kB / 293.1 MB, free: 28.25 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.349e-05/0.1375, allocations: 350.8 kB / 293.5 MB, free: 27.95 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001578/0.1377, allocations: 96.8 kB / 293.6 MB, free: 27.94 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000234/0.1379, allocations: 295.7 kB / 293.9 MB, free: 27.75 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004508/0.1383, allocations: 496.2 kB / 294.3 MB, free: 27.54 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.1383, allocations: 1.156 kB / 294.3 MB, free: 27.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=131) (initialization): time 0.0008077/0.1392, allocations: 0.5915 MB / 294.9 MB, free: 27.46 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.1392, allocations: 10.25 kB / 294.9 MB, free: 27.46 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.1392, allocations: 9.406 kB / 295 MB, free: 27.46 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002693/0.1394, allocations: 110.9 kB / 295.1 MB, free: 27.44 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000523/0.14, allocations: 245 kB / 295.3 MB, free: 27.44 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001671/0.1416, allocations: 3.126 MB / 298.4 MB, free: 24.89 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004174/0.1421, allocations: 34.5 kB / 298.5 MB, free: 24.89 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.546e-05/0.1421, allocations: 29.06 kB / 298.5 MB, free: 24.89 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.timeTableTorqueInclination.nextTimeEvent,$whenCondition1,timeTableTorqueInclination.nextTimeEventScaled,$PRE.timeTableTorqueInclination.nextTimeEventScaled,timeTableTorqueInclination.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002426/0.1424, allocations: 179.8 kB / 298.7 MB, free: 24.77 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.1425, allocations: 89.41 kB / 298.7 MB, free: 24.77 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000902/0.1434, allocations: 0.5297 MB / 299.3 MB, free: 24.68 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.1434, allocations: 12.62 kB / 299.3 MB, free: 24.68 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.495e-06/0.1434, allocations: 4 kB / 299.3 MB, free: 24.68 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.376e-05/0.1434, allocations: 5.484 kB / 299.3 MB, free: 24.68 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002276/0.1457, allocations: 1.377 MB / 300.7 MB, free: 24.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.246e-06/0.1457, allocations: 3.969 kB / 300.7 MB, free: 24.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006985/0.1464, allocations: 209.5 kB / 300.9 MB, free: 24.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002888/0.1467, allocations: 89.05 kB / 301 MB, free: 24.23 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.563e-05/0.1468, allocations: 25.03 kB / 301 MB, free: 24.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001627/0.1484, allocations: 2.834 MB / 303.8 MB, free: 21.82 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/0.1484, allocations: 7.125 kB / 303.8 MB, free: 21.82 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001265/0.1497, allocations: 0.8568 MB / 304.7 MB, free: 21.48 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002688/0.1499, allocations: 108 kB / 304.8 MB, free: 21.43 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/0.15, allocations: 28.72 kB / 304.8 MB, free: 21.42 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002635/0.1503, allocations: 31.67 kB / 304.9 MB, free: 21.42 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/0.1504, allocations: 81.33 kB / 304.9 MB, free: 21.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.684e-05/0.1504, allocations: 22.94 kB / 305 MB, free: 21.41 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004689/0.1509, allocations: 351.1 kB / 305.3 MB, free: 21.38 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1509, allocations: 0 / 305.3 MB, free: 21.38 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001101/0.152, allocations: 247.6 kB / 305.5 MB, free: 21.38 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 10 (vehicle.mass.s,vehicle.mass.v,vehicle.windSpeed.s,vehicle.windSpeed.v,vehicle1.mass.s,vehicle1.mass.v,vehicle1.windSpeed.s,vehicle1.windSpeed.v,trailer.windSpeed.s,trailer.windSpeed.v) * Number of discrete variables: 3 ($whenCondition1,timeTableTorqueInclination.nextTimeEvent,timeTableTorqueInclination.nextTimeEventScaled) * Number of discrete states: 2 (timeTableTorqueInclination.nextTimeEvent,timeTableTorqueInclination.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001589/0.1536, allocations: 0.5337 MB / 306.1 MB, free: 21.22 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001079/0.1547, allocations: 0.7467 MB / 306.8 MB, free: 20.92 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.602e-05/0.1547, allocations: 9.719 kB / 306.8 MB, free: 20.92 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004105/0.1551, allocations: 0.5321 MB / 307.4 MB, free: 20.62 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005941/0.1557, allocations: 198.6 kB / 307.6 MB, free: 20.54 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002219/0.1579, allocations: 2.033 MB / 309.6 MB, free: 19.39 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001354/0.1581, allocations: 229.7 kB / 309.8 MB, free: 19.3 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002258/0.1583, allocations: 113.2 kB / 309.9 MB, free: 19.27 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002748/0.1586, allocations: 217.6 kB / 310.1 MB, free: 19.23 MB / 266.7 MB Notification: Performance of SimCode: time 1.923e-06/0.1586, allocations: 0 / 310.1 MB, free: 19.23 MB / 266.7 MB Notification: Performance of Templates: time 0.01321/0.1718, allocations: 12.1 MB / 322.2 MB, free: 8.285 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Vehicle/Vehicle.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.946926862001419]