Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008953/0.0008995, allocations: 182.7 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.225/1.225, allocations: 225.7 MB / 243.2 MB, free: 8.461 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007311/0.0007313, allocations: 93.27 kB / 294.4 MB, free: 9.496 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002492/0.0002492, allocations: 8 kB / 354.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2031/0.2034, allocations: 50.42 MB / 404.6 MB, free: 31.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.005849/0.2093, allocations: 5.416 MB / 410 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004876/0.2142, allocations: 2.104 MB / 412.1 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001342/0.2156, allocations: 35.81 kB / 412.1 MB, free: 23.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001258/0.2169, allocations: 370.2 kB / 412.5 MB, free: 23.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001969/0.2189, allocations: 397.7 kB / 412.9 MB, free: 22.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001506/0.2204, allocations: 455.5 kB / 413.3 MB, free: 22.53 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002266/0.2227, allocations: 1.402 MB / 414.7 MB, free: 21.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000947/0.2237, allocations: 479.6 kB / 415.2 MB, free: 20.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009056/0.2246, allocations: 461.8 kB / 415.6 MB, free: 20.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007457/0.2254, allocations: 0.5558 MB / 416.2 MB, free: 19.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001532/0.2256, allocations: 55.98 kB / 416.3 MB, free: 19.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002502/0.2258, allocations: 87.98 kB / 416.3 MB, free: 19.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000155/0.226, allocations: 222.9 kB / 416.6 MB, free: 19.26 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004801/0.2265, allocations: 0.5764 MB / 417.1 MB, free: 18.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001074/0.2276, allocations: 1.507 MB / 418.6 MB, free: 17.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2276, allocations: 3.938 kB / 418.6 MB, free: 17.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2276, allocations: 0 / 418.6 MB, free: 17.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.446e-05/0.2276, allocations: 0 / 418.6 MB, free: 17.16 MB / 298.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.001983/0.2296, allocations: 1.344 MB / 420 MB, free: 15.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.2297, allocations: 8.031 kB / 420 MB, free: 15.76 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001812/0.2298, allocations: 143.2 kB / 420.1 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009339/0.2308, allocations: 0.7469 MB / 420.9 MB, free: 14.83 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.781e-05/0.2309, allocations: 78.12 kB / 421 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001227/0.231, allocations: 111.9 kB / 421.1 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001411/0.2324, allocations: 0.9079 MB / 422 MB, free: 13.72 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.475e-05/0.2325, allocations: 3.906 kB / 422 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.577e-05/0.2326, allocations: 51.92 kB / 422 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.55e-05/0.2326, allocations: 20 kB / 422.1 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001587/0.2342, allocations: 0.6325 MB / 422.7 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005711/0.2399, allocations: 3.236 MB / 425.9 MB, free: 9.648 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001477/0.2415, allocations: 0.62 MB / 426.5 MB, free: 9.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005897/0.2421, allocations: 298.7 kB / 426.8 MB, free: 8.727 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.453e-05/0.2422, allocations: 12.64 kB / 426.8 MB, free: 8.715 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008406/0.243, allocations: 344.4 kB / 427.2 MB, free: 8.363 MB / 298.7 MB Notification: Performance of pre-optimization done (n=80): time 5.069e-06/0.243, allocations: 0 / 427.2 MB, free: 8.363 MB / 298.7 MB Notification: Performance of matching and sorting (n=100): time 0.006566/0.2496, allocations: 3.065 MB / 430.2 MB, free: 5.219 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.2497, allocations: 68.34 kB / 430.3 MB, free: 5.141 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001083/0.2508, allocations: 0.9272 MB / 431.2 MB, free: 4.203 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.044e-05/0.2509, allocations: 41.7 kB / 431.3 MB, free: 4.156 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003084/0.2512, allocations: 0.5117 MB / 431.8 MB, free: 3.637 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002159/0.2514, allocations: 347 kB / 432.1 MB, free: 3.293 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.274e-05/0.2515, allocations: 20 kB / 432.2 MB, free: 3.273 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.727e-05/0.2516, allocations: 345.9 kB / 432.5 MB, free: 2.93 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006937/0.2523, allocations: 265.9 kB / 432.8 MB, free: 2.672 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006036/0.2529, allocations: 433.4 kB / 433.2 MB, free: 2.195 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001173/0.2541, allocations: 0.7444 MB / 433.9 MB, free: 1.402 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.2541, allocations: 8 kB / 433.9 MB, free: 1.395 MB / 298.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001856/0.2559, allocations: 1.028 MB / 435 MB, free: 356 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.256, allocations: 8 kB / 435 MB, free: 348 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.256, allocations: 4 kB / 435 MB, free: 344 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004104/0.2564, allocations: 150 kB / 435.1 MB, free: 188 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007168/0.2572, allocations: 203.8 kB / 435.3 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003437/0.2606, allocations: 3.626 MB / 438.9 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006366/0.2613, allocations: 40.05 kB / 439 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.799e-05/0.2614, allocations: 32 kB / 439 MB, free: 12.02 MB / 314.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 ($whenCondition1,$PRE.timeTableTorqueInclination.nextTimeEvent,timeTableTorqueInclination.nextTimeEvent,$PRE.timeTableTorqueInclination.nextTimeEventScaled,timeTableTorqueInclination.nextTimeEventScaled) * 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.0005199/0.2619, allocations: 304.4 kB / 439.3 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001511/0.262, allocations: 106.6 kB / 439.4 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001798/0.2639, allocations: 0.9517 MB / 440.4 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.2639, allocations: 12 kB / 440.4 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.2639, allocations: 3.938 kB / 440.4 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.2639, allocations: 7.969 kB / 440.4 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003866/0.2678, allocations: 2.505 MB / 442.9 MB, free: 7.996 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/0.2678, allocations: 4 kB / 442.9 MB, free: 7.992 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007813/0.2686, allocations: 187.7 kB / 443.1 MB, free: 7.809 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003785/0.269, allocations: 122 kB / 443.2 MB, free: 7.684 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.276e-05/0.2691, allocations: 20 kB / 443.2 MB, free: 7.664 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002826/0.2719, allocations: 3.287 MB / 446.5 MB, free: 4.105 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/0.272, allocations: 7.938 kB / 446.5 MB, free: 4.098 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002324/0.2743, allocations: 1.438 MB / 447.9 MB, free: 2.602 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004102/0.2747, allocations: 247.6 kB / 448.2 MB, free: 2.34 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001336/0.2749, allocations: 20 kB / 448.2 MB, free: 2.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004042/0.2753, allocations: 35.98 kB / 448.2 MB, free: 2.285 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001695/0.2755, allocations: 68.94 kB / 448.3 MB, free: 2.219 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.71e-05/0.2756, allocations: 39.92 kB / 448.4 MB, free: 2.18 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007622/0.2763, allocations: 0.6513 MB / 449 MB, free: 1.535 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2763, allocations: 480 / 449 MB, free: 1.535 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008995/0.2772, allocations: 248 kB / 449.2 MB, free: 1.293 MB / 314.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 (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.0009503/0.2782, allocations: 0.4977 MB / 449.7 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002097/0.2803, allocations: 1.034 MB / 450.8 MB, free: 15.86 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.2803, allocations: 0 / 450.8 MB, free: 15.86 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.2814, allocations: 0.698 MB / 451.5 MB, free: 15.14 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001463/0.2829, allocations: 171.9 kB / 451.6 MB, free: 14.96 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00443/0.2873, allocations: 3.226 MB / 454.9 MB, free: 11.67 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006555/0.288, allocations: 1.108 MB / 456 MB, free: 10.54 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005141/0.2886, allocations: 123.5 kB / 456.1 MB, free: 10.41 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000189/0.2888, allocations: 79.34 kB / 456.2 MB, free: 10.33 MB / 330.7 MB Notification: Performance of SimCode: time 6.51e-07/0.2888, allocations: 0 / 456.2 MB, free: 10.33 MB / 330.7 MB Notification: Performance of Templates: time 0.01926/0.308, allocations: 10.28 MB / 466.5 MB, free: 84 kB / 330.7 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","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches