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.001127/0.001126, allocations: 114.1 kB / 17.69 MB, free: 5.312 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.001065/0.001066, allocations: 191 kB / 18.63 MB, free: 4.379 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.445/1.445, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00106/0.00106, allocations: 43.53 kB / 302.1 MB, free: 5.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1149, allocations: 49.45 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.01025/0.1252, allocations: 6.222 MB / 357.7 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005036/0.1303, allocations: 2.142 MB / 359.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006825/0.131, allocations: 31.81 kB / 359.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001101/0.1321, allocations: 421.4 kB / 360.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001461/0.1336, allocations: 460.8 kB / 360.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001567/0.1352, allocations: 0.5069 MB / 361.3 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002226/0.1374, allocations: 1.492 MB / 362.8 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001047/0.1385, allocations: 0.5435 MB / 363.3 MB, free: 7.824 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007718/0.1393, allocations: 0.5448 MB / 363.9 MB, free: 7.277 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009007/0.1402, allocations: 0.6456 MB / 364.5 MB, free: 6.629 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002117/0.1404, allocations: 132 kB / 364.6 MB, free: 6.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003862/0.1408, allocations: 172 kB / 364.8 MB, free: 6.332 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003717/0.1412, allocations: 306.9 kB / 365.1 MB, free: 6.031 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007655/0.142, allocations: 0.645 MB / 365.7 MB, free: 5.383 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001943/0.1439, allocations: 1.639 MB / 367.4 MB, free: 3.738 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.1439, allocations: 0 / 367.4 MB, free: 3.738 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.1439, allocations: 0 / 367.4 MB, free: 3.738 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.894e-05/0.144, allocations: 0 / 367.4 MB, free: 3.738 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.003553/0.1475, allocations: 1.558 MB / 368.9 MB, free: 2.129 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.158e-05/0.1476, allocations: 8.031 kB / 368.9 MB, free: 2.121 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003054/0.1479, allocations: 143.2 kB / 369.1 MB, free: 1.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001675/0.1496, allocations: 0.7626 MB / 369.8 MB, free: 1.176 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.434e-05/0.1497, allocations: 78.12 kB / 369.9 MB, free: 1.098 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002098/0.1499, allocations: 103.8 kB / 370 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002171/0.1521, allocations: 0.9157 MB / 370.9 MB, free: 68 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.275e-05/0.1522, allocations: 7.906 kB / 371 MB, free: 60 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001077/0.1523, allocations: 40 kB / 371 MB, free: 20 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1761/0.3284, allocations: 23.77 kB / 371 MB, free: 25.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002308/0.3307, allocations: 0.6331 MB / 371.6 MB, free: 25.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005799/0.3366, allocations: 3.195 MB / 374.8 MB, free: 23.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001538/0.3381, allocations: 0.6206 MB / 375.5 MB, free: 23.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005735/0.3387, allocations: 299.5 kB / 375.8 MB, free: 23.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.466e-05/0.3388, allocations: 15.5 kB / 375.8 MB, free: 23.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006802/0.3395, allocations: 341.6 kB / 376.1 MB, free: 23.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=80): time 4.168e-06/0.3395, allocations: 0 / 376.1 MB, free: 23.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=100): time 0.005893/0.3454, allocations: 3.065 MB / 379.2 MB, free: 21.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.327e-05/0.3455, allocations: 62.59 kB / 379.2 MB, free: 21.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001115/0.3466, allocations: 0.9346 MB / 380.2 MB, free: 21.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.286e-05/0.3466, allocations: 42.42 kB / 380.2 MB, free: 21.08 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003054/0.3469, allocations: 0.5081 MB / 380.7 MB, free: 20.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001986/0.3472, allocations: 349.8 kB / 381.1 MB, free: 20.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002256/0.3474, allocations: 161.5 kB / 381.2 MB, free: 20.33 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.008e-05/0.3475, allocations: 344.3 kB / 381.5 MB, free: 20.01 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005012/0.348, allocations: 268.6 kB / 381.8 MB, free: 19.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005885/0.3486, allocations: 429.2 kB / 382.2 MB, free: 19.65 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001054/0.3496, allocations: 0.745 MB / 383 MB, free: 19.21 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.3497, allocations: 1.125 kB / 383 MB, free: 19.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001711/0.3514, allocations: 1.031 MB / 384 MB, free: 18.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.3514, allocations: 10.55 kB / 384 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.3514, allocations: 3.25 kB / 384 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004346/0.3519, allocations: 148.2 kB / 384.2 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000748/0.3526, allocations: 212.1 kB / 384.4 MB, free: 18.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002833/0.3555, allocations: 3.981 MB / 388.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005122/0.356, allocations: 29.25 kB / 388.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.593e-05/0.3561, allocations: 36.75 kB / 388.4 MB, free: 15.1 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.0004169/0.3565, allocations: 307.5 kB / 388.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.3566, allocations: 105.2 kB / 388.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001681/0.3583, allocations: 0.95 MB / 389.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/0.3583, allocations: 15.11 kB / 389.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.375e-05/0.3583, allocations: 2.312 kB / 389.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.3584, allocations: 4.5 kB / 389.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003449/0.3618, allocations: 2.477 MB / 392.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.3618, allocations: 1.125 kB / 392.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007076/0.3626, allocations: 184.6 kB / 392.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003101/0.3629, allocations: 130.9 kB / 392.6 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.952e-05/0.3629, allocations: 35.55 kB / 392.6 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002191/0.3651, allocations: 3.586 MB / 396.2 MB, free: 9.547 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.3651, allocations: 10.88 kB / 396.2 MB, free: 9.539 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001995/0.3671, allocations: 1.431 MB / 397.6 MB, free: 8.656 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003202/0.3675, allocations: 242 kB / 397.9 MB, free: 8.438 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001094/0.3676, allocations: 30.8 kB / 397.9 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000392/0.368, allocations: 20.09 kB / 397.9 MB, free: 8.406 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001374/0.3681, allocations: 78.94 kB / 398 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.879e-05/0.3682, allocations: 33.8 kB / 398 MB, free: 8.352 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006997/0.3689, allocations: 0.6666 MB / 398.7 MB, free: 8 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3689, allocations: 0 / 398.7 MB, free: 8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009212/0.3698, allocations: 246.7 kB / 398.9 MB, free: 7.965 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.0009491/0.3708, allocations: 445.2 kB / 399.4 MB, free: 7.773 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001445/0.3723, allocations: 1.038 MB / 400.4 MB, free: 7.164 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3723, allocations: 4.062 kB / 400.4 MB, free: 7.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007818/0.3731, allocations: 0.6953 MB / 401.1 MB, free: 6.703 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008299/0.3739, allocations: 188.2 kB / 401.3 MB, free: 6.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002858/0.3768, allocations: 2.56 MB / 403.9 MB, free: 3.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004194/0.3772, allocations: 1.104 MB / 405 MB, free: 2.777 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003337/0.3775, allocations: 123.6 kB / 405.1 MB, free: 2.652 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001657/0.3777, allocations: 71.42 kB / 405.2 MB, free: 2.582 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3777, allocations: 0 / 405.2 MB, free: 2.582 MB / 302.1 MB Notification: Performance of Templates: time 0.01881/0.3965, allocations: 10.96 MB / 416.1 MB, free: 7.711 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 -s cvode -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/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