Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Vehicle.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.Translational.Examples.Vehicle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009342/0.0009342, allocations: 195 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.199/1.199, allocations: 226.5 MB / 244.3 MB, free: 8.312 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007511/0.0007512, allocations: 103.8 kB / 296.4 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001977/0.0001978, allocations: 12 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1783/0.1785, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.004011/0.1826, allocations: 5.426 MB / 412.9 MB, free: 22.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002695/0.1853, allocations: 2.172 MB / 415.1 MB, free: 20.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003684/0.1857, allocations: 27.88 kB / 415.1 MB, free: 20.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005094/0.1862, allocations: 362.2 kB / 415.5 MB, free: 19.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006019/0.1868, allocations: 413.6 kB / 415.9 MB, free: 19.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006887/0.1875, allocations: 354.7 kB / 416.2 MB, free: 19.1 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008178/0.1883, allocations: 1.336 MB / 417.6 MB, free: 17.76 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004055/0.1887, allocations: 394.8 kB / 417.9 MB, free: 17.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003998/0.1891, allocations: 450 kB / 418.4 MB, free: 16.92 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003856/0.1895, allocations: 0.5171 MB / 418.9 MB, free: 16.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.343e-05/0.1896, allocations: 52 kB / 418.9 MB, free: 16.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000203/0.1898, allocations: 95.98 kB / 419 MB, free: 16.25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001247/0.19, allocations: 219 kB / 419.3 MB, free: 16.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001331/0.1901, allocations: 253 kB / 419.5 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006709/0.1908, allocations: 1.248 MB / 420.7 MB, free: 14.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.1908, allocations: 0 / 420.7 MB, free: 14.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1908, allocations: 0 / 420.7 MB, free: 14.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.257e-05/0.1908, allocations: 0 / 420.7 MB, free: 14.54 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.001806/0.1926, allocations: 1.352 MB / 422.1 MB, free: 13.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.1927, allocations: 12.03 kB / 422.1 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000293/0.193, allocations: 154.2 kB / 422.3 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000761/0.1937, allocations: 0.7191 MB / 423 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.106e-05/0.1938, allocations: 74 kB / 423.1 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001037/0.1939, allocations: 103.9 kB / 423.2 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.1951, allocations: 0.904 MB / 424.1 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.435e-05/0.1952, allocations: 11.84 kB / 424.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.375e-05/0.1953, allocations: 40 kB / 424.1 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.349e-05/0.1953, allocations: 27.94 kB / 424.1 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001022/0.1963, allocations: 0.6364 MB / 424.8 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003354/0.1997, allocations: 3.24 MB / 428 MB, free: 7.023 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001129/0.2008, allocations: 0.6234 MB / 428.6 MB, free: 6.391 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004164/0.2012, allocations: 298.7 kB / 428.9 MB, free: 6.098 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.706e-05/0.2013, allocations: 16.62 kB / 428.9 MB, free: 6.078 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005387/0.2018, allocations: 344.3 kB / 429.3 MB, free: 5.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=80): time 3.016e-06/0.2019, allocations: 4 kB / 429.3 MB, free: 5.727 MB / 298.7 MB Notification: Performance of matching and sorting (n=100): time 0.004658/0.2065, allocations: 3.072 MB / 432.4 MB, free: 2.582 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.199e-05/0.2066, allocations: 72.3 kB / 432.4 MB, free: 2.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008272/0.2074, allocations: 0.939 MB / 433.4 MB, free: 1.555 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.274e-05/0.2075, allocations: 41.7 kB / 433.4 MB, free: 1.508 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002451/0.2077, allocations: 0.5157 MB / 433.9 MB, free: 0.9844 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000149/0.2079, allocations: 343 kB / 434.3 MB, free: 0.6445 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.405e-05/0.2079, allocations: 20 kB / 434.3 MB, free: 0.625 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.074e-05/0.208, allocations: 345.9 kB / 434.6 MB, free: 288 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004268/0.2084, allocations: 269.9 kB / 434.9 MB, free: 16 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005822/0.209, allocations: 429.4 kB / 435.3 MB, free: 15.55 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005869/0.2096, allocations: 334.9 kB / 435.6 MB, free: 15.22 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.2096, allocations: 0 / 435.6 MB, free: 15.22 MB / 314.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001738/0.2113, allocations: 1.033 MB / 436.7 MB, free: 14.17 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.402e-05/0.2114, allocations: 12.06 kB / 436.7 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.2114, allocations: 4 kB / 436.7 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004561/0.2119, allocations: 141.6 kB / 436.8 MB, free: 14.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007692/0.2127, allocations: 207.7 kB / 437 MB, free: 13.81 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003978/0.2166, allocations: 3.612 MB / 440.6 MB, free: 9.934 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007306/0.2174, allocations: 31.98 kB / 440.7 MB, free: 9.902 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001229/0.2176, allocations: 36 kB / 440.7 MB, free: 9.867 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 ($whenCondition1,$PRE.timeTableTorqueInclination.nextTimeEvent,timeTableTorqueInclination.nextTimeEvent,$PRE.timeTableTorqueInclination.nextTimeEventScaled,timeTableTorqueInclination.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006491/0.2182, allocations: 301.6 kB / 441 MB, free: 9.562 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002105/0.2184, allocations: 106.7 kB / 441.1 MB, free: 9.457 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001847/0.2203, allocations: 0.9596 MB / 442.1 MB, free: 8.484 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.489e-05/0.2203, allocations: 19.97 kB / 442.1 MB, free: 8.465 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.2203, allocations: 0 / 442.1 MB, free: 8.465 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.2204, allocations: 3.984 kB / 442.1 MB, free: 8.461 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003922/0.2243, allocations: 2.505 MB / 444.6 MB, free: 5.836 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/0.2243, allocations: 4 kB / 444.6 MB, free: 5.832 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007858/0.2251, allocations: 188.2 kB / 444.8 MB, free: 5.648 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003525/0.2255, allocations: 117.6 kB / 444.9 MB, free: 5.527 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.526e-05/0.2255, allocations: 31.98 kB / 444.9 MB, free: 5.496 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002819/0.2284, allocations: 3.291 MB / 448.2 MB, free: 1.938 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-05/0.2284, allocations: 3.938 kB / 448.2 MB, free: 1.934 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002277/0.2307, allocations: 1.438 MB / 449.6 MB, free: 448 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000412/0.2311, allocations: 247.6 kB / 449.9 MB, free: 180 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001674/0.2313, allocations: 28.09 kB / 449.9 MB, free: 152 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005031/0.2318, allocations: 27.92 kB / 449.9 MB, free: 124 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001374/0.2319, allocations: 76.86 kB / 450 MB, free: 48 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.52e-05/0.232, allocations: 31.98 kB / 450 MB, free: 16 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009098/0.2329, allocations: 0.667 MB / 450.7 MB, free: 15.35 MB / 330.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2329, allocations: 0 / 450.7 MB, free: 15.35 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009471/0.2339, allocations: 244.1 kB / 451 MB, free: 15.11 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008663/0.2348, allocations: 441.1 kB / 451.4 MB, free: 14.81 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001867/0.2366, allocations: 1.03 MB / 452.4 MB, free: 13.75 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.2367, allocations: 4 kB / 452.4 MB, free: 13.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001029/0.2377, allocations: 0.6987 MB / 453.1 MB, free: 13.03 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001047/0.2387, allocations: 162.3 kB / 453.3 MB, free: 12.87 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004305/0.2431, allocations: 3.155 MB / 456.4 MB, free: 9.637 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007988/0.2439, allocations: 1.108 MB / 457.5 MB, free: 8.5 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002547/0.2442, allocations: 83.41 kB / 457.6 MB, free: 8.418 MB / 330.7 MB Notification: Performance of SimCode: time 6.61e-07/0.2442, allocations: 0 / 457.6 MB, free: 8.418 MB / 330.7 MB Notification: Performance of Templates: time 0.02684/0.271, allocations: 22.87 MB / 480.5 MB, free: 1.539 MB / 346.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Vehicle.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Vehicle.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Vehicle.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Vehicle.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Vehicle.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Vehicle --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Vehicle.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Vehicle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches