Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: 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.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Vehicle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001334/0.001334, allocations: 122.6 kB / 18.46 MB, free: 4.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001377/0.001377, allocations: 207.7 kB / 19.41 MB, free: 3.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.429/1.429, allocations: 227.7 MB / 247.9 MB, free: 10.23 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001894/0.001894, allocations: 67.89 kB / 359.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/0.2524, allocations: 50.54 MB / 410.2 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.007985/0.2604, allocations: 6.244 MB / 416.4 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004574/0.265, allocations: 2.302 MB / 418.7 MB, free: 8.863 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000719/0.2657, allocations: 31.88 kB / 418.8 MB, free: 8.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008606/0.2666, allocations: 417.3 kB / 419.2 MB, free: 8.422 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001253/0.2678, allocations: 0.5046 MB / 419.7 MB, free: 7.914 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001034/0.2689, allocations: 495.1 kB / 420.2 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001641/0.2705, allocations: 1.5 MB / 421.7 MB, free: 5.926 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005842/0.2711, allocations: 376.7 kB / 422 MB, free: 5.531 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006974/0.2718, allocations: 0.5642 MB / 422.6 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007169/0.2725, allocations: 0.6495 MB / 423.3 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001645/0.2727, allocations: 132 kB / 423.4 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002945/0.273, allocations: 176 kB / 423.6 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002778/0.2732, allocations: 314.8 kB / 423.9 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005926/0.2738, allocations: 0.6449 MB / 424.5 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001742/0.2756, allocations: 1.657 MB / 426.2 MB, free: 1.395 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/0.2756, allocations: 4 kB / 426.2 MB, free: 1.391 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2756, allocations: 0 / 426.2 MB, free: 1.391 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.877e-05/0.2756, allocations: 0 / 426.2 MB, free: 1.391 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.002909/0.2785, allocations: 1.608 MB / 427.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.2785, allocations: 8.031 kB / 427.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004204/0.279, allocations: 164 kB / 427.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001312/0.2803, allocations: 0.7712 MB / 428.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.948e-05/0.2803, allocations: 82.06 kB / 428.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001697/0.2805, allocations: 111.9 kB / 428.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001698/0.2822, allocations: 0.9118 MB / 429.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.215e-05/0.2823, allocations: 7.953 kB / 429.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.697e-05/0.2823, allocations: 40 kB / 429.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.321e-05/0.2824, allocations: 24 kB / 429.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001308/0.2837, allocations: 0.6363 MB / 430.5 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005123/0.2888, allocations: 3.21 MB / 433.7 MB, free: 9.578 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001391/0.2902, allocations: 0.5687 MB / 434.3 MB, free: 8.996 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005118/0.2907, allocations: 270.7 kB / 434.6 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.761e-05/0.2908, allocations: 16.58 kB / 434.6 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006659/0.2914, allocations: 344.4 kB / 434.9 MB, free: 8.371 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.644e-06/0.2914, allocations: 4 kB / 434.9 MB, free: 8.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=100): time 0.006345/0.2978, allocations: 3.083 MB / 438 MB, free: 5.211 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.999e-05/0.2978, allocations: 60.41 kB / 438.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001211/0.299, allocations: 0.9509 MB / 439 MB, free: 4.184 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.032e-05/0.2991, allocations: 41.7 kB / 439.1 MB, free: 4.137 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004615/0.2996, allocations: 0.5166 MB / 439.6 MB, free: 3.613 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003071/0.2999, allocations: 368.9 kB / 439.9 MB, free: 3.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000234/0.3001, allocations: 158.6 kB / 440.1 MB, free: 3.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.3003, allocations: 349.9 kB / 440.4 MB, free: 2.742 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005395/0.3008, allocations: 269.9 kB / 440.7 MB, free: 2.477 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007035/0.3015, allocations: 429.4 kB / 441.1 MB, free: 2.004 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001296/0.3028, allocations: 0.7483 MB / 441.9 MB, free: 1.203 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.3028, allocations: 0 / 441.9 MB, free: 1.203 MB / 350.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001901/0.3047, allocations: 1.033 MB / 442.9 MB, free: 164 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.3047, allocations: 4 kB / 442.9 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.3047, allocations: 4 kB / 442.9 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004606/0.3052, allocations: 150 kB / 443.1 MB, free: 0 / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00081/0.306, allocations: 207.8 kB / 443.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004222/0.3102, allocations: 3.982 MB / 447.2 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005207/0.3107, allocations: 31.98 kB / 447.3 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.23e-05/0.3108, allocations: 36 kB / 447.3 MB, free: 11.46 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.0004913/0.3113, allocations: 306.1 kB / 447.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/0.3115, allocations: 111.3 kB / 447.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001892/0.3133, allocations: 0.9557 MB / 448.7 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-05/0.3134, allocations: 8 kB / 448.7 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.334e-05/0.3134, allocations: 7.984 kB / 448.7 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.3134, allocations: 7.922 kB / 448.7 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004033/0.3174, allocations: 2.486 MB / 451.2 MB, free: 7.449 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.575e-06/0.3174, allocations: 4 kB / 451.2 MB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007797/0.3182, allocations: 183.6 kB / 451.4 MB, free: 7.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003674/0.3186, allocations: 121.6 kB / 451.5 MB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.72e-05/0.3186, allocations: 24.17 kB / 451.5 MB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003471/0.3221, allocations: 3.601 MB / 455.1 MB, free: 3.238 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.3221, allocations: 4 kB / 455.1 MB, free: 3.234 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002502/0.3246, allocations: 1.428 MB / 456.5 MB, free: 1.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003825/0.325, allocations: 248.3 kB / 456.8 MB, free: 1.488 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001286/0.3251, allocations: 32.39 kB / 456.8 MB, free: 1.457 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004126/0.3255, allocations: 24 kB / 456.8 MB, free: 1.434 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001447/0.3257, allocations: 76.92 kB / 456.9 MB, free: 1.355 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.742e-05/0.3257, allocations: 28 kB / 456.9 MB, free: 1.328 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000867/0.3266, allocations: 0.6786 MB / 457.6 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3266, allocations: 3.938 kB / 457.6 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009267/0.3275, allocations: 236 kB / 457.8 MB, free: 428 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.001614/0.3291, allocations: 454.2 kB / 458.3 MB, free: 132 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001979/0.3311, allocations: 1.002 MB / 459.3 MB, free: 15.1 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3311, allocations: 3.938 kB / 459.3 MB, free: 15.1 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00112/0.3322, allocations: 0.6716 MB / 460 MB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009787/0.3332, allocations: 184.1 kB / 460.1 MB, free: 14.22 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004241/0.3375, allocations: 2.618 MB / 462.8 MB, free: 11.54 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008807/0.3383, allocations: 1.104 MB / 463.9 MB, free: 10.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004217/0.3388, allocations: 119.6 kB / 464 MB, free: 10.29 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002021/0.339, allocations: 75.42 kB / 464.1 MB, free: 10.21 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.339, allocations: 0 / 464.1 MB, free: 10.21 MB / 382.1 MB Notification: Performance of Templates: time 0.02305/0.362, allocations: 11.32 MB / 475.4 MB, free: 14.98 MB / 398.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Vehicle.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Vehicle.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Vehicle.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Vehicle.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Vehicle.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Vehicle -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Vehicle.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Vehicle_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Vehicle/Vehicle.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Vehicle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches