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.001035/0.001035, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001361/0.001361, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.00124, allocations: 63.48 kB / 307.1 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09843/0.09969, allocations: 50.52 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.00764/0.1074, allocations: 6.244 MB / 363.8 MB, free: 7.719 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004671/0.1121, allocations: 2.29 MB / 366.1 MB, free: 5.422 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002339/0.1145, allocations: 35.81 kB / 366.1 MB, free: 5.387 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001663/0.1163, allocations: 417.4 kB / 366.6 MB, free: 4.977 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002124/0.1184, allocations: 496.7 kB / 367 MB, free: 4.488 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001361/0.1198, allocations: 495.1 kB / 367.5 MB, free: 4.004 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002284/0.1221, allocations: 1.496 MB / 369 MB, free: 2.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009323/0.123, allocations: 0.5396 MB / 369.6 MB, free: 1.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001022/0.1241, allocations: 0.5525 MB / 370.1 MB, free: 1.375 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009774/0.1251, allocations: 0.6534 MB / 370.8 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002845/0.1254, allocations: 128 kB / 370.9 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004619/0.1258, allocations: 176 kB / 371.1 MB, free: 432 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005048/0.1263, allocations: 306.9 kB / 371.4 MB, free: 124 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1859/0.3122, allocations: 0.6422 MB / 372 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002249/0.3145, allocations: 1.629 MB / 373.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.78e-06/0.3145, allocations: 4.812 kB / 373.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3146, allocations: 0 / 373.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.477e-05/0.3146, allocations: 1.344 kB / 373.6 MB, free: 11.01 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.003011/0.3176, allocations: 1.558 MB / 375.2 MB, free: 10.19 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/0.3177, allocations: 10.62 kB / 375.2 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002128/0.3179, allocations: 149.4 kB / 375.3 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000551/0.3184, allocations: 153.4 kB / 375.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001474/0.3199, allocations: 0.7504 MB / 376.2 MB, free: 9.734 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001085/0.3201, allocations: 75.45 kB / 376.3 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001931/0.3203, allocations: 116 kB / 376.4 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001662/0.3219, allocations: 0.9117 MB / 377.3 MB, free: 9.641 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.085e-05/0.322, allocations: 7.906 kB / 377.4 MB, free: 9.637 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001256/0.3221, allocations: 43.75 kB / 377.4 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.966e-05/0.3222, allocations: 24.16 kB / 377.4 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001303/0.3235, allocations: 0.6351 MB / 378.1 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004937/0.3284, allocations: 3.23 MB / 381.3 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001305/0.3298, allocations: 0.617 MB / 381.9 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004656/0.3302, allocations: 295.4 kB / 382.2 MB, free: 7.836 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.434e-05/0.3303, allocations: 18.27 kB / 382.2 MB, free: 7.832 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006782/0.331, allocations: 341.8 kB / 382.5 MB, free: 7.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=80): time 4.008e-06/0.331, allocations: 0 / 382.5 MB, free: 7.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=100): time 0.006848/0.3379, allocations: 3.068 MB / 385.6 MB, free: 6.059 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.503e-05/0.3379, allocations: 62.5 kB / 385.7 MB, free: 5.996 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001299/0.3392, allocations: 0.9444 MB / 386.6 MB, free: 5.633 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.184e-05/0.3393, allocations: 44.89 kB / 386.7 MB, free: 5.586 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003891/0.3397, allocations: 0.5072 MB / 387.2 MB, free: 5.188 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002916/0.34, allocations: 343.4 kB / 387.5 MB, free: 4.922 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003227/0.3403, allocations: 164.2 kB / 387.7 MB, free: 4.836 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.379e-05/0.3404, allocations: 350.3 kB / 388 MB, free: 4.508 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005168/0.341, allocations: 271.2 kB / 388.3 MB, free: 4.406 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005751/0.3415, allocations: 426.1 kB / 388.7 MB, free: 4.145 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001169/0.3427, allocations: 0.7467 MB / 389.4 MB, free: 3.711 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.3427, allocations: 1.469 kB / 389.4 MB, free: 3.711 MB / 302.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001755/0.3445, allocations: 1.035 MB / 390.5 MB, free: 3.277 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.3445, allocations: 7.094 kB / 390.5 MB, free: 3.277 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.3445, allocations: 3.625 kB / 390.5 MB, free: 3.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005486/0.3451, allocations: 145 kB / 390.6 MB, free: 3.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007336/0.3458, allocations: 206.3 kB / 390.8 MB, free: 3.219 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002938/0.3488, allocations: 3.994 MB / 394.8 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005152/0.3493, allocations: 34.47 kB / 394.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001102/0.3494, allocations: 38.05 kB / 394.9 MB, free: 15.63 MB / 318.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.0005616/0.35, allocations: 306.2 kB / 395.2 MB, free: 15.42 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001416/0.3502, allocations: 109.3 kB / 395.3 MB, free: 15.36 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001808/0.352, allocations: 0.9597 MB / 396.3 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.352, allocations: 9.625 kB / 396.3 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.352, allocations: 2.75 kB / 396.3 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.929e-06/0.352, allocations: 2.531 kB / 396.3 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003883/0.3559, allocations: 2.51 MB / 398.8 MB, free: 13.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.3559, allocations: 6.688 kB / 398.8 MB, free: 13.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007486/0.3567, allocations: 180.8 kB / 399 MB, free: 13.42 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003099/0.357, allocations: 126 kB / 399.1 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.607e-05/0.3571, allocations: 29.95 kB / 399.1 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002952/0.36, allocations: 3.596 MB / 402.7 MB, free: 9.926 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.3601, allocations: 5.375 kB / 402.7 MB, free: 9.926 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002105/0.3622, allocations: 1.433 MB / 404.1 MB, free: 9.055 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003261/0.3625, allocations: 237.4 kB / 404.4 MB, free: 8.84 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001169/0.3626, allocations: 30.17 kB / 404.4 MB, free: 8.816 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003931/0.363, allocations: 23.53 kB / 404.4 MB, free: 8.805 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/0.3632, allocations: 73.72 kB / 404.5 MB, free: 8.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.098e-05/0.3632, allocations: 34.23 kB / 404.5 MB, free: 8.758 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008326/0.3641, allocations: 0.6726 MB / 405.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3641, allocations: 0 / 405.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001092/0.3652, allocations: 243.2 kB / 405.4 MB, free: 8.371 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.003429/0.3686, allocations: 2.32 MB / 407.8 MB, free: 6.551 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002407/0.371, allocations: 1.088 MB / 408.9 MB, free: 5.473 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.3711, allocations: 0 / 408.9 MB, free: 5.473 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.3721, allocations: 0.6925 MB / 409.5 MB, free: 4.777 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.3732, allocations: 188.8 kB / 409.7 MB, free: 4.602 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01278/0.386, allocations: 9.267 MB / 419 MB, free: 10.94 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006422/0.3866, allocations: 1.103 MB / 420.1 MB, free: 9.816 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005474/0.3872, allocations: 123.6 kB / 420.2 MB, free: 9.691 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005205/0.3877, allocations: 447.3 kB / 420.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3877, allocations: 0 / 420.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1946/0.5823, allocations: 20.79 MB / 441.5 MB, free: 4.668 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.51/13.09, allocations: 2.188 kB / 441.5 MB, free: 4.668 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