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.0008271/0.0008271, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008038/0.0008038, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8571/0.8571, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Vehicle,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Vehicle",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.637e-05/1.777e-05, allocations: 2.281 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.004863/0.004881, allocations: 5.55 MB / 330.1 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003245/0.008125, allocations: 2.231 MB / 332.3 MB, free: 8.121 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005869/0.008712, allocations: 39.69 kB / 332.4 MB, free: 8.082 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006531/0.009365, allocations: 425.2 kB / 332.8 MB, free: 7.664 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008798/0.01025, allocations: 0.5238 MB / 333.3 MB, free: 7.137 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007499/0.01099, allocations: 498.9 kB / 333.8 MB, free: 6.648 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001282/0.01228, allocations: 1.542 MB / 335.3 MB, free: 5.102 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006879/0.01296, allocations: 349.1 kB / 335.7 MB, free: 4.734 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008313/0.0138, allocations: 0.83 MB / 336.5 MB, free: 3.902 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004446/0.01424, allocations: 0.5141 MB / 337 MB, free: 3.387 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000106/0.01435, allocations: 128 kB / 337.2 MB, free: 3.262 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000202/0.01455, allocations: 183.9 kB / 337.3 MB, free: 3.082 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001695/0.01472, allocations: 310.8 kB / 337.6 MB, free: 2.777 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002759/0.01499, allocations: 426.8 kB / 338.1 MB, free: 2.359 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001084/0.01608, allocations: 1.667 MB / 339.7 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.01608, allocations: 3.938 kB / 339.7 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.01608, allocations: 0 / 339.7 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.027e-05/0.01611, allocations: 0 / 339.7 MB, free: 0.6797 MB / 298.7 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.001727/0.01784, allocations: 1.52 MB / 341.2 MB, free: 15.13 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.01788, allocations: 8.031 kB / 341.3 MB, free: 15.12 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001199/0.018, allocations: 152.4 kB / 341.4 MB, free: 14.96 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002454/0.01824, allocations: 156 kB / 341.6 MB, free: 14.81 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007943/0.01904, allocations: 0.697 MB / 342.3 MB, free: 14.09 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.641e-05/0.01908, allocations: 74.38 kB / 342.3 MB, free: 14.01 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.92e-05/0.01918, allocations: 104.3 kB / 342.4 MB, free: 13.91 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001001/0.02018, allocations: 0.9195 MB / 343.3 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.284e-05/0.02022, allocations: 11.89 kB / 343.4 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.776e-05/0.02027, allocations: 40 kB / 343.4 MB, free: 12.93 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.02028, allocations: 24 kB / 343.4 MB, free: 12.9 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008173/0.0211, allocations: 0.6403 MB / 344.1 MB, free: 12.26 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003329/0.02443, allocations: 2.766 MB / 346.8 MB, free: 9.402 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008907/0.02532, allocations: 0.5735 MB / 347.4 MB, free: 8.812 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003092/0.02563, allocations: 270.7 kB / 347.7 MB, free: 8.547 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.721e-05/0.02566, allocations: 8.656 kB / 347.7 MB, free: 8.539 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004167/0.02608, allocations: 348.3 kB / 348 MB, free: 8.188 MB / 314.7 MB Notification: Performance of pre-optimization done (n=80): time 2.985e-06/0.02608, allocations: 0 / 348 MB, free: 8.188 MB / 314.7 MB Notification: Performance of matching and sorting (n=100): time 0.003748/0.02983, allocations: 2.932 MB / 350.9 MB, free: 5.215 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.298e-05/0.02987, allocations: 68.39 kB / 351 MB, free: 5.137 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008268/0.0307, allocations: 0.9508 MB / 352 MB, free: 4.18 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.988e-05/0.03074, allocations: 49.7 kB / 352 MB, free: 4.125 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002886/0.03103, allocations: 0.5243 MB / 352.5 MB, free: 3.594 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001835/0.03121, allocations: 360.9 kB / 352.9 MB, free: 3.238 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001458/0.03136, allocations: 166.6 kB / 353.1 MB, free: 3.07 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.062e-05/0.03145, allocations: 345.9 kB / 353.4 MB, free: 2.727 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003326/0.03178, allocations: 265.9 kB / 353.7 MB, free: 2.465 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004941/0.03228, allocations: 437.4 kB / 354.1 MB, free: 1.988 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007995/0.03307, allocations: 0.7638 MB / 354.8 MB, free: 1.176 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.03308, allocations: 0 / 354.8 MB, free: 1.176 MB / 314.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001297/0.03438, allocations: 1.029 MB / 355.9 MB, free: 136 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.0344, allocations: 8 kB / 355.9 MB, free: 128 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.03441, allocations: 4 kB / 355.9 MB, free: 124 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003057/0.03472, allocations: 145.7 kB / 356 MB, free: 15.97 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000409/0.03513, allocations: 204.1 kB / 356.2 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00263/0.03776, allocations: 3.75 MB / 360 MB, free: 11.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003092/0.03807, allocations: 31.94 kB / 360 MB, free: 11.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.041e-05/0.03811, allocations: 36 kB / 360 MB, free: 11.74 MB / 330.7 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.0003139/0.03842, allocations: 298.3 kB / 360.3 MB, free: 11.44 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.385e-05/0.0385, allocations: 111.2 kB / 360.4 MB, free: 11.33 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001343/0.03985, allocations: 0.9753 MB / 361.4 MB, free: 10.33 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.03985, allocations: 8 kB / 361.4 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.03986, allocations: 4 kB / 361.4 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.03987, allocations: 3.984 kB / 361.4 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002384/0.04225, allocations: 2.272 MB / 363.7 MB, free: 7.949 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.04225, allocations: 4 kB / 363.7 MB, free: 7.945 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003929/0.04265, allocations: 179.8 kB / 363.9 MB, free: 7.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002265/0.04287, allocations: 129.5 kB / 364 MB, free: 7.637 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.485e-05/0.04292, allocations: 24.36 kB / 364 MB, free: 7.613 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001929/0.04485, allocations: 3.366 MB / 367.4 MB, free: 4.02 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.04485, allocations: 7.938 kB / 367.4 MB, free: 4.012 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001512/0.04636, allocations: 1.443 MB / 368.9 MB, free: 2.508 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002636/0.04663, allocations: 175.2 kB / 369 MB, free: 2.336 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001334/0.04676, allocations: 24.06 kB / 369 MB, free: 2.312 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002164/0.04698, allocations: 35.92 kB / 369.1 MB, free: 2.277 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/0.0471, allocations: 72.89 kB / 369.2 MB, free: 2.207 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-05/0.04714, allocations: 39.92 kB / 369.2 MB, free: 2.168 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005702/0.04771, allocations: 0.6786 MB / 369.9 MB, free: 1.496 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04771, allocations: 0 / 369.9 MB, free: 1.496 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006768/0.04838, allocations: 243.9 kB / 370.1 MB, free: 1.258 MB / 330.7 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.002548/0.05093, allocations: 2.358 MB / 372.5 MB, free: 15.02 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00126/0.05219, allocations: 1.022 MB / 373.5 MB, free: 13.97 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.0522, allocations: 0 / 373.5 MB, free: 13.97 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006532/0.05285, allocations: 0.6784 MB / 374.2 MB, free: 13.27 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006161/0.05346, allocations: 193.9 kB / 374.4 MB, free: 13.08 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009949/0.06341, allocations: 8.59 MB / 382.9 MB, free: 4.184 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004083/0.06382, allocations: 0.5112 MB / 383.5 MB, free: 3.637 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003331/0.06415, allocations: 119.5 kB / 383.6 MB, free: 3.516 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004008/0.06456, allocations: 452.3 kB / 384 MB, free: 3.074 MB / 346.7 MB Notification: Performance of SimCode: time 1.523e-06/0.06456, allocations: 0 / 384 MB, free: 3.074 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04477/0.1093, allocations: 22.89 MB / 406.9 MB, free: 12.36 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.181/7.29, allocations: 0 / 406.9 MB, free: 12.36 MB / 378.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Vehicle/Vehicle.csv","/var/lib/jenkins/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: 9.130540347658098]