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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009999/0.0009999, allocations: 96.95 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008806/0.0008809, allocations: 43.94 kB / 350 MB, free: 60 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2416/0.2425, allocations: 49.43 MB / 399.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.008258/0.2508, allocations: 6.21 MB / 405.7 MB, free: 27.12 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004129/0.255, allocations: 2.104 MB / 407.8 MB, free: 25.01 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007169/0.2557, allocations: 27.88 kB / 407.8 MB, free: 24.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008763/0.2566, allocations: 370.2 kB / 408.2 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001146/0.2578, allocations: 393.6 kB / 408.5 MB, free: 24.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001281/0.2591, allocations: 465.8 kB / 409 MB, free: 23.78 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001579/0.2607, allocations: 1.418 MB / 410.4 MB, free: 22.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000897/0.2616, allocations: 491.6 kB / 410.9 MB, free: 21.85 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007732/0.2624, allocations: 493.8 kB / 411.4 MB, free: 21.37 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007583/0.2632, allocations: 0.6143 MB / 412 MB, free: 20.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000183/0.2634, allocations: 72 kB / 412.1 MB, free: 20.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003293/0.2637, allocations: 108 kB / 412.2 MB, free: 20.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002249/0.2639, allocations: 250.8 kB / 412.4 MB, free: 20.33 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005402/0.2645, allocations: 0.5864 MB / 413 MB, free: 19.74 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001422/0.2659, allocations: 1.547 MB / 414.6 MB, free: 18.19 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.266, allocations: 4 kB / 414.6 MB, free: 18.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.266, allocations: 4 kB / 414.6 MB, free: 18.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.192e-05/0.266, allocations: 0 / 414.6 MB, free: 18.18 MB / 298.7 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.003244/0.2693, allocations: 1.554 MB / 416.1 MB, free: 16.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.2693, allocations: 16.03 kB / 416.1 MB, free: 16.56 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002528/0.2696, allocations: 147.2 kB / 416.3 MB, free: 16.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001301/0.2709, allocations: 0.7431 MB / 417 MB, free: 15.63 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.117e-05/0.271, allocations: 78.12 kB / 417.1 MB, free: 15.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001823/0.2712, allocations: 107.9 kB / 417.2 MB, free: 15.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002039/0.2732, allocations: 0.904 MB / 418.1 MB, free: 14.53 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.504e-05/0.2733, allocations: 11.91 kB / 418.1 MB, free: 14.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001039/0.2734, allocations: 44 kB / 418.2 MB, free: 14.47 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.242e-05/0.2734, allocations: 24 kB / 418.2 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001754/0.2752, allocations: 0.6402 MB / 418.8 MB, free: 13.81 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005762/0.281, allocations: 3.236 MB / 422.1 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001765/0.2828, allocations: 0.6121 MB / 422.7 MB, free: 9.824 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007122/0.2835, allocations: 302.7 kB / 423 MB, free: 9.527 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.832e-05/0.2836, allocations: 16.64 kB / 423 MB, free: 9.512 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009138/0.2845, allocations: 344.4 kB / 423.3 MB, free: 9.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=80): time 4.458e-06/0.2845, allocations: 0 / 423.3 MB, free: 9.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=100): time 0.007563/0.2921, allocations: 3.051 MB / 426.4 MB, free: 6.031 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/0.2922, allocations: 60.41 kB / 426.4 MB, free: 5.961 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001362/0.2935, allocations: 0.939 MB / 427.4 MB, free: 5.012 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.801e-05/0.2936, allocations: 41.7 kB / 427.4 MB, free: 4.965 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004053/0.294, allocations: 0.5117 MB / 427.9 MB, free: 4.445 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002506/0.2943, allocations: 343 kB / 428.3 MB, free: 4.105 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002864/0.2946, allocations: 162.5 kB / 428.4 MB, free: 3.941 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.272e-05/0.2947, allocations: 345.9 kB / 428.7 MB, free: 3.598 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007276/0.2954, allocations: 277.8 kB / 429 MB, free: 3.324 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008047/0.2963, allocations: 425.5 kB / 429.4 MB, free: 2.859 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00158/0.2978, allocations: 0.7366 MB / 430.2 MB, free: 2.074 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.2979, allocations: 4 kB / 430.2 MB, free: 2.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002322/0.3002, allocations: 1.025 MB / 431.2 MB, free: 1.027 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/0.3002, allocations: 8 kB / 431.2 MB, free: 1.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.3003, allocations: 4 kB / 431.2 MB, free: 1.016 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005638/0.3008, allocations: 154.6 kB / 431.4 MB, free: 0.8594 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001116/0.302, allocations: 203.7 kB / 431.6 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004983/0.307, allocations: 3.621 MB / 435.2 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008569/0.3078, allocations: 31.98 kB / 435.2 MB, free: 12.74 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.672e-05/0.308, allocations: 32 kB / 435.2 MB, free: 12.71 MB / 314.7 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.0007677/0.3087, allocations: 305.6 kB / 435.5 MB, free: 12.4 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002153/0.309, allocations: 106.7 kB / 435.6 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00266/0.3116, allocations: 0.9556 MB / 436.6 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.731e-05/0.3117, allocations: 16.03 kB / 436.6 MB, free: 11.31 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-05/0.3117, allocations: 7.922 kB / 436.6 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.39e-05/0.3117, allocations: 11.98 kB / 436.6 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005731/0.3175, allocations: 2.482 MB / 439.1 MB, free: 8.691 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/0.3175, allocations: 12.06 kB / 439.1 MB, free: 8.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001206/0.3187, allocations: 187.7 kB / 439.3 MB, free: 8.496 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005612/0.3193, allocations: 117.6 kB / 439.4 MB, free: 8.375 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.094e-05/0.3194, allocations: 27.98 kB / 439.5 MB, free: 8.348 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004075/0.3235, allocations: 3.292 MB / 442.8 MB, free: 4.785 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.712e-06/0.3235, allocations: 4 kB / 442.8 MB, free: 4.781 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01963/0.3432, allocations: 9.947 MB / 452.7 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003348/0.3435, allocations: 235.8 kB / 452.9 MB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.755e-05/0.3436, allocations: 24 kB / 453 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003893/0.344, allocations: 27.98 kB / 453 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001553/0.3442, allocations: 80.94 kB / 453.1 MB, free: 9.961 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.484e-05/0.3442, allocations: 31.98 kB / 453.1 MB, free: 9.93 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007465/0.345, allocations: 0.6591 MB / 453.8 MB, free: 9.273 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.345, allocations: 0 / 453.8 MB, free: 9.273 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001076/0.3461, allocations: 336 kB / 454.1 MB, free: 8.945 MB / 330.7 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.0009063/0.347, allocations: 453.8 kB / 454.5 MB, free: 8.664 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001769/0.3488, allocations: 1.034 MB / 455.6 MB, free: 7.605 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.3488, allocations: 0 / 455.6 MB, free: 7.605 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/0.3498, allocations: 0.691 MB / 456.2 MB, free: 6.891 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009482/0.3508, allocations: 163.8 kB / 456.4 MB, free: 6.73 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005087/0.3559, allocations: 3.935 MB / 460.3 MB, free: 2.688 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007716/0.3567, allocations: 1.13 MB / 461.5 MB, free: 1.527 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005279/0.3572, allocations: 131.5 kB / 461.6 MB, free: 1.395 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002175/0.3574, allocations: 75.42 kB / 461.7 MB, free: 1.32 MB / 330.7 MB Notification: Performance of SimCode: time 2.094e-06/0.3575, allocations: 0 / 461.7 MB, free: 1.32 MB / 330.7 MB Notification: Performance of Templates: time 0.02174/0.3792, allocations: 12.72 MB / 474.4 MB, free: 4.684 MB / 346.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Vehicle/Vehicle.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches