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.001238/0.001238, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001284/0.001284, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.546/1.546, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 60.59 kB / 307 MB, free: 0.5703 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1038, allocations: 50.53 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.007878/0.1118, allocations: 6.245 MB / 363.8 MB, free: 7.762 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004704/0.1165, allocations: 2.283 MB / 366.1 MB, free: 5.473 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001431/0.118, allocations: 31.81 kB / 366.1 MB, free: 5.441 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001392/0.1194, allocations: 429.4 kB / 366.6 MB, free: 5.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001962/0.1214, allocations: 488.7 kB / 367 MB, free: 4.539 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001454/0.1229, allocations: 491.1 kB / 367.5 MB, free: 4.059 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002581/0.1255, allocations: 1.504 MB / 369 MB, free: 2.547 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001145/0.1267, allocations: 0.5435 MB / 369.6 MB, free: 1.973 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001015/0.1277, allocations: 0.5525 MB / 370.1 MB, free: 1.418 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001021/0.1287, allocations: 0.6456 MB / 370.8 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003407/0.1291, allocations: 136 kB / 370.9 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006202/0.1297, allocations: 179.9 kB / 371.1 MB, free: 472 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003791/0.1301, allocations: 302.9 kB / 371.4 MB, free: 168 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2008/0.3309, allocations: 0.6444 MB / 372 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002175/0.3331, allocations: 1.623 MB / 373.6 MB, free: 11.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3331, allocations: 0 / 373.6 MB, free: 11.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3331, allocations: 0 / 373.6 MB, free: 11.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.796e-05/0.3332, allocations: 0.7812 kB / 373.6 MB, free: 11.07 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.002649/0.3358, allocations: 1.564 MB / 375.2 MB, free: 10.24 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.3359, allocations: 10.22 kB / 375.2 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001568/0.3361, allocations: 151.7 kB / 375.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004057/0.3365, allocations: 157.7 kB / 375.5 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001045/0.3375, allocations: 0.7481 MB / 376.3 MB, free: 9.789 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.707e-05/0.3376, allocations: 73.23 kB / 376.3 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001354/0.3377, allocations: 112.5 kB / 376.4 MB, free: 9.777 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001444/0.3392, allocations: 0.9111 MB / 377.3 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.61e-05/0.3393, allocations: 8.203 kB / 377.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.547e-05/0.3393, allocations: 46.31 kB / 377.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.041e-05/0.3394, allocations: 24.31 kB / 377.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0012/0.3406, allocations: 0.6349 MB / 378.1 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004889/0.3455, allocations: 3.228 MB / 381.3 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001245/0.3468, allocations: 0.6217 MB / 381.9 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005315/0.3473, allocations: 299.2 kB / 382.2 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.994e-05/0.3474, allocations: 14.42 kB / 382.2 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007182/0.3481, allocations: 348.5 kB / 382.6 MB, free: 7.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=80): time 2.976e-06/0.3481, allocations: 0 / 382.6 MB, free: 7.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=100): time 0.00602/0.3542, allocations: 3.054 MB / 385.6 MB, free: 6.137 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.368e-05/0.3542, allocations: 66.81 kB / 385.7 MB, free: 6.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001314/0.3555, allocations: 0.9501 MB / 386.6 MB, free: 5.703 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.693e-05/0.3556, allocations: 42.23 kB / 386.7 MB, free: 5.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003142/0.3559, allocations: 0.5106 MB / 387.2 MB, free: 5.258 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001822/0.3561, allocations: 347 kB / 387.5 MB, free: 4.992 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002025/0.3563, allocations: 158.8 kB / 387.7 MB, free: 4.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.107e-05/0.3564, allocations: 346.4 kB / 388 MB, free: 4.586 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004904/0.3569, allocations: 271.2 kB / 388.3 MB, free: 4.484 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005662/0.3575, allocations: 431.1 kB / 388.7 MB, free: 4.219 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/0.3586, allocations: 0.7471 MB / 389.4 MB, free: 3.785 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.3586, allocations: 2.062 kB / 389.4 MB, free: 3.785 MB / 302.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.00214/0.3607, allocations: 1.033 MB / 390.5 MB, free: 3.348 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.466e-05/0.3608, allocations: 6.469 kB / 390.5 MB, free: 3.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.3608, allocations: 3.281 kB / 390.5 MB, free: 3.348 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004673/0.3613, allocations: 149.8 kB / 390.6 MB, free: 3.297 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007656/0.362, allocations: 201.8 kB / 390.8 MB, free: 3.293 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003483/0.3655, allocations: 3.988 MB / 394.8 MB, free: 15.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001041/0.3666, allocations: 34.88 kB / 394.9 MB, free: 15.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001145/0.3667, allocations: 37.03 kB / 394.9 MB, free: 15.71 MB / 318.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.0009097/0.3677, allocations: 307.9 kB / 395.2 MB, free: 15.49 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002888/0.368, allocations: 114.2 kB / 395.3 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002007/0.37, allocations: 0.9508 MB / 396.3 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-05/0.37, allocations: 8.906 kB / 396.3 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.37, allocations: 3.625 kB / 396.3 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.196e-05/0.37, allocations: 5.25 kB / 396.3 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00563/0.3757, allocations: 2.5 MB / 398.8 MB, free: 13.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.287e-05/0.3757, allocations: 10.23 kB / 398.8 MB, free: 13.53 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007336/0.3765, allocations: 190.1 kB / 399 MB, free: 13.49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003713/0.3768, allocations: 123.9 kB / 399.1 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.569e-05/0.3769, allocations: 19.69 kB / 399.1 MB, free: 13.42 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003389/0.3803, allocations: 3.606 MB / 402.7 MB, free: 9.996 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.3803, allocations: 3.5 kB / 402.7 MB, free: 9.996 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00249/0.3828, allocations: 1.431 MB / 404.1 MB, free: 9.129 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004383/0.3833, allocations: 239.7 kB / 404.4 MB, free: 8.91 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001238/0.3834, allocations: 27.22 kB / 404.4 MB, free: 8.895 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004155/0.3838, allocations: 28.98 kB / 404.4 MB, free: 8.875 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001459/0.384, allocations: 71.16 kB / 404.5 MB, free: 8.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.612e-05/0.3841, allocations: 36.55 kB / 404.5 MB, free: 8.828 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009204/0.385, allocations: 0.6628 MB / 405.2 MB, free: 8.484 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.385, allocations: 0 / 405.2 MB, free: 8.484 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001154/0.3861, allocations: 248.5 kB / 405.4 MB, free: 8.445 MB / 318.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.003851/0.39, allocations: 2.316 MB / 407.8 MB, free: 6.609 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002546/0.3926, allocations: 1.092 MB / 408.9 MB, free: 5.527 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.161e-06/0.3926, allocations: 0.875 kB / 408.9 MB, free: 5.527 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001115/0.3937, allocations: 0.6912 MB / 409.5 MB, free: 4.828 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001321/0.395, allocations: 190.5 kB / 409.7 MB, free: 4.652 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0131/0.4082, allocations: 9.266 MB / 419 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008247/0.409, allocations: 1.1 MB / 420.1 MB, free: 9.871 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005151/0.4095, allocations: 119.6 kB / 420.2 MB, free: 9.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005466/0.4101, allocations: 455.3 kB / 420.7 MB, free: 9.305 MB / 334.1 MB Notification: Performance of SimCode: time 3.577e-06/0.4101, allocations: 0 / 420.7 MB, free: 9.305 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05465/0.4648, allocations: 20.8 MB / 441.5 MB, free: 4.723 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.32/10.79, allocations: 0 / 441.5 MB, free: 4.723 MB / 350.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