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.001214/0.001214, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001321/0.001321, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002185/0.002185, allocations: 64.05 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3376, allocations: 50.54 MB / 408.8 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.007538/0.3452, allocations: 6.233 MB / 415 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004516/0.3498, allocations: 2.29 MB / 417.3 MB, free: 9.098 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009413/0.3508, allocations: 31.88 kB / 417.3 MB, free: 9.066 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009571/0.3517, allocations: 425.3 kB / 417.7 MB, free: 8.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00143/0.3532, allocations: 0.5007 MB / 418.2 MB, free: 8.145 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001151/0.3544, allocations: 495.1 kB / 418.7 MB, free: 7.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001894/0.3563, allocations: 1.503 MB / 420.2 MB, free: 6.152 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008363/0.3571, allocations: 0.5552 MB / 420.8 MB, free: 5.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008861/0.358, allocations: 0.5642 MB / 421.3 MB, free: 5.004 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007946/0.3588, allocations: 0.6456 MB / 422 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001894/0.359, allocations: 132 kB / 422.1 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000339/0.3594, allocations: 180 kB / 422.3 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002672/0.3597, allocations: 306.9 kB / 422.6 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006082/0.3603, allocations: 0.645 MB / 423.2 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001797/0.3621, allocations: 1.656 MB / 424.9 MB, free: 1.441 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3621, allocations: 4 kB / 424.9 MB, free: 1.438 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3621, allocations: 0 / 424.9 MB, free: 1.438 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.12e-05/0.3622, allocations: 0 / 424.9 MB, free: 1.438 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.002732/0.3649, allocations: 1.608 MB / 426.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.365, allocations: 8.031 kB / 426.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001684/0.3651, allocations: 152.4 kB / 426.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004053/0.3655, allocations: 156 kB / 426.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001234/0.3668, allocations: 0.7751 MB / 427.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.306e-05/0.3669, allocations: 81.94 kB / 427.7 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001527/0.367, allocations: 108 kB / 427.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001564/0.3686, allocations: 0.9078 MB / 428.7 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.801e-05/0.3687, allocations: 15.94 kB / 428.7 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.526e-05/0.3687, allocations: 36 kB / 428.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.224e-05/0.3688, allocations: 24 kB / 428.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001257/0.37, allocations: 0.6441 MB / 429.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004905/0.3749, allocations: 3.21 MB / 432.6 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001374/0.3764, allocations: 0.6143 MB / 433.2 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005053/0.3769, allocations: 298.7 kB / 433.5 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.057e-05/0.377, allocations: 16.64 kB / 433.5 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006384/0.3776, allocations: 344.3 kB / 433.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.795e-06/0.3776, allocations: 0 / 433.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=100): time 0.006083/0.3837, allocations: 3.094 MB / 437 MB, free: 5.023 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.248e-05/0.3838, allocations: 64.41 kB / 437 MB, free: 4.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001164/0.3849, allocations: 0.9508 MB / 438 MB, free: 3.992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.788e-05/0.385, allocations: 41.7 kB / 438 MB, free: 3.945 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000407/0.3854, allocations: 0.5204 MB / 438.5 MB, free: 3.418 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002883/0.3857, allocations: 360.9 kB / 438.9 MB, free: 3.062 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002417/0.386, allocations: 158.6 kB / 439 MB, free: 2.902 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.3861, allocations: 353.9 kB / 439.4 MB, free: 2.551 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005381/0.3867, allocations: 265.9 kB / 439.6 MB, free: 2.289 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006374/0.3873, allocations: 437.3 kB / 440.1 MB, free: 1.809 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00126/0.3886, allocations: 0.7405 MB / 440.8 MB, free: 1.016 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.3886, allocations: 3.938 kB / 440.8 MB, free: 1.012 MB / 350.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001958/0.3906, allocations: 1.033 MB / 441.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.3906, allocations: 8 kB / 441.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.3906, allocations: 4.406 kB / 441.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004659/0.3911, allocations: 141.6 kB / 442 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007651/0.3919, allocations: 211.7 kB / 442.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003978/0.3959, allocations: 3.989 MB / 446.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006301/0.3965, allocations: 28 kB / 446.2 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.648e-05/0.3966, allocations: 35.98 kB / 446.3 MB, free: 11.27 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.0005545/0.3972, allocations: 305.6 kB / 446.6 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001549/0.3973, allocations: 107.3 kB / 446.7 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001844/0.3992, allocations: 0.9635 MB / 447.6 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.3992, allocations: 12 kB / 447.6 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3992, allocations: 0 / 447.6 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.3992, allocations: 11.98 kB / 447.6 MB, free: 9.863 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004135/0.4034, allocations: 2.482 MB / 450.1 MB, free: 7.258 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.4034, allocations: 4.125 kB / 450.1 MB, free: 7.254 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007819/0.4042, allocations: 187.8 kB / 450.3 MB, free: 7.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003631/0.4046, allocations: 121.5 kB / 450.4 MB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.891e-05/0.4046, allocations: 28.28 kB / 450.5 MB, free: 6.918 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003372/0.408, allocations: 3.597 MB / 454.1 MB, free: 3.039 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.4081, allocations: 4 kB / 454.1 MB, free: 3.035 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002532/0.4106, allocations: 1.439 MB / 455.5 MB, free: 1.539 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000402/0.411, allocations: 252.2 kB / 455.7 MB, free: 1.273 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001626/0.4112, allocations: 20 kB / 455.8 MB, free: 1.254 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004597/0.4116, allocations: 27.98 kB / 455.8 MB, free: 1.227 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001577/0.4118, allocations: 72.94 kB / 455.9 MB, free: 1.152 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-05/0.4119, allocations: 39.92 kB / 455.9 MB, free: 1.113 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009353/0.4128, allocations: 0.663 MB / 456.6 MB, free: 464 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4128, allocations: 4 kB / 456.6 MB, free: 460 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.00108/0.4139, allocations: 240 kB / 456.8 MB, free: 220 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.003754/0.4177, allocations: 2.311 MB / 459.1 MB, free: 13.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00202/0.4197, allocations: 1.052 MB / 460.2 MB, free: 12.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.371e-05/0.4198, allocations: 4.875 kB / 460.2 MB, free: 12.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001128/0.4209, allocations: 0.6904 MB / 460.9 MB, free: 12.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.4221, allocations: 192.7 kB / 461.1 MB, free: 12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01334/0.4354, allocations: 8.753 MB / 469.8 MB, free: 2.949 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007777/0.4363, allocations: 1.104 MB / 470.9 MB, free: 1.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004357/0.4367, allocations: 115.6 kB / 471 MB, free: 1.703 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005631/0.4373, allocations: 455.3 kB / 471.5 MB, free: 1.258 MB / 382.1 MB Notification: Performance of SimCode: time 1.292e-06/0.4373, allocations: 0 / 471.5 MB, free: 1.258 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05476/0.4921, allocations: 21.26 MB / 492.7 MB, free: 12.21 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/12.12, allocations: 7.438 kB / 492.7 MB, free: 12.21 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