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.001813/0.001813, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.002135/0.002135, allocations: 190.7 kB / 23.71 MB, free: 4.406 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.534/1.534, allocations: 225.7 MB / 252.5 MB, free: 12.8 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: translateModel(Modelica.Mechanics.Translational.Examples.Vehicle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|vehicle.s|vehicle.v|vehicle1.s|vehicle1.v|trailer.s|trailer.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle") translateModel(Modelica.Mechanics.Translational.Examples.Vehicle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|vehicle.s|vehicle.v|vehicle1.s|vehicle1.v|trailer.s|trailer.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00248/0.00248, allocations: 43.92 kB / 370.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.2879, allocations: 52.18 MB / 423.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.008254/0.2962, allocations: 5.516 MB / 428.6 MB, free: 8.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0046/0.3008, allocations: 2.088 MB / 430.7 MB, free: 6.816 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008285/0.3016, allocations: 39.75 kB / 430.7 MB, free: 6.777 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001044/0.3027, allocations: 421.3 kB / 431.1 MB, free: 6.363 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001154/0.3038, allocations: 472.9 kB / 431.6 MB, free: 5.898 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001254/0.3051, allocations: 0.5147 MB / 432.1 MB, free: 5.383 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001971/0.307, allocations: 1.496 MB / 433.6 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000667/0.3077, allocations: 344.9 kB / 433.9 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008432/0.3085, allocations: 0.572 MB / 434.5 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008778/0.3094, allocations: 0.5987 MB / 435.1 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002003/0.3096, allocations: 132 kB / 435.2 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003405/0.31, allocations: 168 kB / 435.4 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003127/0.3103, allocations: 306.9 kB / 435.7 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005643/0.3108, allocations: 0.5129 MB / 436.2 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001976/0.3128, allocations: 1.66 MB / 437.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3128, allocations: 0 / 437.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3128, allocations: 0 / 437.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.237e-05/0.3129, allocations: 0 / 437.9 MB, free: 15.58 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.002929/0.3158, allocations: 1.521 MB / 439.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.3158, allocations: 12.03 kB / 439.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002398/0.3161, allocations: 148 kB / 439.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001318/0.3174, allocations: 0.6938 MB / 440.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.213e-05/0.3175, allocations: 78.12 kB / 440.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001645/0.3176, allocations: 103.9 kB / 440.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001675/0.3193, allocations: 0.9196 MB / 441.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.795e-05/0.3193, allocations: 11.91 kB / 441.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.551e-05/0.3194, allocations: 40 kB / 441.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.79e-05/0.3195, allocations: 24 kB / 441.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001357/0.3208, allocations: 0.6402 MB / 442 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004892/0.3257, allocations: 2.606 MB / 444.7 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001429/0.3272, allocations: 0.5756 MB / 445.2 MB, free: 8.047 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005596/0.3277, allocations: 266.7 kB / 445.5 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.517e-05/0.3278, allocations: 16.59 kB / 445.5 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000695/0.3285, allocations: 352.3 kB / 445.9 MB, free: 7.418 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.905e-06/0.3285, allocations: 0 / 445.9 MB, free: 7.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=100): time 0.006451/0.3349, allocations: 2.939 MB / 448.8 MB, free: 4.438 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.494e-05/0.335, allocations: 64.41 kB / 448.9 MB, free: 4.363 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00122/0.3362, allocations: 0.8642 MB / 449.7 MB, free: 3.488 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.247e-05/0.3363, allocations: 41.7 kB / 449.8 MB, free: 3.441 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000537/0.3368, allocations: 0.5437 MB / 450.3 MB, free: 2.891 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003845/0.3372, allocations: 364.9 kB / 450.7 MB, free: 2.531 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002497/0.3374, allocations: 158.6 kB / 450.8 MB, free: 2.371 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.3376, allocations: 345.9 kB / 451.1 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005745/0.3382, allocations: 273.9 kB / 451.4 MB, free: 1.758 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007115/0.3389, allocations: 433.4 kB / 451.8 MB, free: 1.285 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001357/0.3402, allocations: 0.7444 MB / 452.6 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.3402, allocations: 11.94 kB / 452.6 MB, free: 492 kB / 350.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001983/0.3422, allocations: 1.021 MB / 453.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.3423, allocations: 8 kB / 453.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.3423, allocations: 4 kB / 453.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004692/0.3427, allocations: 141.6 kB / 453.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008282/0.3436, allocations: 208 kB / 454 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00419/0.3478, allocations: 3.704 MB / 457.7 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005519/0.3483, allocations: 28 kB / 457.7 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.194e-05/0.3484, allocations: 39.98 kB / 457.7 MB, free: 11.12 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.0004992/0.3489, allocations: 295.7 kB / 458 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001406/0.349, allocations: 107.3 kB / 458.1 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001976/0.351, allocations: 0.9666 MB / 459.1 MB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/0.351, allocations: 12 kB / 459.1 MB, free: 9.719 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.351, allocations: 0 / 459.1 MB, free: 9.719 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.351, allocations: 7.969 kB / 459.1 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003933/0.355, allocations: 2.151 MB / 461.3 MB, free: 7.473 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.189e-06/0.355, allocations: 0 / 461.3 MB, free: 7.473 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008106/0.3558, allocations: 187.8 kB / 461.5 MB, free: 7.289 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003639/0.3561, allocations: 117.6 kB / 461.6 MB, free: 7.168 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.187e-05/0.3562, allocations: 32.23 kB / 461.6 MB, free: 7.137 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00335/0.3595, allocations: 3.332 MB / 464.9 MB, free: 3.602 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.725e-06/0.3596, allocations: 7.938 kB / 464.9 MB, free: 3.594 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0025/0.3621, allocations: 1.439 MB / 466.4 MB, free: 2.094 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003621/0.3624, allocations: 159.2 kB / 466.5 MB, free: 1.938 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000112/0.3625, allocations: 32.06 kB / 466.6 MB, free: 1.906 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004264/0.363, allocations: 23.98 kB / 466.6 MB, free: 1.883 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001562/0.3631, allocations: 80.83 kB / 466.7 MB, free: 1.805 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.458e-05/0.3632, allocations: 39.98 kB / 466.7 MB, free: 1.766 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008107/0.364, allocations: 0.6084 MB / 467.3 MB, free: 1.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.364, allocations: 0 / 467.3 MB, free: 1.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009197/0.3649, allocations: 247.9 kB / 467.6 MB, free: 0.918 MB / 366.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.001728/0.3666, allocations: 473.2 kB / 468 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00204/0.3687, allocations: 1.022 MB / 469 MB, free: 15.59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.3687, allocations: 0 / 469 MB, free: 15.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001147/0.3698, allocations: 0.6667 MB / 469.7 MB, free: 14.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009413/0.3708, allocations: 190.8 kB / 469.9 MB, free: 14.72 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004252/0.375, allocations: 2.613 MB / 472.5 MB, free: 12.04 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000614/0.3756, allocations: 0.5106 MB / 473 MB, free: 11.49 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004024/0.376, allocations: 115.2 kB / 473.1 MB, free: 11.37 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001974/0.3762, allocations: 71.42 kB / 473.2 MB, free: 11.3 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3762, allocations: 3.938 kB / 473.2 MB, free: 11.3 MB / 382.1 MB Notification: Performance of Templates: time 0.02377/0.4, allocations: 12.29 MB / 485.5 MB, free: 15.15 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Vehicle/Vehicle.csv","/var/lib/jenkins/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.285386336967349]