Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Vehicle,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Vehicle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Vehicle,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Vehicle",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00124/0.00124, allocations: 114.9 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001327/0.001327, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 246.4 MB, free: 9.066 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 64.69 kB / 306.6 MB, free: 0.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09147/0.09279, allocations: 50.53 MB / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.007308/0.1001, allocations: 6.226 MB / 363.3 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004013/0.1042, allocations: 2.252 MB / 365.6 MB, free: 5.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008802/0.1051, allocations: 31.81 kB / 365.6 MB, free: 5.539 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001004/0.1062, allocations: 366.2 kB / 366 MB, free: 5.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001529/0.1077, allocations: 429.6 kB / 366.4 MB, free: 4.758 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001179/0.1089, allocations: 443.4 kB / 366.8 MB, free: 4.324 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001822/0.1108, allocations: 1.492 MB / 368.3 MB, free: 2.824 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009312/0.1117, allocations: 0.5474 MB / 368.8 MB, free: 2.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001036/0.1128, allocations: 0.5603 MB / 369.4 MB, free: 1.688 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009078/0.1137, allocations: 0.6534 MB / 370.1 MB, free: 1.031 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002871/0.114, allocations: 132 kB / 370.2 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004207/0.1144, allocations: 179.9 kB / 370.4 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000297/0.1147, allocations: 302.9 kB / 370.7 MB, free: 440 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1533/0.268, allocations: 0.6516 MB / 371.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002275/0.2703, allocations: 1.618 MB / 372.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.2703, allocations: 0.6562 kB / 372.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2703, allocations: 1.125 kB / 372.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.63e-05/0.2704, allocations: 0 / 372.9 MB, free: 11.21 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.003272/0.2737, allocations: 1.56 MB / 374.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.2738, allocations: 11.59 kB / 374.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001716/0.2739, allocations: 150.4 kB / 374.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004699/0.2744, allocations: 151.4 kB / 374.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001143/0.2756, allocations: 0.7482 MB / 375.5 MB, free: 9.934 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.38e-05/0.2756, allocations: 75.98 kB / 375.6 MB, free: 9.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001611/0.2758, allocations: 110.1 kB / 375.7 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001623/0.2774, allocations: 0.9107 MB / 376.6 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.689e-05/0.2775, allocations: 14.22 kB / 376.7 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.003e-05/0.2776, allocations: 38.39 kB / 376.7 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.213e-05/0.2776, allocations: 24.31 kB / 376.7 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001194/0.2788, allocations: 0.6361 MB / 377.3 MB, free: 9.824 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004378/0.2832, allocations: 3.23 MB / 380.6 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.2844, allocations: 0.6161 MB / 381.2 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004485/0.2849, allocations: 297.5 kB / 381.5 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.054e-05/0.285, allocations: 22.44 kB / 381.5 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006569/0.2856, allocations: 342.5 kB / 381.8 MB, free: 8.051 MB / 302.1 MB Notification: Performance of pre-optimization done (n=80): time 2.445e-06/0.2856, allocations: 0 / 381.8 MB, free: 8.051 MB / 302.1 MB Notification: Performance of matching and sorting (n=100): time 0.005403/0.2911, allocations: 3.057 MB / 384.9 MB, free: 6.438 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.019e-05/0.2911, allocations: 68.06 kB / 385 MB, free: 6.371 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001074/0.2922, allocations: 0.9481 MB / 385.9 MB, free: 6.004 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.821e-05/0.2922, allocations: 41.89 kB / 386 MB, free: 5.961 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002936/0.2925, allocations: 0.5103 MB / 386.5 MB, free: 5.559 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001647/0.2927, allocations: 349.8 kB / 386.8 MB, free: 5.293 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001921/0.2929, allocations: 157.8 kB / 387 MB, free: 5.211 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.52e-05/0.293, allocations: 349.5 kB / 387.3 MB, free: 4.887 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004674/0.2934, allocations: 271.6 kB / 387.6 MB, free: 4.781 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005323/0.294, allocations: 425.7 kB / 388 MB, free: 4.523 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.295, allocations: 0.7449 MB / 388.7 MB, free: 4.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.295, allocations: 1.469 kB / 388.7 MB, free: 4.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001675/0.2967, allocations: 1.033 MB / 389.8 MB, free: 3.656 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.2967, allocations: 9.812 kB / 389.8 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.2968, allocations: 4.188 kB / 389.8 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000415/0.2972, allocations: 151.1 kB / 389.9 MB, free: 3.605 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000747/0.2979, allocations: 206.5 kB / 390.1 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002776/0.3007, allocations: 3.983 MB / 394.1 MB, free: 44 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005024/0.3012, allocations: 33.7 kB / 394.1 MB, free: 24 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.365e-05/0.3013, allocations: 37.73 kB / 394.2 MB, free: 16 kB / 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.0004766/0.3018, allocations: 311.4 kB / 394.5 MB, free: 15.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001443/0.302, allocations: 108 kB / 394.6 MB, free: 15.74 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001737/0.3037, allocations: 0.9569 MB / 395.5 MB, free: 15.31 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.3037, allocations: 11 kB / 395.6 MB, free: 15.31 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/0.3037, allocations: 2.75 kB / 395.6 MB, free: 15.31 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.3038, allocations: 7.312 kB / 395.6 MB, free: 15.31 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003933/0.3077, allocations: 2.504 MB / 398.1 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.3077, allocations: 7.625 kB / 398.1 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007447/0.3085, allocations: 180.6 kB / 398.3 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003611/0.3088, allocations: 124.3 kB / 398.4 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.095e-05/0.3089, allocations: 24.7 kB / 398.4 MB, free: 13.72 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002882/0.3118, allocations: 3.598 MB / 402 MB, free: 10.31 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.3118, allocations: 2.531 kB / 402 MB, free: 10.31 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002037/0.3139, allocations: 1.432 MB / 403.4 MB, free: 9.441 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003636/0.3142, allocations: 241 kB / 403.7 MB, free: 9.223 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001381/0.3144, allocations: 35.86 kB / 403.7 MB, free: 9.199 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000429/0.3148, allocations: 18.53 kB / 403.7 MB, free: 9.188 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001455/0.315, allocations: 79.17 kB / 403.8 MB, free: 9.148 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.401e-05/0.315, allocations: 29.88 kB / 403.8 MB, free: 9.141 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007524/0.3158, allocations: 0.6721 MB / 404.5 MB, free: 8.789 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3158, allocations: 4 kB / 404.5 MB, free: 8.785 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008727/0.3167, allocations: 244.2 kB / 404.7 MB, free: 8.75 MB / 318.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.003202/0.3199, allocations: 2.311 MB / 407.1 MB, free: 7.176 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002162/0.3221, allocations: 1.091 MB / 408.1 MB, free: 6.09 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.3221, allocations: 4.062 kB / 408.1 MB, free: 6.086 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009592/0.3231, allocations: 0.6924 MB / 408.8 MB, free: 5.395 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001007/0.3241, allocations: 187.5 kB / 409 MB, free: 5.219 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01378/0.3379, allocations: 9.719 MB / 418.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007132/0.3386, allocations: 1.108 MB / 419.8 MB, free: 9.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000483/0.3391, allocations: 124.7 kB / 420 MB, free: 9.859 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005894/0.3397, allocations: 451.3 kB / 420.4 MB, free: 9.418 MB / 334.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3397, allocations: 0 / 420.4 MB, free: 9.418 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04666/0.3864, allocations: 20.61 MB / 441 MB, free: 5.055 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002328/0.3867, allocations: 264.7 kB / 441.3 MB, free: 4.695 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.341/2.727, allocations: 0 / 441.3 MB, free: 4.695 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Vehicle.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Vehicle.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Vehicle.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Vehicle.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Vehicle_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Vehicle_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Vehicle.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Vehicle.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Vehicle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches