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.001093/0.001093, allocations: 111.8 kB / 17.06 MB, free: 5.992 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.001187/0.001188, allocations: 196 kB / 18 MB, free: 5.074 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.344/1.344, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001214, allocations: 39.94 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.2621, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.007338/0.2695, allocations: 6.217 MB / 406.9 MB, free: 2.633 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003672/0.2732, allocations: 2.162 MB / 409.1 MB, free: 476 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004221/0.2736, allocations: 27.88 kB / 409.1 MB, free: 448 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007826/0.2744, allocations: 425.4 kB / 409.5 MB, free: 20 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008902/0.2753, allocations: 456.9 kB / 410 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009244/0.2762, allocations: 0.5063 MB / 410.5 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001373/0.2776, allocations: 1.496 MB / 412 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000701/0.2783, allocations: 0.5435 MB / 412.5 MB, free: 13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005215/0.2789, allocations: 0.5486 MB / 413.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006101/0.2795, allocations: 0.6495 MB / 413.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001527/0.2796, allocations: 128 kB / 413.9 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002652/0.2799, allocations: 172 kB / 414 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002247/0.2802, allocations: 314.8 kB / 414.3 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004977/0.2807, allocations: 0.6372 MB / 415 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001446/0.2821, allocations: 1.641 MB / 416.6 MB, free: 8.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.2821, allocations: 4 kB / 416.6 MB, free: 8.906 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.2821, allocations: 0 / 416.6 MB, free: 8.906 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.479e-05/0.2822, allocations: 3.938 kB / 416.6 MB, free: 8.902 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.002569/0.2847, allocations: 1.588 MB / 418.2 MB, free: 7.254 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.2848, allocations: 19.77 kB / 418.2 MB, free: 7.234 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001992/0.285, allocations: 152 kB / 418.4 MB, free: 7.086 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001117/0.2861, allocations: 0.7711 MB / 419.1 MB, free: 6.273 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.641e-05/0.2862, allocations: 78.12 kB / 419.2 MB, free: 6.199 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001353/0.2863, allocations: 103.9 kB / 419.3 MB, free: 6.098 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001494/0.2878, allocations: 0.9157 MB / 420.2 MB, free: 5.164 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.749e-05/0.2879, allocations: 3.953 kB / 420.2 MB, free: 5.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.081e-05/0.288, allocations: 40 kB / 420.3 MB, free: 5.121 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.091e-05/0.288, allocations: 24 kB / 420.3 MB, free: 5.098 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00121/0.2892, allocations: 0.6363 MB / 420.9 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00414/0.2934, allocations: 3.214 MB / 424.2 MB, free: 1.121 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001235/0.2946, allocations: 0.6234 MB / 424.8 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004796/0.2951, allocations: 294.7 kB / 425.1 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.328e-05/0.2952, allocations: 16.64 kB / 425.1 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006314/0.2958, allocations: 340.4 kB / 425.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.515e-06/0.2958, allocations: 0 / 425.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=100): time 0.00556/0.3014, allocations: 3.087 MB / 428.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.072e-05/0.3014, allocations: 64.41 kB / 428.6 MB, free: 12.6 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001073/0.3025, allocations: 0.9351 MB / 429.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.404e-05/0.3026, allocations: 45.7 kB / 429.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003931/0.303, allocations: 0.5165 MB / 430.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002279/0.3032, allocations: 360.9 kB / 430.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002581/0.3035, allocations: 162.6 kB / 430.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002078/0.3037, allocations: 349.9 kB / 430.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00082/0.3045, allocations: 269.9 kB / 431.2 MB, free: 9.945 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009353/0.3055, allocations: 425.4 kB / 431.6 MB, free: 9.477 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001181/0.3067, allocations: 0.7482 MB / 432.3 MB, free: 8.676 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3067, allocations: 0 / 432.3 MB, free: 8.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001892/0.3086, allocations: 1.033 MB / 433.4 MB, free: 7.633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.3086, allocations: 8 kB / 433.4 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.3086, allocations: 7.984 kB / 433.4 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004175/0.3091, allocations: 142 kB / 433.5 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007303/0.3098, allocations: 211.7 kB / 433.7 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003571/0.3134, allocations: 3.99 MB / 437.7 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000438/0.3138, allocations: 36.05 kB / 437.8 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.18e-05/0.3139, allocations: 32 kB / 437.8 MB, free: 2.938 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.0004152/0.3143, allocations: 309.4 kB / 438.1 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001238/0.3145, allocations: 107.3 kB / 438.2 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001731/0.3162, allocations: 0.9633 MB / 439.2 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.745e-06/0.3162, allocations: 8 kB / 439.2 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3162, allocations: 4 kB / 439.2 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.3163, allocations: 3.984 kB / 439.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003607/0.3199, allocations: 2.479 MB / 441.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.3199, allocations: 12 kB / 441.7 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007339/0.3206, allocations: 183.9 kB / 441.8 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000334/0.321, allocations: 121.6 kB / 442 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.296e-05/0.3211, allocations: 20 kB / 442 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002824/0.3239, allocations: 3.604 MB / 445.6 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.3239, allocations: 4 kB / 445.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002219/0.3261, allocations: 1.436 MB / 447 MB, free: 9.211 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002999/0.3265, allocations: 248.3 kB / 447.3 MB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/0.3266, allocations: 24.12 kB / 447.3 MB, free: 8.926 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003818/0.327, allocations: 23.98 kB / 447.3 MB, free: 8.902 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.3271, allocations: 80.84 kB / 447.4 MB, free: 8.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.378e-05/0.3272, allocations: 31.98 kB / 447.4 MB, free: 8.789 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008334/0.328, allocations: 0.6631 MB / 448.1 MB, free: 8.129 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.328, allocations: 3.938 kB / 448.1 MB, free: 8.125 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008677/0.3289, allocations: 243.9 kB / 448.3 MB, free: 7.887 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.0009682/0.3299, allocations: 448.2 kB / 448.8 MB, free: 7.602 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0018/0.3317, allocations: 1.041 MB / 449.8 MB, free: 6.539 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.3317, allocations: 4 kB / 449.8 MB, free: 6.535 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009985/0.3327, allocations: 0.6988 MB / 450.5 MB, free: 5.812 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009004/0.3336, allocations: 184.2 kB / 450.7 MB, free: 5.637 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003645/0.3373, allocations: 2.611 MB / 453.3 MB, free: 2.957 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006503/0.3379, allocations: 1.104 MB / 454.4 MB, free: 1.828 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003608/0.3383, allocations: 107.6 kB / 454.5 MB, free: 1.719 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001982/0.3385, allocations: 83.41 kB / 454.6 MB, free: 1.637 MB / 366.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3385, allocations: 0 / 454.6 MB, free: 1.637 MB / 366.1 MB Notification: Performance of Templates: time 0.01927/0.3578, allocations: 11.19 MB / 465.8 MB, free: 6.52 MB / 382.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Vehicle/Vehicle.csv","/var/lib/jenkins/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