Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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.001227/0.001227, allocations: 121 kB / 18.5 MB, free: 4.562 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.001252/0.001252, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.367/1.367, allocations: 230.6 MB / 254.8 MB, free: 15.11 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.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001594, allocations: 47.92 kB / 373.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09316/0.09475, allocations: 53.33 MB / 427 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.1853/0.2801, allocations: 4.867 MB / 431.9 MB, free: 7.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002709/0.2828, allocations: 1.389 MB / 433.3 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002506/0.2831, allocations: 12.53 kB / 433.3 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003404/0.2834, allocations: 157.2 kB / 433.4 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005538/0.2839, allocations: 346.2 kB / 433.8 MB, free: 7.359 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003606/0.2843, allocations: 214 kB / 434 MB, free: 7.352 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007437/0.285, allocations: 1.022 MB / 435 MB, free: 7.094 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000258/0.2853, allocations: 202.3 kB / 435.2 MB, free: 7.043 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004147/0.2857, allocations: 423.2 kB / 435.6 MB, free: 6.965 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004079/0.2861, allocations: 451 kB / 436 MB, free: 6.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001203/0.2862, allocations: 90.17 kB / 436.1 MB, free: 6.871 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001444/0.2864, allocations: 90.03 kB / 436.2 MB, free: 6.871 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001401/0.2865, allocations: 196.1 kB / 436.4 MB, free: 6.836 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003689/0.2869, allocations: 471.9 kB / 436.9 MB, free: 6.715 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001012/0.2879, allocations: 1.083 MB / 438 MB, free: 6.344 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2879, allocations: 2.312 kB / 438 MB, free: 6.344 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2879, allocations: 0 / 438 MB, free: 6.344 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.2879, allocations: 0.5 kB / 438 MB, free: 6.344 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001922/0.2899, allocations: 1.244 MB / 439.2 MB, free: 5.465 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.2899, allocations: 10.47 kB / 439.2 MB, free: 5.465 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.977e-05/0.2899, allocations: 23.78 kB / 439.2 MB, free: 5.457 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001378/0.2901, allocations: 111.2 kB / 439.3 MB, free: 5.375 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001496/0.2902, allocations: 106 kB / 439.4 MB, free: 5.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006597/0.2909, allocations: 0.5258 MB / 440 MB, free: 4.938 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001235/0.291, allocations: 105.7 kB / 440.1 MB, free: 4.855 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.145e-05/0.2911, allocations: 62.11 kB / 440.1 MB, free: 4.832 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001224/0.2923, allocations: 0.8231 MB / 441 MB, free: 4.301 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.2923, allocations: 9.969 kB / 441 MB, free: 4.293 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.205e-05/0.2924, allocations: 24.78 kB / 441 MB, free: 4.277 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/0.2924, allocations: 14.12 kB / 441 MB, free: 4.277 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001185/0.2936, allocations: 0.5252 MB / 441.5 MB, free: 4.113 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003013/0.2966, allocations: 2.213 MB / 443.7 MB, free: 2.711 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/0.2977, allocations: 498.2 kB / 444.2 MB, free: 2.535 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005697/0.2983, allocations: 260 kB / 444.5 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.727e-05/0.2984, allocations: 18.16 kB / 444.5 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007213/0.2991, allocations: 346.2 kB / 444.8 MB, free: 2.297 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.174e-06/0.2991, allocations: 192 / 444.8 MB, free: 2.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=84): time 0.008577/0.3077, allocations: 2.944 MB / 447.8 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001814/0.3078, allocations: 0.8253 MB / 448.6 MB, free: 15.97 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007405/0.3086, allocations: 0.5874 MB / 449.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.573e-05/0.3087, allocations: 45.45 kB / 449.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002903/0.309, allocations: 342.2 kB / 449.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002752/0.3092, allocations: 301.4 kB / 449.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002771/0.3095, allocations: 161.1 kB / 450 MB, free: 15.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002156/0.3097, allocations: 385 kB / 450.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009527/0.3107, allocations: 328.2 kB / 450.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00125/0.3119, allocations: 0.655 MB / 451.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001942/0.3139, allocations: 0.8036 MB / 452.2 MB, free: 13.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.3139, allocations: 1.062 kB / 452.2 MB, free: 13.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004046/0.3179, allocations: 1.339 MB / 453.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.889e-05/0.318, allocations: 59.95 kB / 453.6 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.318, allocations: 2.875 kB / 453.6 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001759/0.3197, allocations: 450.9 kB / 454 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/0.3208, allocations: 181.3 kB / 454.2 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01139/0.3322, allocations: 7.082 MB / 461.3 MB, free: 7.285 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001131/0.3333, allocations: 79.14 kB / 461.4 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.269e-05/0.3334, allocations: 30.64 kB / 461.4 MB, free: 7.238 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 (oneWayValve.backward,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(9,3), (1,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0004271/0.3338, allocations: 229.1 kB / 461.6 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001427/0.334, allocations: 89.58 kB / 461.7 MB, free: 7.012 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001981/0.3342, allocations: 93.25 kB / 461.8 MB, free: 6.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.3342, allocations: 9.25 kB / 461.8 MB, free: 6.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-05/0.3342, allocations: 5.266 kB / 461.8 MB, free: 6.926 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003249/0.3375, allocations: 1.388 MB / 463.2 MB, free: 5.914 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005828/0.3433, allocations: 2.343 MB / 465.5 MB, free: 4.352 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.68e-06/0.3433, allocations: 0.875 kB / 465.5 MB, free: 4.352 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001105/0.3444, allocations: 178.7 kB / 465.7 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001574/0.346, allocations: 375.7 kB / 466.1 MB, free: 4.113 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.509e-05/0.346, allocations: 27.77 kB / 466.1 MB, free: 4.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008642/0.3547, allocations: 6.034 MB / 472.1 MB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3547, allocations: 1.078 kB / 472.1 MB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004878/0.3595, allocations: 1.698 MB / 473.8 MB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004519/0.36, allocations: 241.2 kB / 474.1 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001174/0.3601, allocations: 20.03 kB / 474.1 MB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007692/0.3609, allocations: 70.86 kB / 474.2 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001995/0.3611, allocations: 78.98 kB / 474.2 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.664e-05/0.3611, allocations: 25.92 kB / 474.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004763/0.3616, allocations: 420.2 kB / 474.7 MB, free: 13.13 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3616, allocations: 7.062 kB / 474.7 MB, free: 13.13 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009112/0.3625, allocations: 285.6 kB / 475 MB, free: 13.1 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (speed.phi) * Number of discrete variables: 4 ($whenCondition1,trapezoid.T_start,trapezoid.count,oneWayValve.backward) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,3), (1,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005055/0.3676, allocations: 2.272 MB / 477.2 MB, free: 11.6 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00342/0.371, allocations: 1.454 MB / 478.7 MB, free: 10.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/0.371, allocations: 4 kB / 478.7 MB, free: 10.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001661/0.3727, allocations: 0.8065 MB / 479.5 MB, free: 9.652 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009749/0.3736, allocations: 221.7 kB / 479.7 MB, free: 9.445 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01541/0.389, allocations: 7.563 MB / 487.3 MB, free: 1.672 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005784/0.3896, allocations: 0.9454 MB / 488.2 MB, free: 0.6992 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004682/0.3901, allocations: 102.8 kB / 488.3 MB, free: 0.6016 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000414/0.3905, allocations: 291.3 kB / 488.6 MB, free: 324 kB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3905, allocations: 4 kB / 488.6 MB, free: 320 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06342/0.4539, allocations: 26.92 MB / 0.5035 GB, free: 5.816 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.11/13.56, allocations: 11.98 kB / 0.5035 GB, free: 5.805 MB / 414.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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: 16.015620121965185]