Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Vehicle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Vehicle,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Vehicle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Vehicle,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Vehicle",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001098/0.001098, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001139/0.001139, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002007, allocations: 55.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3021, allocations: 50.55 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.007745/0.3099, allocations: 6.24 MB / 415 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004317/0.3142, allocations: 2.294 MB / 417.3 MB, free: 8.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009719/0.3152, allocations: 31.81 kB / 417.3 MB, free: 8.949 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00089/0.3162, allocations: 417.4 kB / 417.7 MB, free: 8.539 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001351/0.3175, allocations: 0.5046 MB / 418.2 MB, free: 8.031 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001094/0.3186, allocations: 499.1 kB / 418.7 MB, free: 7.543 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001637/0.3203, allocations: 1.5 MB / 420.2 MB, free: 6.039 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007792/0.3211, allocations: 0.5513 MB / 420.8 MB, free: 5.461 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007569/0.3219, allocations: 0.5604 MB / 421.3 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007009/0.3226, allocations: 0.6534 MB / 422 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001744/0.3227, allocations: 128 kB / 422.1 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003172/0.3231, allocations: 180 kB / 422.3 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002569/0.3233, allocations: 306.9 kB / 422.6 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005735/0.3239, allocations: 0.6528 MB / 423.2 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001688/0.3256, allocations: 1.656 MB / 424.9 MB, free: 1.324 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.3256, allocations: 0 / 424.9 MB, free: 1.324 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3257, allocations: 0 / 424.9 MB, free: 1.324 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.817e-05/0.3257, allocations: 0 / 424.9 MB, free: 1.324 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.002818/0.3285, allocations: 1.612 MB / 426.5 MB, free: 15.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.3286, allocations: 12.03 kB / 426.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001708/0.3287, allocations: 148.4 kB / 426.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004209/0.3292, allocations: 156 kB / 426.8 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001238/0.3304, allocations: 0.7789 MB / 427.6 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.033e-05/0.3305, allocations: 77.94 kB / 427.7 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001446/0.3307, allocations: 104 kB / 427.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0016/0.3323, allocations: 0.9079 MB / 428.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.838e-05/0.3323, allocations: 15.94 kB / 428.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.716e-05/0.3324, allocations: 39.94 kB / 428.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.089e-05/0.3324, allocations: 24 kB / 428.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001314/0.3338, allocations: 0.6364 MB / 429.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004632/0.3384, allocations: 3.21 MB / 432.6 MB, free: 9.355 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001286/0.3397, allocations: 0.6117 MB / 433.2 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000579/0.3403, allocations: 298.7 kB / 433.5 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.384e-05/0.3404, allocations: 24.62 kB / 433.5 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006545/0.341, allocations: 340.4 kB / 433.9 MB, free: 8.074 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 3.547e-06/0.341, allocations: 0 / 433.9 MB, free: 8.074 MB / 350.1 MB Notification: Performance of matching and sorting (n=100): time 0.006101/0.3472, allocations: 3.086 MB / 436.9 MB, free: 4.914 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.461e-05/0.3472, allocations: 68.34 kB / 437 MB, free: 4.836 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001228/0.3485, allocations: 0.9508 MB / 438 MB, free: 3.879 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.648e-05/0.3485, allocations: 41.7 kB / 438 MB, free: 3.832 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004228/0.349, allocations: 0.5205 MB / 438.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000289/0.3493, allocations: 364.9 kB / 438.9 MB, free: 2.945 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000226/0.3495, allocations: 158.6 kB / 439 MB, free: 2.785 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.3496, allocations: 345.9 kB / 439.4 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005282/0.3502, allocations: 265.9 kB / 439.6 MB, free: 2.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006435/0.3508, allocations: 429.4 kB / 440.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001379/0.3522, allocations: 0.7522 MB / 440.8 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.3522, allocations: 0 / 440.8 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002094/0.3543, allocations: 1.041 MB / 441.8 MB, free: 15.85 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.3544, allocations: 4 kB / 441.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.3544, allocations: 4 kB / 441.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004695/0.3549, allocations: 146 kB / 442 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007581/0.3556, allocations: 207.7 kB / 442.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004007/0.3597, allocations: 3.996 MB / 446.2 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006315/0.3603, allocations: 24 kB / 446.2 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.026e-05/0.3604, allocations: 44.05 kB / 446.3 MB, free: 11.15 MB / 366.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.0006306/0.361, allocations: 306.6 kB / 446.6 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001743/0.3612, allocations: 111.3 kB / 446.7 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001879/0.3631, allocations: 0.9557 MB / 447.6 MB, free: 9.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.337e-06/0.3631, allocations: 8 kB / 447.6 MB, free: 9.762 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.3631, allocations: 7.938 kB / 447.6 MB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.973e-05/0.3632, allocations: 3.984 kB / 447.6 MB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004/0.3672, allocations: 2.494 MB / 450.1 MB, free: 7.133 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.3672, allocations: 4.375 kB / 450.1 MB, free: 7.129 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007638/0.368, allocations: 183.8 kB / 450.3 MB, free: 6.949 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003611/0.3683, allocations: 117.6 kB / 450.4 MB, free: 6.828 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.867e-05/0.3684, allocations: 23.98 kB / 450.5 MB, free: 6.805 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003527/0.372, allocations: 3.605 MB / 454.1 MB, free: 2.918 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.372, allocations: 4 kB / 454.1 MB, free: 2.914 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002564/0.3745, allocations: 1.439 MB / 455.5 MB, free: 1.418 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004628/0.375, allocations: 248.7 kB / 455.8 MB, free: 1.156 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001173/0.3752, allocations: 20 kB / 455.8 MB, free: 1.137 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004176/0.3756, allocations: 27.98 kB / 455.8 MB, free: 1.109 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001587/0.3757, allocations: 72.91 kB / 455.9 MB, free: 1.035 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.199e-05/0.3758, allocations: 36.02 kB / 455.9 MB, free: 1 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008568/0.3767, allocations: 0.6746 MB / 456.6 MB, free: 336 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3767, allocations: 0 / 456.6 MB, free: 336 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009407/0.3776, allocations: 244 kB / 456.8 MB, free: 92 kB / 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.003607/0.3813, allocations: 2.308 MB / 459.1 MB, free: 13.85 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002018/0.3833, allocations: 1.049 MB / 460.2 MB, free: 12.78 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.3833, allocations: 4 kB / 460.2 MB, free: 12.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001077/0.3844, allocations: 0.6871 MB / 460.9 MB, free: 12.06 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001048/0.3854, allocations: 183.8 kB / 461 MB, free: 11.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01331/0.3988, allocations: 8.761 MB / 469.8 MB, free: 2.832 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007662/0.3996, allocations: 1.1 MB / 470.9 MB, free: 1.707 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000459/0.4, allocations: 119.5 kB / 471 MB, free: 1.586 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005838/0.4006, allocations: 455.2 kB / 471.5 MB, free: 1.141 MB / 382.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4006, allocations: 4 kB / 471.5 MB, free: 1.137 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05568/0.4563, allocations: 21.25 MB / 492.7 MB, free: 12.1 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.92, allocations: 10.81 kB / 492.7 MB, free: 12.09 MB / 414.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Vehicle.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Vehicle.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Vehicle.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Vehicle.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Translational_Examples_Vehicle.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Vehicle.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Vehicle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches