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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00188/0.00188, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001885/0.001885, allocations: 183.9 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 47.92 kB / 370.4 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2725, allocations: 52.19 MB / 422.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.008563/0.281, allocations: 6.279 MB / 428.9 MB, free: 8.273 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004613/0.2856, allocations: 2.17 MB / 431.1 MB, free: 6.098 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009314/0.2866, allocations: 35.75 kB / 431.1 MB, free: 6.062 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001034/0.2876, allocations: 429.3 kB / 431.5 MB, free: 5.641 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00159/0.2892, allocations: 472.9 kB / 432 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001443/0.2906, allocations: 0.5302 MB / 432.5 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002391/0.293, allocations: 1.496 MB / 434 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007808/0.2938, allocations: 373.1 kB / 434.4 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001044/0.2948, allocations: 0.5759 MB / 435 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001075/0.2959, allocations: 0.6612 MB / 435.6 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002927/0.2962, allocations: 132 kB / 435.7 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004164/0.2966, allocations: 171.9 kB / 435.9 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003225/0.2969, allocations: 306.9 kB / 436.2 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006962/0.2976, allocations: 0.6411 MB / 436.9 MB, free: 276 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002313/0.3, allocations: 1.646 MB / 438.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3, allocations: 4 kB / 438.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.3, allocations: 0 / 438.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.475e-05/0.3, allocations: 0 / 438.5 MB, free: 14.62 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.003282/0.3033, allocations: 1.521 MB / 440 MB, free: 13.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.3033, allocations: 12.03 kB / 440 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001886/0.3035, allocations: 152.3 kB / 440.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002903/0.3038, allocations: 148 kB / 440.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001455/0.3053, allocations: 0.6939 MB / 441 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.548e-05/0.3054, allocations: 77.94 kB / 441.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001698/0.3055, allocations: 99.95 kB / 441.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001781/0.3073, allocations: 0.9118 MB / 442.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.747e-05/0.3074, allocations: 11.94 kB / 442.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.831e-05/0.3074, allocations: 40 kB / 442.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.412e-05/0.3075, allocations: 24 kB / 442.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001334/0.3088, allocations: 0.6363 MB / 442.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005725/0.3145, allocations: 3.111 MB / 445.9 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001418/0.3159, allocations: 0.5725 MB / 446.5 MB, free: 6.406 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005488/0.3165, allocations: 270.7 kB / 446.8 MB, free: 6.141 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.227e-05/0.3165, allocations: 12.64 kB / 446.8 MB, free: 6.129 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007101/0.3173, allocations: 340.4 kB / 447.1 MB, free: 5.789 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 3.166e-06/0.3173, allocations: 0 / 447.1 MB, free: 5.789 MB / 350.1 MB Notification: Performance of matching and sorting (n=100): time 0.006544/0.3238, allocations: 2.936 MB / 450.1 MB, free: 2.812 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.272e-05/0.3239, allocations: 64.41 kB / 450.1 MB, free: 2.734 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001313/0.3252, allocations: 0.939 MB / 451.1 MB, free: 1.785 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000112/0.3253, allocations: 45.64 kB / 451.1 MB, free: 1.734 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004676/0.3258, allocations: 0.5166 MB / 451.6 MB, free: 1.211 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003664/0.3261, allocations: 360.9 kB / 452 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002402/0.3264, allocations: 158.6 kB / 452.1 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.3265, allocations: 349.9 kB / 452.5 MB, free: 356 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005598/0.3271, allocations: 265.9 kB / 452.7 MB, free: 92 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006859/0.3278, allocations: 429.5 kB / 453.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001282/0.329, allocations: 0.7482 MB / 453.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.3291, allocations: 0 / 453.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002064/0.3311, allocations: 1.041 MB / 454.9 MB, free: 13.76 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.3311, allocations: 4 kB / 454.9 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/0.3312, allocations: 7.984 kB / 454.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000469/0.3316, allocations: 143.5 kB / 455.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008078/0.3324, allocations: 212 kB / 455.3 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004104/0.3365, allocations: 3.774 MB / 459.1 MB, free: 9.406 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006465/0.3372, allocations: 31.98 kB / 459.1 MB, free: 9.375 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.635e-05/0.3373, allocations: 35.98 kB / 459.1 MB, free: 9.34 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.0005624/0.3378, allocations: 309.6 kB / 459.4 MB, free: 9.027 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001766/0.338, allocations: 107.3 kB / 459.5 MB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001933/0.3399, allocations: 0.9556 MB / 460.5 MB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.3399, allocations: 8 kB / 460.5 MB, free: 7.941 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.3399, allocations: 4 kB / 460.5 MB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/0.34, allocations: 3.984 kB / 460.5 MB, free: 7.934 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004421/0.3444, allocations: 2.439 MB / 462.9 MB, free: 5.383 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.647e-06/0.3444, allocations: 3.984 kB / 463 MB, free: 5.379 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008087/0.3452, allocations: 184.1 kB / 463.1 MB, free: 5.199 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004117/0.3456, allocations: 121.6 kB / 463.2 MB, free: 5.074 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.491e-05/0.3457, allocations: 27.98 kB / 463.3 MB, free: 5.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003435/0.3491, allocations: 3.389 MB / 466.7 MB, free: 1.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3491, allocations: 144 / 466.7 MB, free: 1.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00261/0.3517, allocations: 1.443 MB / 468.1 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004826/0.3522, allocations: 171.1 kB / 468.3 MB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001511/0.3524, allocations: 27.98 kB / 468.3 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004394/0.3528, allocations: 24 kB / 468.3 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001734/0.353, allocations: 72.86 kB / 468.4 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.738e-05/0.353, allocations: 43.92 kB / 468.4 MB, free: 15.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009471/0.354, allocations: 0.6591 MB / 469.1 MB, free: 14.94 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.354, allocations: 0 / 469.1 MB, free: 14.94 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001085/0.3551, allocations: 244.1 kB / 469.3 MB, free: 14.7 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.004441/0.3595, allocations: 2.317 MB / 471.7 MB, free: 12.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00216/0.3617, allocations: 1.01 MB / 472.7 MB, free: 11.44 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/0.3617, allocations: 4 kB / 472.7 MB, free: 11.44 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001136/0.3628, allocations: 0.6675 MB / 473.3 MB, free: 10.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001077/0.3639, allocations: 173.4 kB / 473.5 MB, free: 10.58 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01408/0.378, allocations: 8.744 MB / 482.2 MB, free: 1.539 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008209/0.3788, allocations: 1.104 MB / 483.4 MB, free: 416 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000475/0.3793, allocations: 115.6 kB / 483.5 MB, free: 296 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006361/0.3799, allocations: 447.4 kB / 483.9 MB, free: 15.85 MB / 398.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3799, allocations: 4 kB / 483.9 MB, free: 15.84 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06814/0.4481, allocations: 22.07 MB / 0.4941 GB, free: 9.93 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.37/13.82, allocations: 7.922 kB / 0.4941 GB, free: 9.922 MB / 414.1 MB " [Timeout remaining time 646] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Vehicle.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.csv","/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) [Timeout 660] "Error: Could not read variable vehicle.s in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.csv. Warning: Get data of variable vehicle.s from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.csv failed! Error: Could not read variable vehicle.v in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.csv. Warning: Get data of variable vehicle.v from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.csv failed! Error: Could not read variable vehicle1.s in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.csv. Warning: Get data of variable vehicle1.s from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.csv failed! Error: Could not read variable vehicle1.v in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.csv. Warning: Get data of variable vehicle1.v from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.csv failed! Error: Could not read variable trailer.s in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.csv. Warning: Get data of variable trailer.s from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.csv failed! Error: Could not read variable trailer.v in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.csv. Warning: Get data of variable trailer.v from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.593650917999184]