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.00174/0.00174, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.002138/0.002138, allocations: 202.2 kB / 24.52 MB, free: 4.156 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.363/1.363, allocations: 230.6 MB / 258.3 MB, free: 8.039 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.001454/0.001454, allocations: 47.92 kB / 378.6 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2449/0.2464, allocations: 53.37 MB / 431.9 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.007746/0.2541, allocations: 6.29 MB / 438.2 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004118/0.2583, allocations: 2.322 MB / 440.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006657/0.2589, allocations: 39.69 kB / 440.6 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008361/0.2598, allocations: 421.4 kB / 441 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00118/0.2609, allocations: 0.5046 MB / 441.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001104/0.262, allocations: 0.4989 MB / 442 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001731/0.2638, allocations: 1.503 MB / 443.5 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005957/0.2644, allocations: 377.2 kB / 443.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007906/0.2652, allocations: 0.5798 MB / 444.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000789/0.266, allocations: 0.6612 MB / 445.1 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001618/0.2661, allocations: 128 kB / 445.2 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003042/0.2664, allocations: 191.8 kB / 445.4 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002747/0.2667, allocations: 306.9 kB / 445.7 MB, free: 8.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005655/0.2673, allocations: 0.6489 MB / 446.4 MB, free: 8.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001704/0.269, allocations: 1.658 MB / 448 MB, free: 6.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.269, allocations: 0 / 448 MB, free: 6.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.269, allocations: 0 / 448 MB, free: 6.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.765e-05/0.269, allocations: 0 / 448 MB, free: 6.68 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.00269/0.2717, allocations: 1.525 MB / 449.5 MB, free: 5.117 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.2717, allocations: 15.97 kB / 449.6 MB, free: 5.102 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.194e-05/0.2717, allocations: 26.19 kB / 449.6 MB, free: 5.078 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001649/0.2719, allocations: 152.4 kB / 449.7 MB, free: 4.922 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003857/0.2723, allocations: 159.9 kB / 449.9 MB, free: 4.766 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001211/0.2735, allocations: 0.7104 MB / 450.6 MB, free: 4.023 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.619e-05/0.2736, allocations: 70 kB / 450.7 MB, free: 3.953 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001487/0.2737, allocations: 112 kB / 450.8 MB, free: 3.844 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001517/0.2752, allocations: 0.904 MB / 451.7 MB, free: 2.926 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.356e-05/0.2753, allocations: 15.94 kB / 451.7 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.656e-05/0.2754, allocations: 40 kB / 451.7 MB, free: 2.871 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.823e-05/0.2754, allocations: 27.94 kB / 451.8 MB, free: 2.844 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/0.2766, allocations: 0.6325 MB / 452.4 MB, free: 2.207 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004618/0.2813, allocations: 3.115 MB / 455.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001289/0.2825, allocations: 0.5842 MB / 456.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000489/0.283, allocations: 266.7 kB / 456.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.525e-05/0.2831, allocations: 12.64 kB / 456.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006337/0.2837, allocations: 340.4 kB / 456.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of pre-optimization done (n=80): time 2.465e-06/0.2837, allocations: 4 kB / 456.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of matching and sorting (n=100): time 0.005754/0.2895, allocations: 2.921 MB / 459.6 MB, free: 10.8 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.407e-05/0.2895, allocations: 68.34 kB / 459.7 MB, free: 10.72 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00113/0.2907, allocations: 0.9469 MB / 460.6 MB, free: 9.766 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.303e-05/0.2907, allocations: 41.7 kB / 460.7 MB, free: 9.719 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004344/0.2911, allocations: 0.5244 MB / 461.2 MB, free: 9.188 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000294/0.2914, allocations: 364.9 kB / 461.6 MB, free: 8.828 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000237/0.2917, allocations: 158.6 kB / 461.7 MB, free: 8.668 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.2918, allocations: 349.9 kB / 462.1 MB, free: 8.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005284/0.2924, allocations: 273.9 kB / 462.3 MB, free: 8.055 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000658/0.293, allocations: 425.5 kB / 462.7 MB, free: 7.586 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001238/0.2943, allocations: 0.7404 MB / 463.5 MB, free: 6.797 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.2943, allocations: 4 kB / 463.5 MB, free: 6.793 MB / 366.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001939/0.2962, allocations: 1.029 MB / 464.5 MB, free: 5.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.407e-05/0.2962, allocations: 8 kB / 464.5 MB, free: 5.742 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.2962, allocations: 7.938 kB / 464.5 MB, free: 5.734 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004464/0.2967, allocations: 146 kB / 464.7 MB, free: 5.586 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007577/0.2974, allocations: 207.7 kB / 464.9 MB, free: 5.383 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003942/0.3014, allocations: 3.772 MB / 468.6 MB, free: 1.391 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005526/0.3019, allocations: 31.98 kB / 468.7 MB, free: 1.359 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.086e-05/0.302, allocations: 36 kB / 468.7 MB, free: 1.324 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.0004904/0.3025, allocations: 301.6 kB / 469 MB, free: 1.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001468/0.3026, allocations: 115.3 kB / 469.1 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001858/0.3045, allocations: 0.9518 MB / 470.1 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.201e-05/0.3045, allocations: 15.98 kB / 470.1 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.3045, allocations: 3.938 kB / 470.1 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.3045, allocations: 11.98 kB / 470.1 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003944/0.3085, allocations: 2.431 MB / 472.5 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.3085, allocations: 4 kB / 472.5 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007682/0.3092, allocations: 187.9 kB / 472.7 MB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003509/0.3096, allocations: 117.6 kB / 472.8 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.696e-05/0.3097, allocations: 36.23 kB / 472.9 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00332/0.313, allocations: 3.386 MB / 476.3 MB, free: 9.402 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.313, allocations: 4.031 kB / 476.3 MB, free: 9.398 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002393/0.3154, allocations: 1.435 MB / 477.7 MB, free: 7.902 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003596/0.3157, allocations: 171.1 kB / 477.9 MB, free: 7.734 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000111/0.3158, allocations: 23.98 kB / 477.9 MB, free: 7.711 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003941/0.3162, allocations: 28 kB / 477.9 MB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.3164, allocations: 76.8 kB / 478 MB, free: 7.609 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.127e-05/0.3164, allocations: 35.98 kB / 478 MB, free: 7.574 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008291/0.3173, allocations: 0.667 MB / 478.7 MB, free: 6.914 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3173, allocations: 0 / 478.7 MB, free: 6.914 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008849/0.3182, allocations: 247.9 kB / 478.9 MB, free: 6.672 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 (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.004039/0.3222, allocations: 2.326 MB / 481.3 MB, free: 4.449 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001897/0.3241, allocations: 1.01 MB / 482.3 MB, free: 3.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.3241, allocations: 0 / 482.3 MB, free: 3.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001093/0.3252, allocations: 0.6719 MB / 482.9 MB, free: 2.715 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/0.3262, allocations: 186 kB / 483.1 MB, free: 2.535 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01313/0.3393, allocations: 8.76 MB / 491.9 MB, free: 9.477 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000803/0.3401, allocations: 1.096 MB / 493 MB, free: 8.355 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004671/0.3406, allocations: 123.6 kB / 493.1 MB, free: 8.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005926/0.3412, allocations: 459.2 kB / 493.5 MB, free: 7.781 MB / 398.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3412, allocations: 0 / 493.5 MB, free: 7.781 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08963/0.4308, allocations: 22.17 MB / 0.5036 GB, free: 1.773 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.86/13.3, allocations: 10.55 kB / 0.5036 GB, free: 1.766 MB / 414.1 MB " [Timeout remaining time 646] (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: 16.422361759992782]