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.001891/0.001891, allocations: 113.1 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.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.002087/0.002087, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.487/1.487, allocations: 230.6 MB / 257.5 MB, free: 7.988 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: 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.1.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.1.0_Modelica.Mechanics.Translational.Examples.Vehicle") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002128/0.002128, allocations: 43.92 kB / 378.3 MB, free: 2.613 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2453/0.2474, allocations: 53.36 MB / 431.6 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.008121/0.2556, allocations: 6.29 MB / 437.9 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004426/0.26, allocations: 2.326 MB / 440.2 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005978/0.2606, allocations: 39.69 kB / 440.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008979/0.2615, allocations: 421.3 kB / 440.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001158/0.2626, allocations: 0.4968 MB / 441.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001088/0.2637, allocations: 0.4951 MB / 441.7 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001791/0.2655, allocations: 1.5 MB / 443.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006245/0.2661, allocations: 373.2 kB / 443.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008086/0.2669, allocations: 0.5876 MB / 444.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008386/0.2678, allocations: 0.6612 MB / 444.8 MB, free: 9.664 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001793/0.268, allocations: 132 kB / 444.9 MB, free: 9.535 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003194/0.2683, allocations: 183.9 kB / 445.1 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002917/0.2686, allocations: 310.9 kB / 445.4 MB, free: 9.051 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006245/0.2692, allocations: 0.6411 MB / 446.1 MB, free: 8.406 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001887/0.2711, allocations: 1.662 MB / 447.7 MB, free: 6.742 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.2711, allocations: 0 / 447.7 MB, free: 6.742 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2711, allocations: 0 / 447.7 MB, free: 6.742 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.062e-05/0.2711, allocations: 0 / 447.7 MB, free: 6.742 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.00286/0.274, allocations: 1.528 MB / 449.2 MB, free: 5.176 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.274, allocations: 8.031 kB / 449.3 MB, free: 5.168 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00042/0.2744, allocations: 160 kB / 449.4 MB, free: 5.012 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001299/0.2757, allocations: 0.7067 MB / 450.1 MB, free: 4.273 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.656e-05/0.2758, allocations: 78.12 kB / 450.2 MB, free: 4.199 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001617/0.276, allocations: 115.9 kB / 450.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001613/0.2776, allocations: 0.9079 MB / 451.2 MB, free: 3.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.294e-05/0.2776, allocations: 11.95 kB / 451.2 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.994e-05/0.2777, allocations: 36 kB / 451.3 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.181e-05/0.2777, allocations: 24 kB / 451.3 MB, free: 3.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00131/0.279, allocations: 0.6402 MB / 451.9 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004777/0.2838, allocations: 3.107 MB / 455 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00133/0.2851, allocations: 0.5849 MB / 455.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005154/0.2856, allocations: 266.7 kB / 455.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.122e-05/0.2857, allocations: 16.59 kB / 455.9 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006647/0.2864, allocations: 340.4 kB / 456.2 MB, free: 14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=80): time 2.394e-06/0.2864, allocations: 0 / 456.2 MB, free: 14 MB / 366.1 MB Notification: Performance of matching and sorting (n=100): time 0.00617/0.2925, allocations: 2.936 MB / 459.2 MB, free: 11.03 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.06e-05/0.2926, allocations: 64.41 kB / 459.2 MB, free: 10.95 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001283/0.2939, allocations: 0.9469 MB / 460.2 MB, free: 10 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.932e-05/0.2939, allocations: 41.7 kB / 460.2 MB, free: 9.953 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000527/0.2945, allocations: 0.5204 MB / 460.7 MB, free: 9.426 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003043/0.2948, allocations: 372.8 kB / 461.1 MB, free: 9.059 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002423/0.295, allocations: 158.6 kB / 461.3 MB, free: 8.898 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.2952, allocations: 345.9 kB / 461.6 MB, free: 8.555 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000562/0.2958, allocations: 269.9 kB / 461.9 MB, free: 8.293 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006967/0.2965, allocations: 429.4 kB / 462.3 MB, free: 7.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001324/0.2978, allocations: 0.7444 MB / 463 MB, free: 7.027 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2978, allocations: 3.938 kB / 463 MB, free: 7.023 MB / 366.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001971/0.2998, allocations: 1.029 MB / 464 MB, free: 5.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.2998, allocations: 8 kB / 464.1 MB, free: 5.973 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.2998, allocations: 3.938 kB / 464.1 MB, free: 5.969 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004858/0.3003, allocations: 146 kB / 464.2 MB, free: 5.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008117/0.3011, allocations: 207.7 kB / 464.4 MB, free: 5.617 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004108/0.3052, allocations: 3.782 MB / 468.2 MB, free: 1.617 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005088/0.3057, allocations: 32.06 kB / 468.2 MB, free: 1.586 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.384e-05/0.3058, allocations: 35.98 kB / 468.3 MB, free: 1.551 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.0004978/0.3063, allocations: 301.6 kB / 468.5 MB, free: 1.246 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001576/0.3064, allocations: 111.3 kB / 468.7 MB, free: 1.137 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001947/0.3084, allocations: 0.9556 MB / 469.6 MB, free: 168 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.267e-06/0.3084, allocations: 8 kB / 469.6 MB, free: 160 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.3084, allocations: 4 kB / 469.6 MB, free: 156 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/0.3084, allocations: 3.984 kB / 469.6 MB, free: 152 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004186/0.3126, allocations: 2.435 MB / 472.1 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.429e-05/0.3126, allocations: 8.031 kB / 472.1 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000786/0.3134, allocations: 183.7 kB / 472.3 MB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003671/0.3138, allocations: 125.7 kB / 472.4 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.698e-05/0.3138, allocations: 23.98 kB / 472.4 MB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003619/0.3174, allocations: 3.393 MB / 475.8 MB, free: 9.641 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.563e-06/0.3174, allocations: 7.938 kB / 475.8 MB, free: 9.633 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002598/0.32, allocations: 1.435 MB / 477.2 MB, free: 8.137 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003809/0.3204, allocations: 171.3 kB / 477.4 MB, free: 7.969 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001175/0.3205, allocations: 27.92 kB / 477.4 MB, free: 7.941 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000408/0.3209, allocations: 23.98 kB / 477.5 MB, free: 7.918 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001454/0.3211, allocations: 80.86 kB / 477.5 MB, free: 7.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.57e-05/0.3211, allocations: 24 kB / 477.6 MB, free: 7.816 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009894/0.3221, allocations: 0.6786 MB / 478.2 MB, free: 7.141 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3221, allocations: 0 / 478.2 MB, free: 7.141 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009192/0.323, allocations: 243.9 kB / 478.5 MB, free: 6.902 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.001626/0.3247, allocations: 459.3 kB / 478.9 MB, free: 6.609 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001957/0.3266, allocations: 1.01 MB / 479.9 MB, free: 5.574 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3266, allocations: 4 kB / 479.9 MB, free: 5.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0012/0.3278, allocations: 0.6675 MB / 480.6 MB, free: 4.875 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009562/0.3288, allocations: 181.2 kB / 480.8 MB, free: 4.699 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00423/0.333, allocations: 2.609 MB / 483.4 MB, free: 2.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008168/0.3338, allocations: 1.104 MB / 484.5 MB, free: 0.8906 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004044/0.3342, allocations: 123.6 kB / 484.6 MB, free: 0.7656 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002011/0.3344, allocations: 75.42 kB / 484.7 MB, free: 0.6914 MB / 382.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3344, allocations: 0 / 484.7 MB, free: 0.6914 MB / 382.1 MB Notification: Performance of Templates: time 0.02285/0.3573, allocations: 11.88 MB / 496.6 MB, free: 4.887 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Vehicle.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Vehicle -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Vehicle.pipe 2>&1) [Timeout 480] 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: 5.161154170986265]