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.001178/0.001178, allocations: 103.9 kB / 21.21 MB, free: 0.6523 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.001232/0.001232, allocations: 188.9 kB / 24.49 MB, free: 3.957 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.296/1.296, allocations: 225.7 MB / 253.3 MB, free: 12.84 MB / 206.1 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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Vehicle,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Vehicle",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Vehicle,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Vehicle",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 47.94 kB / 371.2 MB, free: 9.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2301/0.2315, allocations: 52.2 MB / 423.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.006917/0.2384, allocations: 5.509 MB / 428.9 MB, free: 8.867 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00348/0.2419, allocations: 2.08 MB / 431 MB, free: 6.781 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004855/0.2424, allocations: 39.69 kB / 431 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007941/0.2432, allocations: 425.3 kB / 431.4 MB, free: 6.324 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009511/0.2441, allocations: 472.9 kB / 431.9 MB, free: 5.859 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009675/0.2451, allocations: 0.5147 MB / 432.4 MB, free: 5.344 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001569/0.2467, allocations: 1.496 MB / 433.9 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005683/0.2472, allocations: 365.2 kB / 434.2 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006509/0.2479, allocations: 0.5682 MB / 434.8 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000773/0.2486, allocations: 0.6729 MB / 435.5 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001673/0.2488, allocations: 128 kB / 435.6 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000301/0.2491, allocations: 175.9 kB / 435.8 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002897/0.2494, allocations: 306.9 kB / 436.1 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005197/0.2499, allocations: 0.5091 MB / 436.6 MB, free: 1.105 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001736/0.2517, allocations: 1.656 MB / 438.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2517, allocations: 0 / 438.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2517, allocations: 0 / 438.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.992e-05/0.2517, allocations: 0 / 438.2 MB, free: 15.45 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.002757/0.2544, allocations: 1.529 MB / 439.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.2545, allocations: 8.031 kB / 439.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.913e-05/0.2545, allocations: 26.19 kB / 439.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001749/0.2547, allocations: 152.3 kB / 439.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002259/0.2549, allocations: 152 kB / 440.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001299/0.2562, allocations: 0.6897 MB / 440.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.184e-05/0.2563, allocations: 74 kB / 440.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000163/0.2565, allocations: 112 kB / 441 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001652/0.2581, allocations: 0.9079 MB / 441.9 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.356e-05/0.2582, allocations: 15.91 kB / 441.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.134e-05/0.2582, allocations: 43.94 kB / 441.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.005e-05/0.2583, allocations: 24 kB / 442 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001288/0.2596, allocations: 0.6403 MB / 442.6 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004633/0.2642, allocations: 2.754 MB / 445.4 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001318/0.2655, allocations: 0.5773 MB / 445.9 MB, free: 7.566 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005028/0.266, allocations: 270.7 kB / 446.2 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.529e-05/0.2661, allocations: 8.656 kB / 446.2 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006779/0.2667, allocations: 344.3 kB / 446.5 MB, free: 6.949 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 3.076e-06/0.2667, allocations: 3.938 kB / 446.5 MB, free: 6.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=100): time 0.005821/0.2726, allocations: 2.95 MB / 449.5 MB, free: 3.953 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.847e-05/0.2726, allocations: 68.34 kB / 449.6 MB, free: 3.875 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001097/0.2737, allocations: 0.9468 MB / 450.5 MB, free: 2.918 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.575e-05/0.2738, allocations: 49.7 kB / 450.6 MB, free: 2.863 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004079/0.2742, allocations: 0.5204 MB / 451.1 MB, free: 2.336 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002704/0.2744, allocations: 356.9 kB / 451.4 MB, free: 1.984 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002303/0.2747, allocations: 162.6 kB / 451.6 MB, free: 1.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.2748, allocations: 345.9 kB / 451.9 MB, free: 1.477 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005372/0.2754, allocations: 273.9 kB / 452.2 MB, free: 1.207 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006318/0.276, allocations: 429.4 kB / 452.6 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001209/0.2772, allocations: 0.7561 MB / 453.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.2772, allocations: 0 / 453.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001781/0.279, allocations: 1.037 MB / 454.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.68e-05/0.279, allocations: 8 kB / 454.4 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.279, allocations: 4 kB / 454.4 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000426/0.2794, allocations: 141.6 kB / 454.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007586/0.2802, allocations: 216.1 kB / 454.8 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003616/0.2838, allocations: 3.739 MB / 458.5 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004283/0.2842, allocations: 24 kB / 458.5 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.348e-05/0.2843, allocations: 39.98 kB / 458.6 MB, free: 10.49 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.0004132/0.2847, allocations: 301.6 kB / 458.9 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.2849, allocations: 107.3 kB / 459 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001811/0.2867, allocations: 0.979 MB / 459.9 MB, free: 9.082 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.2867, allocations: 8 kB / 459.9 MB, free: 9.074 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.2867, allocations: 7.938 kB / 460 MB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.2867, allocations: 3.984 kB / 460 MB, free: 9.062 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00377/0.2905, allocations: 2.271 MB / 462.2 MB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.316e-06/0.2905, allocations: 7.984 kB / 462.2 MB, free: 6.684 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007898/0.2913, allocations: 179.8 kB / 462.4 MB, free: 6.508 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003541/0.2916, allocations: 114 kB / 462.5 MB, free: 6.391 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.935e-05/0.2917, allocations: 32 kB / 462.6 MB, free: 6.359 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003142/0.2948, allocations: 3.382 MB / 465.9 MB, free: 2.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.2948, allocations: 4 kB / 465.9 MB, free: 2.746 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002278/0.2971, allocations: 1.447 MB / 467.4 MB, free: 1.238 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003131/0.2974, allocations: 175.2 kB / 467.6 MB, free: 1.066 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001139/0.2975, allocations: 31.98 kB / 467.6 MB, free: 1.035 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000397/0.2979, allocations: 20 kB / 467.6 MB, free: 1.016 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/0.2981, allocations: 80.89 kB / 467.7 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.122e-05/0.2981, allocations: 35.92 kB / 467.7 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007799/0.2989, allocations: 0.6708 MB / 468.4 MB, free: 244 kB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2989, allocations: 0 / 468.4 MB, free: 244 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008224/0.2997, allocations: 248 kB / 468.6 MB, free: 15.99 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 (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.004055/0.3038, allocations: 2.355 MB / 471 MB, free: 13.76 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001818/0.3056, allocations: 1.022 MB / 472 MB, free: 12.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3056, allocations: 0 / 472 MB, free: 12.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001043/0.3066, allocations: 0.6824 MB / 472.7 MB, free: 12.01 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009384/0.3076, allocations: 187.8 kB / 472.9 MB, free: 11.83 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01241/0.32, allocations: 8.757 MB / 481.6 MB, free: 2.773 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006089/0.3206, allocations: 0.5109 MB / 482.1 MB, free: 2.223 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003993/0.321, allocations: 111.6 kB / 482.3 MB, free: 2.109 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005837/0.3216, allocations: 451.3 kB / 482.7 MB, free: 1.668 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3216, allocations: 0 / 482.7 MB, free: 1.668 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05456/0.3762, allocations: 22.57 MB / 0.4934 GB, free: 11.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.75/15.13, allocations: 2.5 kB / 0.4934 GB, free: 11.32 MB / 414.1 MB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Vehicle_fmu --startTime=0 --stopTime=60 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Vehicle.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Vehicle/Vehicle.csv","/var/lib/jenkins1/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: 18.10472441406455]