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.0009991/0.0009991, allocations: 195.3 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.234/1.234, allocations: 226.5 MB / 244.7 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000794/0.0007944, allocations: 107.3 kB / 296.8 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002382/0.0002384, allocations: 8 kB / 356.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.204/0.2043, allocations: 51.3 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.004189/0.2085, allocations: 5.428 MB / 413.5 MB, free: 22.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002876/0.2114, allocations: 2.181 MB / 415.6 MB, free: 20.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004089/0.2119, allocations: 27.88 kB / 415.7 MB, free: 20.06 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005298/0.2124, allocations: 358.2 kB / 416 MB, free: 19.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007266/0.2131, allocations: 409.6 kB / 416.4 MB, free: 19.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007602/0.2139, allocations: 363.4 kB / 416.8 MB, free: 18.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001091/0.215, allocations: 1.355 MB / 418.1 MB, free: 17.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005868/0.2156, allocations: 495.5 kB / 418.6 MB, free: 17.08 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005338/0.2161, allocations: 454 kB / 419.1 MB, free: 16.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004416/0.2166, allocations: 0.5249 MB / 419.6 MB, free: 16.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.022e-05/0.2167, allocations: 52 kB / 419.6 MB, free: 16.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002333/0.2169, allocations: 99.91 kB / 419.7 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001373/0.2171, allocations: 211 kB / 419.9 MB, free: 15.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003543/0.2174, allocations: 0.5495 MB / 420.5 MB, free: 15.19 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007992/0.2182, allocations: 1.24 MB / 421.7 MB, free: 13.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.2183, allocations: 4 kB / 421.7 MB, free: 13.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2183, allocations: 0 / 421.7 MB, free: 13.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.495e-05/0.2183, allocations: 4 kB / 421.7 MB, free: 13.94 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.001898/0.2202, allocations: 1.337 MB / 423.1 MB, free: 12.55 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.2202, allocations: 15.97 kB / 423.1 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003178/0.2206, allocations: 155.1 kB / 423.2 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008552/0.2214, allocations: 0.7431 MB / 424 MB, free: 11.6 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.928e-05/0.2215, allocations: 78.12 kB / 424.1 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001158/0.2216, allocations: 103.9 kB / 424.2 MB, free: 11.42 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001335/0.223, allocations: 0.9079 MB / 425.1 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.852e-05/0.223, allocations: 7.891 kB / 425.1 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.706e-05/0.2231, allocations: 48 kB / 425.1 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/0.2231, allocations: 20 kB / 425.1 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.2242, allocations: 0.6363 MB / 425.8 MB, free: 9.785 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003855/0.228, allocations: 3.244 MB / 429 MB, free: 6.414 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001082/0.2291, allocations: 0.6195 MB / 429.6 MB, free: 5.789 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004176/0.2296, allocations: 298.7 kB / 429.9 MB, free: 5.496 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.506e-05/0.2296, allocations: 20.62 kB / 430 MB, free: 5.477 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005728/0.2302, allocations: 340.4 kB / 430.3 MB, free: 5.133 MB / 298.7 MB Notification: Performance of pre-optimization done (n=80): time 2.945e-06/0.2302, allocations: 0 / 430.3 MB, free: 5.133 MB / 298.7 MB Notification: Performance of matching and sorting (n=100): time 0.004798/0.235, allocations: 3.08 MB / 433.4 MB, free: 1.977 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.937e-05/0.2351, allocations: 64.41 kB / 433.4 MB, free: 1.902 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008667/0.2359, allocations: 0.9313 MB / 434.4 MB, free: 0.9648 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.1e-05/0.236, allocations: 45.7 kB / 434.4 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002457/0.2362, allocations: 0.5195 MB / 434.9 MB, free: 396 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001492/0.2364, allocations: 346.9 kB / 435.3 MB, free: 44 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.627e-05/0.2364, allocations: 23.94 kB / 435.3 MB, free: 20 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.2366, allocations: 346 kB / 435.6 MB, free: 15.67 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000524/0.2371, allocations: 269.9 kB / 435.9 MB, free: 15.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005938/0.2377, allocations: 425.5 kB / 436.3 MB, free: 14.94 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001224/0.239, allocations: 0.7511 MB / 437.1 MB, free: 14.14 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.239, allocations: 0 / 437.1 MB, free: 14.14 MB / 314.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001774/0.2408, allocations: 1.025 MB / 438.1 MB, free: 13.1 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.2408, allocations: 8 kB / 438.1 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.2408, allocations: 4 kB / 438.1 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004209/0.2412, allocations: 150 kB / 438.2 MB, free: 12.94 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007581/0.242, allocations: 211.7 kB / 438.4 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003559/0.2456, allocations: 3.611 MB / 442.1 MB, free: 8.855 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005324/0.2461, allocations: 36.05 kB / 442.1 MB, free: 8.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.07e-05/0.2462, allocations: 36 kB / 442.1 MB, free: 8.785 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.0004556/0.2467, allocations: 297.6 kB / 442.4 MB, free: 8.484 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001208/0.2468, allocations: 106.7 kB / 442.5 MB, free: 8.379 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001667/0.2485, allocations: 0.9595 MB / 443.5 MB, free: 7.402 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.819e-06/0.2485, allocations: 12 kB / 443.5 MB, free: 7.391 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.2485, allocations: 3.984 kB / 443.5 MB, free: 7.387 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.2485, allocations: 11.97 kB / 443.5 MB, free: 7.375 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003667/0.2522, allocations: 2.502 MB / 446 MB, free: 4.754 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.2522, allocations: 4 kB / 446 MB, free: 4.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007435/0.253, allocations: 183.7 kB / 446.2 MB, free: 4.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003478/0.2533, allocations: 118 kB / 446.3 MB, free: 4.449 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.924e-05/0.2534, allocations: 31.98 kB / 446.3 MB, free: 4.418 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002795/0.2562, allocations: 3.292 MB / 449.6 MB, free: 0.8594 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.584e-06/0.2562, allocations: 3.938 kB / 449.6 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002264/0.2585, allocations: 1.438 MB / 451.1 MB, free: 15.36 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003547/0.2589, allocations: 247.6 kB / 451.3 MB, free: 15.1 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.259, allocations: 28 kB / 451.3 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003762/0.2593, allocations: 23.98 kB / 451.4 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000143/0.2595, allocations: 76.94 kB / 451.4 MB, free: 14.97 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.707e-05/0.2596, allocations: 31.92 kB / 451.5 MB, free: 14.94 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007816/0.2604, allocations: 0.6669 MB / 452.1 MB, free: 14.28 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2604, allocations: 4 kB / 452.1 MB, free: 14.28 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008527/0.2612, allocations: 244.1 kB / 452.4 MB, free: 14.04 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.0009112/0.2621, allocations: 436.7 kB / 452.8 MB, free: 13.75 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001763/0.2639, allocations: 1.038 MB / 453.8 MB, free: 12.68 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.2639, allocations: 4.062 kB / 453.9 MB, free: 12.68 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001039/0.265, allocations: 0.6902 MB / 454.5 MB, free: 11.96 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001398/0.2664, allocations: 177.3 kB / 454.7 MB, free: 11.79 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004534/0.2709, allocations: 3.155 MB / 457.9 MB, free: 8.562 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000668/0.2716, allocations: 1.104 MB / 459 MB, free: 7.434 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002748/0.2719, allocations: 83.41 kB / 459.1 MB, free: 7.352 MB / 330.7 MB Notification: Performance of SimCode: time 9.52e-07/0.2719, allocations: 0 / 459.1 MB, free: 7.352 MB / 330.7 MB Notification: Performance of Templates: time 0.02804/0.3, allocations: 22.85 MB / 481.9 MB, free: 496 kB / 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