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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=12000,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=12000,variableFilter="time|vehicle.s|vehicle.v|vehicle1.s|vehicle1.v|trailer.s|trailer.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 112.6 kB / 17.71 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001542/0.001542, allocations: 192.1 kB / 18.63 MB, free: 4.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001005/0.001005, allocations: 52.02 kB / 351.9 MB, free: 3.301 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2364/0.2374, allocations: 49.43 MB / 401.3 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.007023/0.2444, allocations: 6.236 MB / 407.6 MB, free: 2.637 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00398/0.2485, allocations: 2.15 MB / 409.7 MB, free: 492 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007391/0.2492, allocations: 27.88 kB / 409.8 MB, free: 464 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008074/0.2501, allocations: 421.4 kB / 410.2 MB, free: 40 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001048/0.2512, allocations: 456.8 kB / 410.6 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001005/0.2522, allocations: 0.5056 MB / 411.1 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001463/0.2537, allocations: 1.492 MB / 412.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006953/0.2544, allocations: 0.5396 MB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006904/0.2551, allocations: 0.5525 MB / 413.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006643/0.2558, allocations: 0.6495 MB / 414.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001509/0.2559, allocations: 128 kB / 414.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002631/0.2562, allocations: 172 kB / 414.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002349/0.2564, allocations: 306.9 kB / 415 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005148/0.257, allocations: 0.645 MB / 415.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00137/0.2583, allocations: 1.636 MB / 417.2 MB, free: 8.938 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2584, allocations: 0 / 417.2 MB, free: 8.938 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2584, allocations: 4 kB / 417.2 MB, free: 8.934 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.787e-05/0.2584, allocations: 0 / 417.2 MB, free: 8.934 MB / 334.1 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.002424/0.2608, allocations: 1.554 MB / 418.8 MB, free: 7.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.2609, allocations: 15.89 kB / 418.8 MB, free: 7.305 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002024/0.2611, allocations: 147.2 kB / 418.9 MB, free: 7.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.2621, allocations: 0.7704 MB / 419.7 MB, free: 6.348 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.372e-05/0.2622, allocations: 74.12 kB / 419.8 MB, free: 6.277 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000142/0.2624, allocations: 103.9 kB / 419.9 MB, free: 6.176 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001445/0.2638, allocations: 0.9156 MB / 420.8 MB, free: 5.242 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.41e-05/0.2639, allocations: 7.906 kB / 420.8 MB, free: 5.234 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.317e-05/0.264, allocations: 40 kB / 420.9 MB, free: 5.195 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.264, allocations: 28 kB / 420.9 MB, free: 5.168 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001191/0.2652, allocations: 0.6364 MB / 421.5 MB, free: 4.535 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004293/0.2695, allocations: 3.193 MB / 424.7 MB, free: 1.211 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001283/0.2708, allocations: 0.6156 MB / 425.3 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004969/0.2713, allocations: 294.7 kB / 425.6 MB, free: 304 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.685e-05/0.2714, allocations: 16.64 kB / 425.6 MB, free: 288 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006293/0.272, allocations: 348.4 kB / 426 MB, free: 15.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.966e-06/0.272, allocations: 0 / 426 MB, free: 15.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=100): time 0.00587/0.2779, allocations: 3.061 MB / 429 MB, free: 12.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.959e-05/0.278, allocations: 60.41 kB / 429.1 MB, free: 12.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001058/0.279, allocations: 0.939 MB / 430 MB, free: 11.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.393e-05/0.2791, allocations: 41.7 kB / 430.1 MB, free: 11.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003804/0.2795, allocations: 0.5117 MB / 430.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000227/0.2797, allocations: 347 kB / 430.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002164/0.2799, allocations: 158.6 kB / 431.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.2801, allocations: 345.9 kB / 431.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004969/0.2806, allocations: 269.9 kB / 431.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006031/0.2812, allocations: 433.3 kB / 432.1 MB, free: 9.609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001157/0.2823, allocations: 0.7404 MB / 432.8 MB, free: 8.816 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.2824, allocations: 4 kB / 432.8 MB, free: 8.812 MB / 350.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001728/0.2841, allocations: 1.025 MB / 433.9 MB, free: 7.777 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.2841, allocations: 16 kB / 433.9 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.2841, allocations: 7.984 kB / 433.9 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004259/0.2846, allocations: 141.6 kB / 434 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007381/0.2853, allocations: 207.7 kB / 434.2 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003458/0.2888, allocations: 3.998 MB / 438.2 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000567/0.2894, allocations: 24 kB / 438.3 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.241e-05/0.2894, allocations: 39.98 kB / 438.3 MB, free: 3.07 MB / 350.1 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.0004641/0.2899, allocations: 317.5 kB / 438.6 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.2901, allocations: 102.7 kB / 438.7 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001733/0.2918, allocations: 0.9478 MB / 439.7 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/0.2918, allocations: 12 kB / 439.7 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/0.2918, allocations: 4 kB / 439.7 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.2918, allocations: 3.984 kB / 439.7 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00378/0.2956, allocations: 2.482 MB / 442.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.2957, allocations: 0 / 442.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007446/0.2964, allocations: 179.8 kB / 442.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003792/0.2968, allocations: 126 kB / 442.5 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.243e-05/0.2969, allocations: 27.98 kB / 442.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003061/0.2999, allocations: 3.6 MB / 446.1 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.3, allocations: 0 / 446.1 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002398/0.3024, allocations: 1.427 MB / 447.5 MB, free: 9.367 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006087/0.303, allocations: 243.7 kB / 447.7 MB, free: 9.109 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002321/0.3033, allocations: 35.86 kB / 447.8 MB, free: 9.074 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005661/0.3038, allocations: 20 kB / 447.8 MB, free: 9.055 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001714/0.304, allocations: 80.92 kB / 447.9 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.34e-05/0.3041, allocations: 24 kB / 447.9 MB, free: 8.949 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000929/0.305, allocations: 0.6708 MB / 448.6 MB, free: 8.281 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.305, allocations: 4 kB / 448.6 MB, free: 8.277 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001033/0.3061, allocations: 240 kB / 448.8 MB, free: 8.043 MB / 366.1 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 (88): * Single equations (assignments): 84 * 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.001022/0.3071, allocations: 446.3 kB / 449.2 MB, free: 7.762 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001985/0.3091, allocations: 1.052 MB / 450.3 MB, free: 6.688 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.3091, allocations: 4.812 kB / 450.3 MB, free: 6.684 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001081/0.3102, allocations: 0.6982 MB / 451 MB, free: 5.961 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/0.3114, allocations: 172.4 kB / 451.2 MB, free: 5.797 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004296/0.3157, allocations: 2.603 MB / 453.8 MB, free: 3.121 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007643/0.3165, allocations: 1.104 MB / 454.9 MB, free: 1.992 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002819/0.3168, allocations: 83.41 kB / 455 MB, free: 1.91 MB / 366.1 MB Notification: Performance of SimCode: time 6.42e-07/0.3168, allocations: 7.938 kB / 455 MB, free: 1.902 MB / 366.1 MB Notification: Performance of Templates: time 0.02791/0.3447, allocations: 22.94 MB / 477.9 MB, free: 10.96 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Vehicle/Vehicle.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches