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.001013/0.001013, allocations: 84 kB / 21.43 MB, free: 3.137 MB / 18.57 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.003738/0.003738, allocations: 141.6 kB / 24.68 MB, free: 8.891 MB / 18.57 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 0.8122/0.8122, allocations: 173.4 MB / 201.2 MB, free: 9.469 MB / 186.7 MB " [Timeout remaining time 179] 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 1.553e-06/1.553e-06, allocations: 3.938 kB / 319.7 MB, free: 5.781 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.264e-05/2.42e-05, allocations: 2.281 kB / 319.7 MB, free: 5.777 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.004711/0.004735, allocations: 5.506 MB / 325.2 MB, free: 244 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002503/0.007238, allocations: 2.103 MB / 327.3 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003465/0.007585, allocations: 35.75 kB / 327.3 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000602/0.008187, allocations: 421.3 kB / 327.7 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006427/0.00883, allocations: 0.4888 MB / 328.2 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006185/0.009448, allocations: 0.5105 MB / 328.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009567/0.0104, allocations: 1.534 MB / 330.3 MB, free: 11.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000394/0.0108, allocations: 357 kB / 330.6 MB, free: 10.76 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005822/0.01138, allocations: 0.8262 MB / 331.5 MB, free: 9.934 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004204/0.0118, allocations: 0.5102 MB / 332 MB, free: 9.422 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001029/0.0119, allocations: 128 kB / 332.1 MB, free: 9.297 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001707/0.01207, allocations: 171.9 kB / 332.3 MB, free: 9.129 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001792/0.01225, allocations: 310.8 kB / 332.6 MB, free: 8.824 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000259/0.01251, allocations: 426.8 kB / 333 MB, free: 8.406 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001069/0.01358, allocations: 1.647 MB / 334.6 MB, free: 6.754 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.01359, allocations: 4 kB / 334.6 MB, free: 6.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.01359, allocations: 4 kB / 334.6 MB, free: 6.746 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.178e-05/0.0136, allocations: 0 / 334.6 MB, free: 6.746 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.001662/0.01526, allocations: 1.501 MB / 336.1 MB, free: 5.211 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.01531, allocations: 8.031 kB / 336.1 MB, free: 5.203 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001624/0.01547, allocations: 156 kB / 336.3 MB, free: 5.051 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008314/0.0163, allocations: 0.6892 MB / 337 MB, free: 4.332 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.603e-05/0.01635, allocations: 74.38 kB / 337.1 MB, free: 4.258 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001095/0.01646, allocations: 116.3 kB / 337.2 MB, free: 4.145 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009815/0.01744, allocations: 0.908 MB / 338.1 MB, free: 3.223 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.802e-05/0.01748, allocations: 15.94 kB / 338.1 MB, free: 3.207 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.114e-05/0.01753, allocations: 36 kB / 338.1 MB, free: 3.172 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/0.01754, allocations: 24 kB / 338.1 MB, free: 3.148 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007825/0.01833, allocations: 0.6363 MB / 338.8 MB, free: 2.512 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002676/0.021, allocations: 2.615 MB / 341.4 MB, free: 15.82 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008181/0.02182, allocations: 0.5779 MB / 342 MB, free: 15.23 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002973/0.02212, allocations: 271.4 kB / 342.2 MB, free: 14.96 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.186e-05/0.02215, allocations: 12.66 kB / 342.3 MB, free: 14.95 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003943/0.02254, allocations: 348.4 kB / 342.6 MB, free: 14.6 MB / 314.7 MB Notification: Performance of pre-optimization done (n=80): time 2.164e-06/0.02255, allocations: 0 / 342.6 MB, free: 14.6 MB / 314.7 MB Notification: Performance of matching and sorting (n=100): time 0.003508/0.02605, allocations: 2.924 MB / 345.5 MB, free: 11.63 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.274e-05/0.0261, allocations: 68.41 kB / 345.6 MB, free: 11.55 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006679/0.02676, allocations: 0.8642 MB / 346.4 MB, free: 10.68 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.731e-05/0.0268, allocations: 41.7 kB / 346.5 MB, free: 10.63 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002714/0.02707, allocations: 0.5321 MB / 347 MB, free: 10.09 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001664/0.02724, allocations: 364.8 kB / 347.4 MB, free: 9.734 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000144/0.02738, allocations: 158.6 kB / 347.5 MB, free: 9.574 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.292e-05/0.02748, allocations: 341.9 kB / 347.9 MB, free: 9.234 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003268/0.0278, allocations: 273.9 kB / 348.1 MB, free: 8.965 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003929/0.0282, allocations: 433.4 kB / 348.6 MB, free: 8.492 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007543/0.02895, allocations: 0.7522 MB / 349.3 MB, free: 7.691 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.02895, allocations: 0 / 349.3 MB, free: 7.691 MB / 314.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001085/0.03004, allocations: 1.033 MB / 350.3 MB, free: 6.641 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.03005, allocations: 4 kB / 350.3 MB, free: 6.637 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.03006, allocations: 7.984 kB / 350.4 MB, free: 6.629 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000269/0.03033, allocations: 154 kB / 350.5 MB, free: 6.473 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003904/0.03072, allocations: 207.7 kB / 350.7 MB, free: 6.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002193/0.03291, allocations: 3.693 MB / 354.4 MB, free: 2.379 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002045/0.03312, allocations: 28 kB / 354.4 MB, free: 2.352 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.934e-05/0.03316, allocations: 35.98 kB / 354.5 MB, free: 2.316 MB / 314.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.0002959/0.03345, allocations: 309.6 kB / 354.8 MB, free: 2.004 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.862e-05/0.03353, allocations: 103.3 kB / 354.9 MB, free: 1.902 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001081/0.03461, allocations: 0.9627 MB / 355.8 MB, free: 0.918 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.03462, allocations: 8 kB / 355.8 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.03462, allocations: 8 kB / 355.8 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.816e-06/0.03463, allocations: 7.922 kB / 355.9 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002167/0.0368, allocations: 2.147 MB / 358 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.0368, allocations: 4 kB / 358 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000388/0.03719, allocations: 183.8 kB / 358.2 MB, free: 14.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002044/0.0374, allocations: 130 kB / 358.3 MB, free: 14.34 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.651e-05/0.03743, allocations: 27.98 kB / 358.3 MB, free: 14.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001794/0.03923, allocations: 3.324 MB / 361.7 MB, free: 10.79 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.03923, allocations: 7.938 kB / 361.7 MB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001447/0.04068, allocations: 1.443 MB / 363.1 MB, free: 9.277 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001994/0.04088, allocations: 159.4 kB / 363.3 MB, free: 9.121 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.316e-05/0.04094, allocations: 27.97 kB / 363.3 MB, free: 9.094 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001906/0.04113, allocations: 28 kB / 363.3 MB, free: 9.066 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.04124, allocations: 80.83 kB / 363.4 MB, free: 8.988 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.151e-05/0.04128, allocations: 31.98 kB / 363.4 MB, free: 8.957 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000458/0.04174, allocations: 0.6162 MB / 364 MB, free: 8.348 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-08/0.04174, allocations: 0 / 364 MB, free: 8.348 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005758/0.04231, allocations: 236 kB / 364.3 MB, free: 8.117 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.0007354/0.04305, allocations: 496.9 kB / 364.8 MB, free: 7.816 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001161/0.04421, allocations: 1.006 MB / 365.8 MB, free: 6.781 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.04421, allocations: 3.938 kB / 365.8 MB, free: 6.777 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005942/0.0448, allocations: 0.6715 MB / 366.4 MB, free: 6.082 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005568/0.04536, allocations: 173.1 kB / 366.6 MB, free: 5.918 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00241/0.04777, allocations: 2.428 MB / 369 MB, free: 3.414 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003425/0.04811, allocations: 0.5107 MB / 369.6 MB, free: 2.867 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001499/0.04826, allocations: 80.47 kB / 369.6 MB, free: 2.789 MB / 330.7 MB Notification: Performance of SimCode: time 5.61e-07/0.04826, allocations: 0 / 369.6 MB, free: 2.789 MB / 330.7 MB Notification: Performance of Templates: time 0.01619/0.06446, allocations: 23.44 MB / 393.1 MB, free: 11.34 MB / 362.7 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.426713095977902]