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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Vehicle,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Vehicle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Vehicle,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Vehicle",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 105.5 kB / 16.92 MB, free: 6.145 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.001377/0.001377, allocations: 191.5 kB / 17.85 MB, free: 5.309 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.454/1.454, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001203, allocations: 42 kB / 300.7 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09673/0.09795, allocations: 49.45 MB / 350.2 MB, free: 4.348 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.009784/0.1078, allocations: 6.222 MB / 356.4 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005596/0.1135, allocations: 2.138 MB / 358.5 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001502/0.115, allocations: 31.88 kB / 358.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001266/0.1163, allocations: 421.4 kB / 359 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002509/0.1189, allocations: 456.9 kB / 359.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001856/0.1207, allocations: 0.5131 MB / 359.9 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003112/0.1239, allocations: 1.48 MB / 361.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00145/0.1253, allocations: 0.5473 MB / 362 MB, free: 8.477 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001141/0.1265, allocations: 0.5448 MB / 362.5 MB, free: 7.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001367/0.1279, allocations: 0.6495 MB / 363.1 MB, free: 7.277 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004204/0.1283, allocations: 132 kB / 363.3 MB, free: 7.148 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007764/0.1291, allocations: 171.9 kB / 363.4 MB, free: 6.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006306/0.1297, allocations: 306.9 kB / 363.7 MB, free: 6.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001465/0.1312, allocations: 0.645 MB / 364.4 MB, free: 6.031 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00204/0.1333, allocations: 1.616 MB / 366 MB, free: 4.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.1333, allocations: 0 / 366 MB, free: 4.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1333, allocations: 0 / 366 MB, free: 4.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.896e-05/0.1333, allocations: 0 / 366 MB, free: 4.41 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.00306/0.1364, allocations: 1.553 MB / 367.6 MB, free: 2.809 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.1365, allocations: 8.031 kB / 367.6 MB, free: 2.801 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002652/0.1367, allocations: 148.4 kB / 367.7 MB, free: 2.648 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003184/0.1371, allocations: 139.2 kB / 367.8 MB, free: 2.512 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001117/0.1382, allocations: 0.747 MB / 368.6 MB, free: 1.723 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.758e-05/0.1383, allocations: 81.94 kB / 368.7 MB, free: 1.641 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001525/0.1384, allocations: 107.9 kB / 368.8 MB, free: 1.535 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001633/0.1401, allocations: 0.9117 MB / 369.7 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.018e-05/0.1401, allocations: 7.906 kB / 369.7 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001088/0.1402, allocations: 40 kB / 369.7 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.976e-05/0.1403, allocations: 20 kB / 369.8 MB, free: 0.543 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1698/0.3101, allocations: 0.6384 MB / 370.4 MB, free: 25.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005165/0.3153, allocations: 3.232 MB / 373.6 MB, free: 23.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001386/0.3167, allocations: 0.6169 MB / 374.2 MB, free: 23.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004992/0.3173, allocations: 298.9 kB / 374.5 MB, free: 23.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.242e-05/0.3173, allocations: 18.25 kB / 374.6 MB, free: 23.38 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006666/0.318, allocations: 346.9 kB / 374.9 MB, free: 23.22 MB / 302.1 MB Notification: Performance of pre-optimization done (n=80): time 3.236e-06/0.318, allocations: 0 / 374.9 MB, free: 23.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=100): time 0.005732/0.3238, allocations: 3.06 MB / 378 MB, free: 21.6 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.192e-05/0.3238, allocations: 62.53 kB / 378 MB, free: 21.54 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00113/0.325, allocations: 0.9364 MB / 378.9 MB, free: 21.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.856e-05/0.325, allocations: 40.98 kB / 379 MB, free: 21.13 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004666/0.3255, allocations: 0.5086 MB / 379.5 MB, free: 20.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002088/0.3257, allocations: 345.6 kB / 379.8 MB, free: 20.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002187/0.3259, allocations: 161 kB / 380 MB, free: 20.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.146e-05/0.326, allocations: 342.5 kB / 380.3 MB, free: 20.06 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004772/0.3265, allocations: 271.7 kB / 380.6 MB, free: 19.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005656/0.3271, allocations: 429.1 kB / 381 MB, free: 19.7 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001172/0.3283, allocations: 0.7431 MB / 381.8 MB, free: 19.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.3283, allocations: 5.891 kB / 381.8 MB, free: 19.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001984/0.3303, allocations: 1.029 MB / 382.8 MB, free: 18.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.3303, allocations: 9.781 kB / 382.8 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/0.3303, allocations: 4.75 kB / 382.8 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004856/0.3308, allocations: 147.5 kB / 382.9 MB, free: 18.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007755/0.3316, allocations: 210.9 kB / 383.2 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003178/0.3348, allocations: 3.99 MB / 387.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005883/0.3354, allocations: 31.41 kB / 387.2 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.821e-05/0.3355, allocations: 38.73 kB / 387.2 MB, free: 15.11 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.000554/0.336, allocations: 305.2 kB / 387.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001586/0.3362, allocations: 105.3 kB / 387.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002183/0.3384, allocations: 0.9501 MB / 388.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.169e-05/0.3384, allocations: 9.25 kB / 388.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.3384, allocations: 7.828 kB / 388.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/0.3384, allocations: 8.922 kB / 388.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00413/0.3426, allocations: 2.495 MB / 391.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.201e-06/0.3426, allocations: 384 / 391.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007652/0.3434, allocations: 184.4 kB / 391.3 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003746/0.3438, allocations: 124.9 kB / 391.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.49e-05/0.3438, allocations: 27.98 kB / 391.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002402/0.3462, allocations: 3.605 MB / 395 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.3462, allocations: 5.734 kB / 395 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002209/0.3485, allocations: 1.423 MB / 396.4 MB, free: 8.742 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002913/0.3488, allocations: 246.2 kB / 396.7 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001317/0.3489, allocations: 24.25 kB / 396.7 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000507/0.3494, allocations: 21.62 kB / 396.7 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001533/0.3496, allocations: 81.86 kB / 396.8 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.29e-05/0.3496, allocations: 33.98 kB / 396.8 MB, free: 8.434 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007695/0.3504, allocations: 0.6618 MB / 397.5 MB, free: 8.086 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3504, allocations: 0 / 397.5 MB, free: 8.086 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001078/0.3515, allocations: 239.1 kB / 397.7 MB, free: 8.055 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.003048/0.3546, allocations: 2.328 MB / 400.1 MB, free: 6.523 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002167/0.3568, allocations: 1.083 MB / 401.2 MB, free: 5.891 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3568, allocations: 0 / 401.2 MB, free: 5.891 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008043/0.3576, allocations: 0.6864 MB / 401.8 MB, free: 5.254 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009688/0.3586, allocations: 188.4 kB / 402 MB, free: 5.082 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01156/0.3702, allocations: 9.261 MB / 411.3 MB, free: 11.39 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006728/0.3709, allocations: 1.096 MB / 412.4 MB, free: 10.26 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004312/0.3713, allocations: 123.5 kB / 412.5 MB, free: 10.13 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006397/0.372, allocations: 455.2 kB / 412.9 MB, free: 9.691 MB / 318.1 MB Notification: Performance of SimCode: time 3.326e-06/0.372, allocations: 0 / 412.9 MB, free: 9.691 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1708/0.5428, allocations: 20.72 MB / 433.7 MB, free: 5.168 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.21/10.75, allocations: 3.984 kB / 433.7 MB, free: 5.164 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Vehicle_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Vehicle.fmu > 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