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.001116/0.001122, allocations: 114 kB / 17.06 MB, free: 6.016 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.001219/0.001219, allocations: 191 kB / 18 MB, free: 5.098 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.374/1.374, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 39.92 kB / 350.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2854, allocations: 49.44 MB / 400.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.00721/0.2926, allocations: 6.209 MB / 406.4 MB, free: 2.605 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003949/0.2966, allocations: 2.154 MB / 408.6 MB, free: 460 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007579/0.2974, allocations: 35.81 kB / 408.6 MB, free: 424 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008526/0.2983, allocations: 429.4 kB / 409 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001076/0.2994, allocations: 468.8 kB / 409.5 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00108/0.3005, allocations: 0.5258 MB / 410 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001546/0.302, allocations: 1.492 MB / 411.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007372/0.3028, allocations: 0.5435 MB / 412.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007164/0.3035, allocations: 0.5526 MB / 412.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006758/0.3042, allocations: 0.6495 MB / 413.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001616/0.3044, allocations: 132 kB / 413.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002616/0.3046, allocations: 168 kB / 413.6 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002343/0.3049, allocations: 306.9 kB / 413.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005326/0.3054, allocations: 0.6411 MB / 414.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001632/0.307, allocations: 1.649 MB / 416.1 MB, free: 8.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.3071, allocations: 0 / 416.1 MB, free: 8.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3071, allocations: 0 / 416.1 MB, free: 8.84 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.606e-05/0.3071, allocations: 0 / 416.1 MB, free: 8.84 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.00272/0.3098, allocations: 1.592 MB / 417.7 MB, free: 7.188 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.3099, allocations: 12.03 kB / 417.8 MB, free: 7.176 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001615/0.3101, allocations: 152.4 kB / 417.9 MB, free: 7.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002092/0.3103, allocations: 152 kB / 418.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001229/0.3115, allocations: 0.775 MB / 418.8 MB, free: 6.055 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.566e-05/0.3116, allocations: 77.94 kB / 418.9 MB, free: 5.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001468/0.3117, allocations: 107.9 kB / 419 MB, free: 5.875 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001531/0.3133, allocations: 0.9117 MB / 419.9 MB, free: 4.945 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.116e-05/0.3133, allocations: 7.953 kB / 419.9 MB, free: 4.938 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.926e-05/0.3134, allocations: 40 kB / 420 MB, free: 4.898 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.883e-05/0.3134, allocations: 24 kB / 420 MB, free: 4.875 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00122/0.3147, allocations: 0.6363 MB / 420.6 MB, free: 4.242 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004446/0.3191, allocations: 3.206 MB / 423.8 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001345/0.3205, allocations: 0.6235 MB / 424.5 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005078/0.321, allocations: 298.7 kB / 424.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.81e-05/0.3211, allocations: 12.56 kB / 424.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006606/0.3218, allocations: 344.4 kB / 425.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.695e-06/0.3218, allocations: 0 / 425.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=100): time 0.005817/0.3276, allocations: 3.087 MB / 428.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.3277, allocations: 60.41 kB / 428.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001044/0.3287, allocations: 0.9313 MB / 429.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.318e-05/0.3288, allocations: 41.7 kB / 429.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003809/0.3292, allocations: 0.5204 MB / 429.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002464/0.3294, allocations: 360.9 kB / 430.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000215/0.3296, allocations: 166.6 kB / 430.2 MB, free: 10.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.3298, allocations: 345.9 kB / 430.6 MB, free: 10 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005191/0.3303, allocations: 269.8 kB / 430.9 MB, free: 9.738 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006069/0.3309, allocations: 433.4 kB / 431.3 MB, free: 9.262 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001226/0.3322, allocations: 0.7483 MB / 432 MB, free: 8.461 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3322, allocations: 0 / 432 MB, free: 8.461 MB / 350.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.00183/0.334, allocations: 1.037 MB / 433.1 MB, free: 7.414 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.334, allocations: 7.062 kB / 433.1 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.3341, allocations: 4 kB / 433.1 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004338/0.3345, allocations: 149.6 kB / 433.2 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007397/0.3353, allocations: 203.7 kB / 433.4 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003598/0.3389, allocations: 3.995 MB / 437.4 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005893/0.3395, allocations: 28 kB / 437.4 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-05/0.3395, allocations: 39.92 kB / 437.5 MB, free: 2.719 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.0004912/0.34, allocations: 309.4 kB / 437.8 MB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001508/0.3402, allocations: 115.4 kB / 437.9 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001785/0.342, allocations: 0.9516 MB / 438.8 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.342, allocations: 12 kB / 438.9 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.342, allocations: 4.125 kB / 438.9 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/0.342, allocations: 7.984 kB / 438.9 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003863/0.3459, allocations: 2.478 MB / 441.3 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.3459, allocations: 7.938 kB / 441.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007533/0.3467, allocations: 179.7 kB / 441.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003516/0.3471, allocations: 126 kB / 441.7 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.12e-05/0.3471, allocations: 23.98 kB / 441.7 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003632/0.3508, allocations: 3.593 MB / 445.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/0.3508, allocations: 7.938 kB / 445.3 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002477/0.3533, allocations: 1.435 MB / 446.7 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003972/0.3537, allocations: 252.2 kB / 447 MB, free: 8.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001189/0.3538, allocations: 28 kB / 447 MB, free: 8.703 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004009/0.3542, allocations: 24 kB / 447 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/0.3544, allocations: 77.39 kB / 447.1 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.625e-05/0.3544, allocations: 31.92 kB / 447.1 MB, free: 8.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007946/0.3552, allocations: 0.663 MB / 447.8 MB, free: 7.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.334e-06/0.3553, allocations: 0 / 447.8 MB, free: 7.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009445/0.3562, allocations: 247.9 kB / 448 MB, free: 7.668 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.003649/0.3599, allocations: 2.321 MB / 450.3 MB, free: 5.441 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002147/0.362, allocations: 1.045 MB / 451.4 MB, free: 4.371 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.362, allocations: 0 / 451.4 MB, free: 4.371 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001144/0.3632, allocations: 0.698 MB / 452.1 MB, free: 3.648 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001047/0.3643, allocations: 188.9 kB / 452.3 MB, free: 3.469 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01222/0.3765, allocations: 8.741 MB / 461 MB, free: 10.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000667/0.3772, allocations: 1.104 MB / 462.1 MB, free: 9.301 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004236/0.3776, allocations: 119.6 kB / 462.2 MB, free: 9.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005354/0.3782, allocations: 443.3 kB / 462.7 MB, free: 8.746 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3782, allocations: 0 / 462.7 MB, free: 8.746 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05232/0.4305, allocations: 21.2 MB / 483.9 MB, free: 3.781 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.62, allocations: 0 / 483.9 MB, free: 3.781 MB / 398.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