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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Vehicle,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Vehicle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Vehicle,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Vehicle",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001939/0.001939, allocations: 107.7 kB / 16.92 MB, free: 5.656 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.002483/0.002483, allocations: 189.6 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.675/2.675, allocations: 222.9 MB / 241.6 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001844/0.001845, allocations: 42.88 kB / 300.7 MB, free: 5.812 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1915/0.1934, allocations: 49.45 MB / 350.2 MB, free: 4.352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.01465/0.2082, allocations: 6.222 MB / 356.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009192/0.2174, allocations: 2.146 MB / 358.5 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002276/0.2198, allocations: 27.88 kB / 358.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002156/0.222, allocations: 421.3 kB / 359 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004032/0.2261, allocations: 452.9 kB / 359.4 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003034/0.2292, allocations: 0.5149 MB / 359.9 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005066/0.2343, allocations: 1.48 MB / 361.4 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002271/0.2366, allocations: 0.5435 MB / 362 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002073/0.2387, allocations: 0.5525 MB / 362.5 MB, free: 7.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001831/0.2405, allocations: 0.6417 MB / 363.1 MB, free: 7.285 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007029/0.2413, allocations: 128 kB / 363.3 MB, free: 7.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00105/0.2423, allocations: 168 kB / 363.4 MB, free: 6.996 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007083/0.2431, allocations: 310.8 kB / 363.7 MB, free: 6.691 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001899/0.245, allocations: 0.6372 MB / 364.4 MB, free: 6.051 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004753/0.2497, allocations: 1.624 MB / 366 MB, free: 4.422 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.692e-05/0.2498, allocations: 8 kB / 366 MB, free: 4.414 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.769e-06/0.2498, allocations: 0 / 366 MB, free: 4.414 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000172/0.25, allocations: 0 / 366 MB, free: 4.414 MB / 302.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.00755/0.2576, allocations: 1.543 MB / 367.6 MB, free: 2.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.746e-05/0.2577, allocations: 12.03 kB / 367.6 MB, free: 2.809 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000755/0.2585, allocations: 148.4 kB / 367.7 MB, free: 2.656 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009366/0.2594, allocations: 143.2 kB / 367.8 MB, free: 2.516 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00284/0.2623, allocations: 0.7392 MB / 368.6 MB, free: 1.734 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001228/0.2624, allocations: 85.92 kB / 368.7 MB, free: 1.648 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003413/0.2628, allocations: 107.9 kB / 368.8 MB, free: 1.543 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003538/0.2664, allocations: 0.9117 MB / 369.7 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.686e-05/0.2665, allocations: 11.84 kB / 369.7 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001564/0.2666, allocations: 40 kB / 369.7 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-05/0.2667, allocations: 31.92 kB / 369.8 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3665/0.6332, allocations: 0.6281 MB / 370.4 MB, free: 25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01169/0.6449, allocations: 3.231 MB / 373.6 MB, free: 23.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002979/0.648, allocations: 0.6184 MB / 374.2 MB, free: 23.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009193/0.649, allocations: 295 kB / 374.5 MB, free: 23.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.004e-05/0.6491, allocations: 18.8 kB / 374.6 MB, free: 23.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001227/0.6504, allocations: 345.1 kB / 374.9 MB, free: 23.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=80): time 5.48e-06/0.6504, allocations: 3.828 kB / 374.9 MB, free: 23.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=100): time 0.009257/0.6596, allocations: 3.058 MB / 378 MB, free: 21.58 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.209e-05/0.6598, allocations: 62.77 kB / 378 MB, free: 21.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002009/0.6618, allocations: 0.9302 MB / 378.9 MB, free: 21.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.916e-05/0.6619, allocations: 46.7 kB / 379 MB, free: 21.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005606/0.6624, allocations: 0.503 MB / 379.5 MB, free: 20.71 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003432/0.6628, allocations: 349.6 kB / 379.8 MB, free: 20.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003603/0.6632, allocations: 165.8 kB / 380 MB, free: 20.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.6633, allocations: 342.3 kB / 380.3 MB, free: 20.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008671/0.6642, allocations: 272.2 kB / 380.6 MB, free: 19.94 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008957/0.6651, allocations: 428.4 kB / 381 MB, free: 19.67 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001834/0.6669, allocations: 0.7489 MB / 381.8 MB, free: 19.22 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.754e-06/0.6669, allocations: 1.125 kB / 381.8 MB, free: 19.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003155/0.6701, allocations: 1.028 MB / 382.8 MB, free: 18.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.624e-05/0.6702, allocations: 10.62 kB / 382.8 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.726e-05/0.6702, allocations: 4.906 kB / 382.8 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006883/0.6709, allocations: 148.8 kB / 383 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001218/0.6721, allocations: 207.4 kB / 383.2 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004696/0.6768, allocations: 3.985 MB / 387.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001003/0.6779, allocations: 29.55 kB / 387.2 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001663/0.6781, allocations: 39.91 kB / 387.2 MB, free: 15.09 MB / 302.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.0007528/0.6788, allocations: 301 kB / 387.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002415/0.6791, allocations: 104.3 kB / 387.6 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002846/0.6819, allocations: 0.9553 MB / 388.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.898e-05/0.682, allocations: 14.59 kB / 388.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.682, allocations: 2.938 kB / 388.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.935e-05/0.682, allocations: 5.156 kB / 388.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006264/0.6883, allocations: 2.498 MB / 391.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.289e-05/0.6883, allocations: 3.828 kB / 391.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001209/0.6896, allocations: 183.4 kB / 391.3 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00053/0.6901, allocations: 126.8 kB / 391.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.156e-05/0.6902, allocations: 25.28 kB / 391.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00356/0.6938, allocations: 3.602 MB / 395 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/0.6938, allocations: 11.88 kB / 395 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003603/0.6974, allocations: 1.429 MB / 396.5 MB, free: 8.727 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006035/0.6981, allocations: 244.9 kB / 396.7 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002358/0.6983, allocations: 23.98 kB / 396.7 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006122/0.6989, allocations: 22.5 kB / 396.7 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002372/0.6992, allocations: 77.53 kB / 396.8 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.366e-05/0.6993, allocations: 34.08 kB / 396.8 MB, free: 8.422 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001348/0.7007, allocations: 0.6615 MB / 397.5 MB, free: 8.074 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.7007, allocations: 1.25 kB / 397.5 MB, free: 8.074 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001788/0.7025, allocations: 249.9 kB / 397.8 MB, free: 8.035 MB / 302.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.004704/0.7072, allocations: 2.318 MB / 400.1 MB, free: 6.512 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003548/0.7108, allocations: 1.091 MB / 401.2 MB, free: 5.875 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/0.7108, allocations: 3.938 kB / 401.2 MB, free: 5.871 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001354/0.7122, allocations: 0.6883 MB / 401.9 MB, free: 5.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001685/0.7139, allocations: 177 kB / 402 MB, free: 5.066 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01981/0.7337, allocations: 9.261 MB / 411.3 MB, free: 11.37 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001271/0.735, allocations: 1.104 MB / 412.4 MB, free: 10.23 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008007/0.7358, allocations: 123.5 kB / 412.5 MB, free: 10.11 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009043/0.7368, allocations: 451.3 kB / 413 MB, free: 9.668 MB / 318.1 MB Notification: Performance of SimCode: time 1.233e-06/0.7368, allocations: 0 / 413 MB, free: 9.668 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08711/0.8239, allocations: 20.71 MB / 433.7 MB, free: 5.164 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.63/18.45, allocations: 14.17 kB / 433.7 MB, free: 5.156 MB / 334.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Vehicle.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.csv","/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