Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Vehicle.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.001232/0.001232, allocations: 71.77 kB / 21.69 MB, free: 2.852 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.001142/0.001142, allocations: 166.7 kB / 24.99 MB, free: 8.789 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.9415/0.9415, allocations: 177.1 MB / 205.3 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.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.1.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.1.0_Modelica.Mechanics.Translational.Examples.Vehicle") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.263e-06/1.263e-06, allocations: 0 / 273 MB, free: 1.855 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.966e-05/2.092e-05, allocations: 2.312 kB / 273 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.01271/0.01273, allocations: 6.077 MB / 279.1 MB, free: 11.74 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006363/0.01909, allocations: 2.258 MB / 281.4 MB, free: 9.48 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002568/0.02166, allocations: 43.69 kB / 281.4 MB, free: 9.438 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008218/0.02248, allocations: 437.1 kB / 281.8 MB, free: 9.008 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001333/0.02381, allocations: 0.516 MB / 282.4 MB, free: 8.488 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001271/0.02508, allocations: 0.4911 MB / 282.9 MB, free: 7.996 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002566/0.02765, allocations: 1.55 MB / 284.4 MB, free: 6.441 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007488/0.0284, allocations: 341.2 kB / 284.7 MB, free: 6.082 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001338/0.02974, allocations: 0.8379 MB / 285.6 MB, free: 5.242 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007351/0.03047, allocations: 0.5258 MB / 286.1 MB, free: 4.715 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001763/0.03065, allocations: 132 kB / 286.2 MB, free: 4.586 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003314/0.03098, allocations: 179.9 kB / 286.4 MB, free: 4.41 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002698/0.03125, allocations: 318.8 kB / 286.7 MB, free: 4.098 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000458/0.03171, allocations: 434.8 kB / 287.1 MB, free: 3.672 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001297/0.03301, allocations: 0.9845 MB / 288.1 MB, free: 2.684 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.03301, allocations: 0 / 288.1 MB, free: 2.684 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.03301, allocations: 0 / 288.1 MB, free: 2.684 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.391e-05/0.03303, allocations: 0 / 288.1 MB, free: 2.684 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.002499/0.03553, allocations: 1.636 MB / 289.8 MB, free: 1.004 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.03557, allocations: 12.03 kB / 289.8 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005314/0.0361, allocations: 243.9 kB / 290 MB, free: 0.7539 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001146/0.03725, allocations: 0.7115 MB / 290.7 MB, free: 16 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.09532/0.1326, allocations: 72.55 kB / 290.8 MB, free: 29.05 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002333/0.1328, allocations: 106.8 kB / 290.9 MB, free: 29.05 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.134, allocations: 0.7102 MB / 291.6 MB, free: 28.94 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.053e-05/0.134, allocations: 12.17 kB / 291.6 MB, free: 28.94 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.26e-05/0.1341, allocations: 38.22 kB / 291.7 MB, free: 28.94 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.377e-05/0.1341, allocations: 23.44 kB / 291.7 MB, free: 28.94 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006619/0.1348, allocations: 375.1 kB / 292 MB, free: 28.9 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003017/0.1378, allocations: 2.66 MB / 294.7 MB, free: 27.42 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007729/0.1386, allocations: 428.3 kB / 295.1 MB, free: 27.3 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002386/0.1388, allocations: 177.5 kB / 295.3 MB, free: 27.26 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.528e-05/0.1388, allocations: 15.11 kB / 295.3 MB, free: 27.26 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003416/0.1392, allocations: 249.3 kB / 295.6 MB, free: 27.15 MB / 266.7 MB Notification: Performance of pre-optimization done (n=80): time 2.565e-06/0.1392, allocations: 2.25 kB / 295.6 MB, free: 27.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=100): time 0.003173/0.1424, allocations: 2.31 MB / 297.9 MB, free: 26.13 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.762e-05/0.1424, allocations: 63.14 kB / 297.9 MB, free: 26.06 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006472/0.143, allocations: 0.7661 MB / 298.7 MB, free: 25.73 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.627e-05/0.1431, allocations: 40.98 kB / 298.7 MB, free: 25.69 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002401/0.1433, allocations: 0.586 MB / 299.3 MB, free: 25.27 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001496/0.1435, allocations: 356.6 kB / 299.7 MB, free: 25.03 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001566/0.1436, allocations: 165.1 kB / 299.8 MB, free: 24.94 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.991e-05/0.1437, allocations: 0.5207 MB / 300.4 MB, free: 24.43 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002404/0.1439, allocations: 136.8 kB / 300.5 MB, free: 24.42 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003045/0.1442, allocations: 344 kB / 300.8 MB, free: 24.17 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005734/0.1448, allocations: 0.5258 MB / 301.3 MB, free: 23.84 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.1448, allocations: 3.031 kB / 301.4 MB, free: 23.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001007/0.1458, allocations: 0.7995 MB / 302.2 MB, free: 23.53 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/0.1458, allocations: 6.75 kB / 302.2 MB, free: 23.53 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.1458, allocations: 3.531 kB / 302.2 MB, free: 23.53 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003195/0.1461, allocations: 129.4 kB / 302.3 MB, free: 23.49 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004375/0.1466, allocations: 208.7 kB / 302.5 MB, free: 23.47 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001807/0.1484, allocations: 4.56 MB / 307.1 MB, free: 19.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002442/0.1486, allocations: 28.59 kB / 307.1 MB, free: 19.21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.111e-05/0.1487, allocations: 38.19 kB / 307.1 MB, free: 19.2 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.0001898/0.1489, allocations: 214.4 kB / 307.3 MB, free: 19 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001148/0.149, allocations: 144.5 kB / 307.5 MB, free: 18.92 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000898/0.1499, allocations: 0.7138 MB / 308.2 MB, free: 18.64 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.1499, allocations: 10.53 kB / 308.2 MB, free: 18.64 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.1499, allocations: 3.156 kB / 308.2 MB, free: 18.64 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.1499, allocations: 6.875 kB / 308.2 MB, free: 18.64 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001917/0.1518, allocations: 1.912 MB / 310.1 MB, free: 17.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.1518, allocations: 4 kB / 310.1 MB, free: 17.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004079/0.1522, allocations: 187.7 kB / 310.3 MB, free: 17.08 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002253/0.1525, allocations: 106.4 kB / 310.4 MB, free: 16.97 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.947e-05/0.1525, allocations: 35.86 kB / 310.4 MB, free: 16.94 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001334/0.1538, allocations: 4.133 MB / 314.6 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.1538, allocations: 4 kB / 314.6 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.1549, allocations: 1.148 MB / 315.7 MB, free: 11.35 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001694/0.155, allocations: 159.2 kB / 315.9 MB, free: 11.19 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.326e-05/0.1551, allocations: 20 kB / 315.9 MB, free: 11.17 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001933/0.1553, allocations: 27.98 kB / 315.9 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.998e-05/0.1554, allocations: 84.73 kB / 316 MB, free: 11.06 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.167e-05/0.1554, allocations: 31.98 kB / 316 MB, free: 11.03 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003082/0.1557, allocations: 0.495 MB / 316.5 MB, free: 10.54 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1557, allocations: 0 / 316.5 MB, free: 10.54 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005839/0.1563, allocations: 247.9 kB / 316.8 MB, free: 10.3 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.0008042/0.1571, allocations: 428.3 kB / 317.2 MB, free: 10.06 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008643/0.158, allocations: 0.9202 MB / 318.1 MB, free: 9.098 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.158, allocations: 4 kB / 318.1 MB, free: 9.094 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004227/0.1584, allocations: 0.6836 MB / 318.8 MB, free: 8.371 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005342/0.1589, allocations: 190.3 kB / 319 MB, free: 8.191 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002297/0.1612, allocations: 2.265 MB / 321.3 MB, free: 5.848 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001233/0.1614, allocations: 232.7 kB / 321.5 MB, free: 5.602 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002151/0.1616, allocations: 111.2 kB / 321.6 MB, free: 5.488 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001169/0.1617, allocations: 76.48 kB / 321.7 MB, free: 5.414 MB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.1617, allocations: 0 / 321.7 MB, free: 5.414 MB / 266.7 MB Notification: Performance of Templates: time 0.0144/0.1761, allocations: 11.11 MB / 332.8 MB, free: 10.46 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Vehicle.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Vehicle.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Vehicle.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Vehicle.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Vehicle.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Vehicle -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Vehicle.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.1965742660686374]