Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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.001558/0.001558, allocations: 101.5 kB / 21.21 MB, free: 0.6484 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.001539/0.001539, 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.344/1.344, allocations: 225.7 MB / 253.3 MB, free: 12.83 MB / 206.1 MB " [Timeout remaining time 178] 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.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 51.92 kB / 371.2 MB, free: 9.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2188/0.2203, allocations: 52.18 MB / 423.3 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.005691/0.226, allocations: 4.363 MB / 427.7 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002419/0.2284, allocations: 1.289 MB / 429 MB, free: 8.719 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002203/0.2286, allocations: 11.94 kB / 429 MB, free: 8.707 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003587/0.229, allocations: 150.7 kB / 429.2 MB, free: 8.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006267/0.2296, allocations: 349.4 kB / 429.5 MB, free: 8.215 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003957/0.23, allocations: 215.7 kB / 429.7 MB, free: 8.004 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001092/0.2311, allocations: 1.027 MB / 430.7 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003316/0.2314, allocations: 206.4 kB / 430.9 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004879/0.2319, allocations: 418.5 kB / 431.3 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005303/0.2324, allocations: 446.2 kB / 431.8 MB, free: 5.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001253/0.2326, allocations: 88 kB / 431.9 MB, free: 5.824 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001557/0.2327, allocations: 92 kB / 432 MB, free: 5.734 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001783/0.2329, allocations: 199.3 kB / 432.1 MB, free: 5.539 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000409/0.2333, allocations: 402.3 kB / 432.5 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001063/0.2344, allocations: 1.082 MB / 433.6 MB, free: 4.059 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.2344, allocations: 4 kB / 433.6 MB, free: 4.055 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2344, allocations: 3.938 kB / 433.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.418e-06/0.2344, allocations: 0 / 433.6 MB, free: 4.051 MB / 334.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.00211/0.2365, allocations: 1.172 MB / 434.8 MB, free: 2.832 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.2365, allocations: 8.031 kB / 434.8 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.78e-05/0.2366, allocations: 17.5 kB / 434.8 MB, free: 2.809 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001546/0.2367, allocations: 112 kB / 434.9 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001824/0.2369, allocations: 108.3 kB / 435 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008196/0.2377, allocations: 475.2 kB / 435.5 MB, free: 2.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001973/0.2379, allocations: 156.7 kB / 435.7 MB, free: 1.914 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001007/0.238, allocations: 56.12 kB / 435.7 MB, free: 1.859 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001869/0.2399, allocations: 1.577 MB / 437.3 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.91e-05/0.2399, allocations: 11.89 kB / 437.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.91e-05/0.24, allocations: 28 kB / 437.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.24, allocations: 12 kB / 437.3 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001901/0.2419, allocations: 0.5203 MB / 437.9 MB, free: 15.42 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.004948/0.2469, allocations: 1.816 MB / 439.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00175/0.2486, allocations: 0.4883 MB / 440.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009197/0.2496, allocations: 265.8 kB / 440.4 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.819e-05/0.2496, allocations: 16.66 kB / 440.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001167/0.2508, allocations: 348.3 kB / 440.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 4.168e-06/0.2508, allocations: 0 / 440.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=84): time 0.0135/0.2643, allocations: 2.715 MB / 443.5 MB, free: 9.652 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006377/0.2649, allocations: 0.8276 MB / 444.3 MB, free: 8.625 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001173/0.2661, allocations: 0.5862 MB / 444.9 MB, free: 8.031 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001561/0.2663, allocations: 49.7 kB / 445 MB, free: 7.977 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004338/0.2667, allocations: 345.2 kB / 445.3 MB, free: 7.633 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003886/0.2671, allocations: 289.5 kB / 445.6 MB, free: 7.348 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003834/0.2675, allocations: 162.6 kB / 445.7 MB, free: 7.184 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000256/0.2677, allocations: 386.8 kB / 446.1 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001416/0.2691, allocations: 385.2 kB / 446.5 MB, free: 6.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002477/0.2716, allocations: 1.469 MB / 448 MB, free: 4.613 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002887/0.2745, allocations: 0.8042 MB / 448.8 MB, free: 3.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.2745, allocations: 3.938 kB / 448.8 MB, free: 3.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.006064/0.2806, allocations: 1.396 MB / 450.2 MB, free: 2.328 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.811e-05/0.2807, allocations: 63.41 kB / 450.2 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.2807, allocations: 0 / 450.2 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002513/0.2832, allocations: 450 kB / 450.7 MB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001735/0.2849, allocations: 179.8 kB / 450.8 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01551/0.3004, allocations: 6.694 MB / 457.5 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001227/0.3016, allocations: 79.84 kB / 457.6 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.741e-05/0.3017, allocations: 28 kB / 457.6 MB, free: 10.5 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.0004976/0.3022, allocations: 228.9 kB / 457.9 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001755/0.3024, allocations: 87.48 kB / 458 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002077/0.3026, allocations: 100 kB / 458 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.325e-06/0.3026, allocations: 8 kB / 458.1 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.3026, allocations: 0 / 458.1 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004699/0.3073, allocations: 1.401 MB / 459.5 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0085/0.3158, allocations: 2.14 MB / 461.6 MB, free: 6.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.3158, allocations: 0 / 461.6 MB, free: 6.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001653/0.3175, allocations: 175.8 kB / 461.8 MB, free: 6.168 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00234/0.3198, allocations: 386.1 kB / 462.1 MB, free: 5.781 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.482e-05/0.3199, allocations: 19.92 kB / 462.2 MB, free: 5.762 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01098/0.3309, allocations: 5.654 MB / 467.8 MB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.3309, allocations: 0 / 467.8 MB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004904/0.3358, allocations: 1.699 MB / 469.5 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004656/0.3363, allocations: 159.3 kB / 469.7 MB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001755/0.3364, allocations: 20 kB / 469.7 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008083/0.3373, allocations: 79.98 kB / 469.8 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002407/0.3375, allocations: 88.83 kB / 469.9 MB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.173e-05/0.3376, allocations: 20 kB / 469.9 MB, free: 13.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005918/0.3381, allocations: 419.1 kB / 470.3 MB, free: 13.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3381, allocations: 0 / 470.3 MB, free: 13.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001058/0.3392, allocations: 292 kB / 470.6 MB, free: 12.98 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.005342/0.3445, allocations: 2.275 MB / 472.8 MB, free: 10.67 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003655/0.3482, allocations: 1.51 MB / 474.4 MB, free: 9.086 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.3482, allocations: 4.109 kB / 474.4 MB, free: 9.082 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001668/0.3499, allocations: 0.8143 MB / 475.2 MB, free: 8.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001074/0.3509, allocations: 219.4 kB / 475.4 MB, free: 8.016 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01575/0.3667, allocations: 7.776 MB / 483.2 MB, free: 15.97 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003905/0.3671, allocations: 359.3 kB / 483.5 MB, free: 15.59 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004365/0.3675, allocations: 98.17 kB / 483.6 MB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004314/0.368, allocations: 291.3 kB / 483.9 MB, free: 15.21 MB / 398.1 MB Notification: Performance of SimCode: time 9.01e-07/0.368, allocations: 0 / 483.9 MB, free: 15.21 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0666/0.4346, allocations: 28.78 MB / 0.5007 GB, free: 2.938 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.07/14.5, allocations: 15.36 kB / 0.5007 GB, free: 2.926 MB / 414.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.94239993102383]