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.00171/0.00171, allocations: 124.5 kB / 17.79 MB, free: 5.266 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.00219/0.00219, allocations: 207.2 kB / 20.75 MB, free: 2.316 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.451/1.451, allocations: 230.6 MB / 254.1 MB, free: 15.05 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: "" <> 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 0.00154/0.00154, allocations: 47.92 kB / 373 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09139/0.09293, allocations: 53.31 MB / 426.3 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.2088/0.3018, allocations: 6.271 MB / 432.6 MB, free: 7.121 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003996/0.3058, allocations: 2.301 MB / 434.9 MB, free: 6.875 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007897/0.3066, allocations: 40.09 kB / 434.9 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007666/0.3073, allocations: 424.5 kB / 435.3 MB, free: 6.715 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001118/0.3084, allocations: 0.5019 MB / 435.8 MB, free: 6.543 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001075/0.3095, allocations: 492.5 kB / 436.3 MB, free: 6.508 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001529/0.311, allocations: 1.507 MB / 437.8 MB, free: 6.082 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005435/0.3116, allocations: 370.8 kB / 438.2 MB, free: 5.871 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007867/0.3124, allocations: 0.581 MB / 438.8 MB, free: 5.594 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006953/0.3131, allocations: 0.6642 MB / 439.4 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001616/0.3132, allocations: 130.6 kB / 439.6 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003275/0.3136, allocations: 183.7 kB / 439.7 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002224/0.3138, allocations: 306.1 kB / 440 MB, free: 5.066 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000443/0.3142, allocations: 0.6438 MB / 440.7 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001677/0.3159, allocations: 1.662 MB / 442.3 MB, free: 3.934 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.3159, allocations: 1.094 kB / 442.3 MB, free: 3.934 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3159, allocations: 0 / 442.3 MB, free: 3.934 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.337e-05/0.3159, allocations: 0.5625 kB / 442.3 MB, free: 3.934 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.002566/0.3185, allocations: 1.608 MB / 443.9 MB, free: 2.832 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.3185, allocations: 9.531 kB / 444 MB, free: 2.832 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001567/0.3187, allocations: 147.4 kB / 444.1 MB, free: 2.734 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003772/0.3191, allocations: 165.1 kB / 444.3 MB, free: 2.648 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001095/0.3202, allocations: 0.7743 MB / 445 MB, free: 2.125 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.104e-05/0.3202, allocations: 74.03 kB / 445.1 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001386/0.3204, allocations: 110.9 kB / 445.2 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001424/0.3218, allocations: 0.91 MB / 446.1 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.105e-05/0.3218, allocations: 12.58 kB / 446.1 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.226e-05/0.3219, allocations: 40.8 kB / 446.2 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.027e-05/0.3219, allocations: 23.88 kB / 446.2 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001172/0.3231, allocations: 0.632 MB / 446.8 MB, free: 1.402 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004486/0.3276, allocations: 3.211 MB / 450 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/0.3289, allocations: 0.578 MB / 450.6 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005227/0.3295, allocations: 266 kB / 450.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.254e-05/0.3295, allocations: 14.44 kB / 450.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007034/0.3302, allocations: 348.4 kB / 451.2 MB, free: 15 MB / 366.1 MB Notification: Performance of pre-optimization done (n=80): time 2.474e-06/0.3302, allocations: 5.031 kB / 451.2 MB, free: 14.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=100): time 0.006321/0.3365, allocations: 3.08 MB / 454.3 MB, free: 13.33 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.297e-05/0.3366, allocations: 64.42 kB / 454.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001217/0.3378, allocations: 0.9443 MB / 455.3 MB, free: 12.9 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.635e-05/0.3379, allocations: 45.52 kB / 455.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004703/0.3383, allocations: 0.5159 MB / 455.9 MB, free: 12.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003063/0.3387, allocations: 364.6 kB / 456.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000242/0.3389, allocations: 159 kB / 456.4 MB, free: 12.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.3391, allocations: 352.1 kB / 456.7 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005445/0.3396, allocations: 268.3 kB / 457 MB, free: 11.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006796/0.3403, allocations: 435.7 kB / 457.4 MB, free: 11.37 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001296/0.3416, allocations: 0.7416 MB / 458.2 MB, free: 10.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.3416, allocations: 1.25 kB / 458.2 MB, free: 10.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001933/0.3435, allocations: 1.031 MB / 459.2 MB, free: 10.35 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.3436, allocations: 8.938 kB / 459.2 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.3436, allocations: 4.219 kB / 459.2 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004486/0.344, allocations: 148.2 kB / 459.4 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007646/0.3448, allocations: 209.6 kB / 459.6 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004218/0.349, allocations: 3.989 MB / 463.6 MB, free: 6.492 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000718/0.3497, allocations: 32.47 kB / 463.6 MB, free: 6.473 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.3498, allocations: 38.33 kB / 463.6 MB, free: 6.461 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.0006666/0.3505, allocations: 299.8 kB / 463.9 MB, free: 6.234 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001803/0.3507, allocations: 110.4 kB / 464 MB, free: 6.176 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001972/0.3526, allocations: 0.9571 MB / 465 MB, free: 5.629 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.3526, allocations: 13.97 kB / 465 MB, free: 5.625 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3526, allocations: 2.469 kB / 465 MB, free: 5.625 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/0.3527, allocations: 9.297 kB / 465 MB, free: 5.617 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004275/0.3569, allocations: 2.482 MB / 467.5 MB, free: 3.867 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.3569, allocations: 4.062 kB / 467.5 MB, free: 3.867 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007561/0.3577, allocations: 177.8 kB / 467.7 MB, free: 3.832 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003815/0.3581, allocations: 122.9 kB / 467.8 MB, free: 3.766 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.948e-05/0.3581, allocations: 26.12 kB / 467.8 MB, free: 3.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003663/0.3618, allocations: 3.604 MB / 471.4 MB, free: 304 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.3618, allocations: 4.188 kB / 471.4 MB, free: 304 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003366/0.3652, allocations: 1.434 MB / 472.9 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007535/0.3659, allocations: 252.9 kB / 473.1 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001881/0.3661, allocations: 21.81 kB / 473.1 MB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006126/0.3667, allocations: 32.61 kB / 473.2 MB, free: 15.15 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002136/0.3669, allocations: 71.31 kB / 473.2 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.785e-05/0.367, allocations: 38.45 kB / 473.3 MB, free: 15.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00122/0.3682, allocations: 0.6645 MB / 473.9 MB, free: 14.75 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3682, allocations: 0 / 473.9 MB, free: 14.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001492/0.3697, allocations: 239.1 kB / 474.2 MB, free: 14.71 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.00626/0.376, allocations: 2.323 MB / 476.5 MB, free: 13.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002877/0.3789, allocations: 1.008 MB / 477.5 MB, free: 12.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.3789, allocations: 0.875 kB / 477.5 MB, free: 12.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001628/0.3805, allocations: 0.671 MB / 478.2 MB, free: 11.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001742/0.3822, allocations: 185 kB / 478.3 MB, free: 11.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02155/0.4038, allocations: 8.756 MB / 487.1 MB, free: 2.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001332/0.4051, allocations: 1.1 MB / 488.2 MB, free: 1.375 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006693/0.4058, allocations: 123.6 kB / 488.3 MB, free: 1.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009273/0.4067, allocations: 451.3 kB / 488.8 MB, free: 0.8125 MB / 382.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4067, allocations: 0 / 488.8 MB, free: 0.8125 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06907/0.4758, allocations: 21.46 MB / 0.4983 GB, free: 11.53 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/12.02, allocations: 8.062 kB / 0.4983 GB, free: 11.53 MB / 414.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Vehicle/Vehicle.csv","/var/lib/jenkins1/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: 14.858795050997287]