Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Vehicle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 218 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.341/1.341, allocations: 230.6 MB / 258.3 MB, free: 7.73 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Vehicle,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Vehicle",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Vehicle,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Vehicle",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 39.94 kB / 378.5 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2361, allocations: 53.37 MB / 431.9 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.007599/0.2437, allocations: 5.521 MB / 437.4 MB, free: 1.117 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004366/0.2481, allocations: 2.22 MB / 439.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007044/0.2488, allocations: 47.69 kB / 439.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00084/0.2496, allocations: 417.4 kB / 440.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001151/0.2508, allocations: 0.5124 MB / 440.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001018/0.2518, allocations: 499 kB / 441.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001745/0.2536, allocations: 1.503 MB / 442.6 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006116/0.2542, allocations: 379.3 kB / 442.9 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000789/0.255, allocations: 0.5759 MB / 443.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008398/0.2558, allocations: 0.6651 MB / 444.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001813/0.256, allocations: 132 kB / 444.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003534/0.2563, allocations: 180 kB / 444.5 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002996/0.2566, allocations: 314.8 kB / 444.8 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005239/0.2571, allocations: 0.5091 MB / 445.3 MB, free: 9.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001894/0.259, allocations: 1.677 MB / 447 MB, free: 7.477 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.259, allocations: 0 / 447 MB, free: 7.477 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2591, allocations: 4 kB / 447 MB, free: 7.473 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.848e-05/0.2591, allocations: 0 / 447 MB, free: 7.473 MB / 350.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.002834/0.2619, allocations: 1.528 MB / 448.5 MB, free: 5.906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.2619, allocations: 8.031 kB / 448.5 MB, free: 5.898 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.411e-05/0.262, allocations: 26.19 kB / 448.5 MB, free: 5.875 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001636/0.2621, allocations: 156.3 kB / 448.7 MB, free: 5.715 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003961/0.2625, allocations: 160 kB / 448.8 MB, free: 5.559 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001233/0.2638, allocations: 0.6975 MB / 449.5 MB, free: 4.832 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.266e-05/0.2638, allocations: 74 kB / 449.6 MB, free: 4.758 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001553/0.264, allocations: 103.9 kB / 449.7 MB, free: 4.656 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001633/0.2656, allocations: 0.9118 MB / 450.6 MB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.016e-05/0.2657, allocations: 11.95 kB / 450.6 MB, free: 3.719 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.168e-05/0.2658, allocations: 43.98 kB / 450.7 MB, free: 3.676 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.361e-05/0.2658, allocations: 24 kB / 450.7 MB, free: 3.652 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001271/0.267, allocations: 0.6402 MB / 451.3 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00453/0.2716, allocations: 2.757 MB / 454.1 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00134/0.2729, allocations: 0.5821 MB / 454.7 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005025/0.2734, allocations: 270.7 kB / 454.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.397e-05/0.2735, allocations: 12.66 kB / 455 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006616/0.2741, allocations: 344.3 kB / 455.3 MB, free: 14.94 MB / 366.1 MB Notification: Performance of pre-optimization done (n=80): time 2.906e-06/0.2741, allocations: 3.938 kB / 455.3 MB, free: 14.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=100): time 0.005982/0.2801, allocations: 2.944 MB / 458.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.008e-05/0.2802, allocations: 64.41 kB / 458.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/0.2814, allocations: 0.9547 MB / 459.3 MB, free: 10.92 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.75e-05/0.2814, allocations: 41.7 kB / 459.3 MB, free: 10.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004378/0.2819, allocations: 0.5204 MB / 459.8 MB, free: 10.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000283/0.2821, allocations: 364.9 kB / 460.2 MB, free: 9.984 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002379/0.2824, allocations: 162.6 kB / 460.3 MB, free: 9.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.2825, allocations: 349.8 kB / 460.7 MB, free: 9.473 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000544/0.2831, allocations: 273.9 kB / 460.9 MB, free: 9.203 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006569/0.2837, allocations: 433.4 kB / 461.4 MB, free: 8.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00124/0.285, allocations: 0.7444 MB / 462.1 MB, free: 7.938 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.285, allocations: 0 / 462.1 MB, free: 7.938 MB / 366.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001902/0.2869, allocations: 1.041 MB / 463.2 MB, free: 6.883 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.2869, allocations: 6.812 kB / 463.2 MB, free: 6.879 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.918e-06/0.2869, allocations: 4 kB / 463.2 MB, free: 6.875 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004674/0.2874, allocations: 149.6 kB / 463.3 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000762/0.2881, allocations: 207.7 kB / 463.5 MB, free: 6.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003746/0.2919, allocations: 3.746 MB / 467.3 MB, free: 2.555 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005383/0.2924, allocations: 28 kB / 467.3 MB, free: 2.527 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-05/0.2925, allocations: 35.98 kB / 467.3 MB, free: 2.492 MB / 366.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.0004736/0.293, allocations: 305.5 kB / 467.6 MB, free: 2.184 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001476/0.2931, allocations: 111.3 kB / 467.7 MB, free: 2.074 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001845/0.295, allocations: 0.9713 MB / 468.7 MB, free: 1.078 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.295, allocations: 12 kB / 468.7 MB, free: 1.066 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.295, allocations: 0 / 468.7 MB, free: 1.066 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.295, allocations: 3.984 kB / 468.7 MB, free: 1.062 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003767/0.2987, allocations: 2.283 MB / 471 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.2988, allocations: 0 / 471 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000782/0.2995, allocations: 187.7 kB / 471.2 MB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003615/0.2999, allocations: 117.6 kB / 471.3 MB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.619e-05/0.3, allocations: 23.98 kB / 471.3 MB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003128/0.3031, allocations: 3.37 MB / 474.7 MB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.3031, allocations: 7.938 kB / 474.7 MB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002369/0.3055, allocations: 1.459 MB / 476.2 MB, free: 9.227 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003559/0.3058, allocations: 167.1 kB / 476.3 MB, free: 9.062 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001137/0.3059, allocations: 24 kB / 476.3 MB, free: 9.039 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003995/0.3063, allocations: 27.98 kB / 476.4 MB, free: 9.012 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/0.3065, allocations: 84.8 kB / 476.5 MB, free: 8.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.198e-05/0.3065, allocations: 32 kB / 476.5 MB, free: 8.898 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000852/0.3074, allocations: 0.6786 MB / 477.2 MB, free: 8.227 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3074, allocations: 0 / 477.2 MB, free: 8.227 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008666/0.3082, allocations: 240 kB / 477.4 MB, free: 7.992 MB / 382.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 (90): * Single equations (assignments): 86 * 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.00411/0.3124, allocations: 2.379 MB / 479.8 MB, free: 5.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001926/0.3143, allocations: 1.014 MB / 480.8 MB, free: 4.691 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3143, allocations: 0 / 480.8 MB, free: 4.691 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001113/0.3154, allocations: 0.676 MB / 481.5 MB, free: 3.992 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009728/0.3164, allocations: 183.6 kB / 481.6 MB, free: 3.816 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01275/0.3291, allocations: 8.773 MB / 490.4 MB, free: 10.75 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005805/0.3297, allocations: 0.5191 MB / 490.9 MB, free: 10.19 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004207/0.3301, allocations: 123.5 kB / 491.1 MB, free: 10.06 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000579/0.3307, allocations: 447.3 kB / 491.5 MB, free: 9.625 MB / 398.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3307, allocations: 0 / 491.5 MB, free: 9.625 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05704/0.3877, allocations: 22.66 MB / 0.5021 GB, free: 3.195 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.79/15.17, allocations: 7.438 kB / 0.5021 GB, free: 3.191 MB / 414.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Vehicle.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Vehicle.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Vehicle.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Vehicle.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Vehicle_fmu --startTime=0 --stopTime=60 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Vehicle.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Vehicle.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Vehicle/Vehicle.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Vehicle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.226196034112945]