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: translateModel(Modelica.Mechanics.Translational.Examples.Vehicle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|vehicle.s|vehicle.v|vehicle1.s|vehicle1.v|trailer.s|trailer.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle") translateModel(Modelica.Mechanics.Translational.Examples.Vehicle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|vehicle.s|vehicle.v|vehicle1.s|vehicle1.v|trailer.s|trailer.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 92.8 kB / 16.65 MB, free: 6.586 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.001447/0.001447, allocations: 181.9 kB / 17.56 MB, free: 6.203 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.372/1.372, allocations: 223.3 MB / 241.6 MB, free: 236 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002897/0.0002897, allocations: 11.94 kB / 301.4 MB, free: 6.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1196, allocations: 50.41 MB / 351.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.008375/0.128, allocations: 5.742 MB / 357.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006461/0.1345, allocations: 2.084 MB / 359.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001422/0.136, allocations: 27.88 kB / 359.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001382/0.1374, allocations: 366.2 kB / 360 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002154/0.1396, allocations: 397.7 kB / 360.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001825/0.1414, allocations: 466.7 kB / 360.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002802/0.1442, allocations: 1.406 MB / 362.3 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001224/0.1455, allocations: 479.6 kB / 362.8 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001046/0.1465, allocations: 457.8 kB / 363.2 MB, free: 8.281 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001351/0.1479, allocations: 0.5636 MB / 363.8 MB, free: 7.715 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003877/0.1483, allocations: 52 kB / 363.8 MB, free: 7.664 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006728/0.149, allocations: 95.92 kB / 363.9 MB, free: 7.57 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005021/0.1495, allocations: 218.9 kB / 364.1 MB, free: 7.355 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001301/0.1508, allocations: 0.5803 MB / 364.7 MB, free: 6.766 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002461/0.1533, allocations: 1.51 MB / 366.2 MB, free: 5.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1533, allocations: 0 / 366.2 MB, free: 5.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1533, allocations: 0 / 366.2 MB, free: 5.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.945e-05/0.1534, allocations: 0 / 366.2 MB, free: 5.25 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.003853/0.1573, allocations: 1.325 MB / 367.5 MB, free: 3.875 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.834e-05/0.1573, allocations: 15.97 kB / 367.6 MB, free: 3.859 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005249/0.1579, allocations: 147.1 kB / 367.7 MB, free: 3.715 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00181/0.1597, allocations: 0.7431 MB / 368.4 MB, free: 2.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.993e-05/0.1598, allocations: 82.12 kB / 368.5 MB, free: 2.848 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002703/0.1601, allocations: 107.9 kB / 368.6 MB, free: 2.742 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002834/0.1629, allocations: 0.9117 MB / 369.5 MB, free: 1.816 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-05/0.163, allocations: 11.91 kB / 369.5 MB, free: 1.805 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001381/0.1632, allocations: 39.98 kB / 369.6 MB, free: 1.766 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.651e-05/0.1632, allocations: 24 kB / 369.6 MB, free: 1.742 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00215/0.1654, allocations: 0.6441 MB / 370.3 MB, free: 1.098 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1826/0.348, allocations: 3.231 MB / 373.5 MB, free: 23.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00143/0.3494, allocations: 0.6262 MB / 374.1 MB, free: 23.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005225/0.35, allocations: 296.2 kB / 374.4 MB, free: 23.08 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.876e-05/0.35, allocations: 18.03 kB / 374.4 MB, free: 23.08 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008043/0.3509, allocations: 348.5 kB / 374.8 MB, free: 23.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=80): time 2.495e-06/0.3509, allocations: 0 / 374.8 MB, free: 23.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=100): time 0.006257/0.3571, allocations: 3.079 MB / 377.8 MB, free: 21.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.355e-05/0.3572, allocations: 67.98 kB / 377.9 MB, free: 21.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001251/0.3585, allocations: 0.9345 MB / 378.8 MB, free: 20.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.062e-05/0.3585, allocations: 45.89 kB / 378.9 MB, free: 20.94 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003475/0.3589, allocations: 0.509 MB / 379.4 MB, free: 20.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002565/0.3592, allocations: 344.3 kB / 379.7 MB, free: 20.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/0.3593, allocations: 81.53 kB / 379.8 MB, free: 20.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.115e-05/0.3594, allocations: 343.1 kB / 380.1 MB, free: 19.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000567/0.36, allocations: 272.5 kB / 380.4 MB, free: 19.8 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006109/0.3606, allocations: 443 kB / 380.8 MB, free: 19.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001121/0.3617, allocations: 0.746 MB / 381.6 MB, free: 19.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.3617, allocations: 2.688 kB / 381.6 MB, free: 19.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001851/0.3636, allocations: 1.029 MB / 382.6 MB, free: 18.63 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.687e-05/0.3636, allocations: 7.031 kB / 382.6 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.3636, allocations: 8.375 kB / 382.6 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004479/0.3641, allocations: 148.7 kB / 382.8 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007793/0.3649, allocations: 205.7 kB / 383 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00306/0.368, allocations: 3.626 MB / 386.6 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007066/0.3687, allocations: 34.5 kB / 386.6 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.074e-05/0.3688, allocations: 36.62 kB / 386.7 MB, free: 15.3 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.0005649/0.3693, allocations: 302.6 kB / 387 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/0.3695, allocations: 109.3 kB / 387.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001761/0.3713, allocations: 0.9653 MB / 388 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.036e-05/0.3713, allocations: 8.562 kB / 388.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.3713, allocations: 2.875 kB / 388.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.208e-05/0.3713, allocations: 7.422 kB / 388.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003847/0.3752, allocations: 2.507 MB / 390.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.405e-06/0.3752, allocations: 8.984 kB / 390.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007628/0.376, allocations: 180.1 kB / 390.8 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003501/0.3763, allocations: 131.2 kB / 390.9 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.423e-05/0.3764, allocations: 25.28 kB / 390.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002228/0.3786, allocations: 3.295 MB / 394.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.3787, allocations: 3.906 kB / 394.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002122/0.3808, allocations: 1.442 MB / 395.7 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003464/0.3811, allocations: 247.2 kB / 395.9 MB, free: 9.156 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.3813, allocations: 20.25 kB / 395.9 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004199/0.3817, allocations: 31.53 kB / 395.9 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/0.3818, allocations: 77.31 kB / 396 MB, free: 9.105 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.536e-05/0.3819, allocations: 32.02 kB / 396 MB, free: 9.098 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007665/0.3827, allocations: 0.6605 MB / 396.7 MB, free: 8.824 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3827, allocations: 0 / 396.7 MB, free: 8.824 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009764/0.3837, allocations: 249.6 kB / 397 MB, free: 8.785 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.0009351/0.3846, allocations: 448.5 kB / 397.4 MB, free: 8.578 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001643/0.3863, allocations: 1.043 MB / 398.4 MB, free: 7.965 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.3863, allocations: 3.469 kB / 398.4 MB, free: 7.965 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000857/0.3871, allocations: 0.6941 MB / 399.1 MB, free: 7.512 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001246/0.3884, allocations: 166.1 kB / 399.3 MB, free: 7.422 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003314/0.3917, allocations: 3.239 MB / 402.5 MB, free: 4.852 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000457/0.3922, allocations: 1.104 MB / 403.6 MB, free: 3.719 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003904/0.3926, allocations: 119.5 kB / 403.8 MB, free: 3.598 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001759/0.3928, allocations: 75.42 kB / 403.8 MB, free: 3.523 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3928, allocations: 0 / 403.8 MB, free: 3.523 MB / 302.1 MB Notification: Performance of Templates: time 0.01803/0.4108, allocations: 10.3 MB / 414.1 MB, free: 9.309 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.makefile (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 & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Vehicle/Vehicle.csv","/var/lib/jenkins/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