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.001151/0.001151, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001148/0.001148, allocations: 140.6 kB / 24.97 MB, free: 8.781 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.9159/0.9159, allocations: 173.3 MB / 201.5 MB, free: 9.332 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.392e-06/1.392e-06, allocations: 3.938 kB / 268.1 MB, free: 6.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.838e-05/1.977e-05, allocations: 2.312 kB / 268.1 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.006614/0.006634, allocations: 6.055 MB / 274.1 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003378/0.01001, allocations: 2.126 MB / 276.2 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000503/0.01052, allocations: 35.75 kB / 276.3 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007003/0.01122, allocations: 437.2 kB / 276.7 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008521/0.01207, allocations: 484.6 kB / 277.2 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001019/0.01309, allocations: 0.5183 MB / 277.7 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001381/0.01447, allocations: 1.542 MB / 279.2 MB, free: 11.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000515/0.01498, allocations: 353.1 kB / 279.6 MB, free: 11.13 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00086/0.01584, allocations: 0.8184 MB / 280.4 MB, free: 10.31 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005747/0.01642, allocations: 0.5258 MB / 280.9 MB, free: 9.781 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001415/0.01656, allocations: 128 kB / 281.1 MB, free: 9.656 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002313/0.01679, allocations: 171.9 kB / 281.2 MB, free: 9.488 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002214/0.01701, allocations: 314.8 kB / 281.5 MB, free: 9.18 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003741/0.01739, allocations: 434.8 kB / 282 MB, free: 8.754 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009927/0.01838, allocations: 0.965 MB / 282.9 MB, free: 7.785 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.01838, allocations: 4 kB / 282.9 MB, free: 7.781 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.01838, allocations: 0 / 282.9 MB, free: 7.781 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.533e-05/0.0184, allocations: 0 / 282.9 MB, free: 7.781 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.002051/0.02045, allocations: 1.617 MB / 284.5 MB, free: 6.121 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.02049, allocations: 20.02 kB / 284.6 MB, free: 6.102 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004587/0.02094, allocations: 228 kB / 284.8 MB, free: 5.879 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009872/0.02193, allocations: 0.7114 MB / 285.5 MB, free: 5.137 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.643e-05/0.022, allocations: 74.38 kB / 285.6 MB, free: 5.066 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.02213, allocations: 108.3 kB / 285.7 MB, free: 4.961 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.02325, allocations: 0.7138 MB / 286.4 MB, free: 4.223 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.599e-05/0.02328, allocations: 7.953 kB / 286.4 MB, free: 4.215 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.804e-05/0.02335, allocations: 40 kB / 286.4 MB, free: 4.176 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.096e-05/0.02337, allocations: 24 kB / 286.5 MB, free: 4.152 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007469/0.02412, allocations: 379.6 kB / 286.8 MB, free: 3.785 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00356/0.02768, allocations: 2.666 MB / 289.5 MB, free: 1.031 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008724/0.02855, allocations: 427 kB / 289.9 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002878/0.02884, allocations: 173.5 kB / 290.1 MB, free: 440 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.832e-05/0.02888, allocations: 12.66 kB / 290.1 MB, free: 428 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000395/0.02927, allocations: 254 kB / 290.3 MB, free: 160 kB / 266.7 MB Notification: Performance of pre-optimization done (n=80): time 2.785e-06/0.02928, allocations: 0 / 290.3 MB, free: 160 kB / 266.7 MB Notification: Performance of matching and sorting (n=100): time 0.1008/0.1301, allocations: 2.292 MB / 292.6 MB, free: 32.46 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.23e-05/0.1301, allocations: 68.62 kB / 292.7 MB, free: 32.4 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000677/0.1308, allocations: 0.7547 MB / 293.5 MB, free: 32.13 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.464e-05/0.1308, allocations: 42.05 kB / 293.5 MB, free: 32.09 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002577/0.1311, allocations: 0.5872 MB / 294.1 MB, free: 31.61 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/0.1313, allocations: 364 kB / 294.4 MB, free: 31.33 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001603/0.1314, allocations: 164.2 kB / 294.6 MB, free: 31.23 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.804e-05/0.1315, allocations: 0.5114 MB / 295.1 MB, free: 30.74 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000261/0.1317, allocations: 139.1 kB / 295.2 MB, free: 30.72 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003239/0.1321, allocations: 347.3 kB / 295.6 MB, free: 30.48 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005986/0.1327, allocations: 0.5359 MB / 296.1 MB, free: 30.14 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.1327, allocations: 1.062 kB / 296.1 MB, free: 30.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001002/0.1337, allocations: 0.7928 MB / 296.9 MB, free: 29.84 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.1337, allocations: 7.516 kB / 296.9 MB, free: 29.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.1337, allocations: 3.719 kB / 296.9 MB, free: 29.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003234/0.134, allocations: 127.2 kB / 297 MB, free: 29.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004661/0.1345, allocations: 212 kB / 297.3 MB, free: 29.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001886/0.1364, allocations: 4.539 MB / 301.8 MB, free: 25.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002489/0.1366, allocations: 28.66 kB / 301.8 MB, free: 25.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.116e-05/0.1367, allocations: 36.03 kB / 301.9 MB, free: 25.51 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (108): * Single equations (assignments): 106 * 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.0001821/0.1369, allocations: 211 kB / 302.1 MB, free: 25.31 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.137, allocations: 138.7 kB / 302.2 MB, free: 25.24 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009264/0.1379, allocations: 0.717 MB / 302.9 MB, free: 24.95 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.1379, allocations: 15.05 kB / 302.9 MB, free: 24.95 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.1379, allocations: 4.188 kB / 302.9 MB, free: 24.95 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.1379, allocations: 4.781 kB / 302.9 MB, free: 24.95 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002121/0.14, allocations: 1.921 MB / 304.9 MB, free: 23.92 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.874e-06/0.14, allocations: 6.5 kB / 304.9 MB, free: 23.92 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004403/0.1405, allocations: 182.6 kB / 305 MB, free: 23.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000237/0.1407, allocations: 112.5 kB / 305.2 MB, free: 23.87 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.683e-05/0.1408, allocations: 24.86 kB / 305.2 MB, free: 23.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001472/0.1422, allocations: 4.148 MB / 309.3 MB, free: 19.91 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.1422, allocations: 3.562 kB / 309.3 MB, free: 19.91 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001152/0.1434, allocations: 1.135 MB / 310.5 MB, free: 19.29 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001903/0.1436, allocations: 161.3 kB / 310.6 MB, free: 19.19 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.83e-05/0.1436, allocations: 29.38 kB / 310.7 MB, free: 19.17 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002031/0.1438, allocations: 25.56 kB / 310.7 MB, free: 19.16 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/0.144, allocations: 84.23 kB / 310.8 MB, free: 19.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-05/0.144, allocations: 24.81 kB / 310.8 MB, free: 19.14 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003298/0.1443, allocations: 0.4958 MB / 311.3 MB, free: 18.94 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1443, allocations: 0 / 311.3 MB, free: 18.94 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000597/0.1449, allocations: 238.1 kB / 311.5 MB, free: 18.91 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.0008372/0.1458, allocations: 434.2 kB / 311.9 MB, free: 18.73 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008582/0.1466, allocations: 0.9309 MB / 312.9 MB, free: 18.21 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1466, allocations: 0.875 kB / 312.9 MB, free: 18.21 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004261/0.147, allocations: 0.6797 MB / 313.5 MB, free: 17.77 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005341/0.1476, allocations: 186.9 kB / 313.7 MB, free: 17.64 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002291/0.1499, allocations: 2.266 MB / 316 MB, free: 15.43 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000131/0.15, allocations: 227.2 kB / 316.2 MB, free: 15.23 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000216/0.1502, allocations: 109 kB / 316.3 MB, free: 15.15 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001158/0.1503, allocations: 76.47 kB / 316.4 MB, free: 15.08 MB / 266.7 MB Notification: Performance of SimCode: time 9.91e-07/0.1503, allocations: 0 / 316.4 MB, free: 15.08 MB / 266.7 MB Notification: Performance of Templates: time 0.0128/0.1631, allocations: 11.08 MB / 327.5 MB, free: 4.172 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 -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: 3.0430930498987436]