Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001122/0.001122, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001231/0.001231, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.265/1.265, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 59.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2167/0.218, allocations: 50.54 MB / 408.7 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.005357/0.2234, allocations: 4.848 MB / 413.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002037/0.2255, allocations: 1.374 MB / 415 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000231/0.2257, allocations: 11.94 kB / 415 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003716/0.2261, allocations: 158.7 kB / 415.1 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006195/0.2267, allocations: 345.4 kB / 415.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003956/0.2271, allocations: 207.7 kB / 415.7 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008952/0.228, allocations: 1.042 MB / 416.7 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003669/0.2284, allocations: 293.9 kB / 417 MB, free: 9.234 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004543/0.2289, allocations: 414.5 kB / 417.4 MB, free: 8.828 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000434/0.2293, allocations: 450.1 kB / 417.8 MB, free: 8.387 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001084/0.2294, allocations: 88 kB / 417.9 MB, free: 8.301 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000131/0.2296, allocations: 95.94 kB / 418 MB, free: 8.207 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001533/0.2297, allocations: 191.4 kB / 418.2 MB, free: 8.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003975/0.2301, allocations: 473.8 kB / 418.7 MB, free: 7.555 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009515/0.2311, allocations: 1.077 MB / 419.8 MB, free: 6.477 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.2311, allocations: 3.938 kB / 419.8 MB, free: 6.473 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2311, allocations: 0 / 419.8 MB, free: 6.473 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.073e-05/0.2311, allocations: 0 / 419.8 MB, free: 6.473 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.002022/0.2332, allocations: 1.247 MB / 421 MB, free: 5.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.2332, allocations: 12.03 kB / 421 MB, free: 5.148 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001595/0.2334, allocations: 108 kB / 421.1 MB, free: 5.035 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001493/0.2335, allocations: 100.4 kB / 421.2 MB, free: 4.938 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007259/0.2343, allocations: 0.5362 MB / 421.8 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001368/0.2344, allocations: 109.3 kB / 421.9 MB, free: 4.238 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.345e-05/0.2345, allocations: 52.38 kB / 421.9 MB, free: 4.188 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001279/0.2358, allocations: 0.8049 MB / 422.7 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.2358, allocations: 0 / 422.7 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.875e-05/0.2359, allocations: 32 kB / 422.7 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.2359, allocations: 12 kB / 422.8 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001167/0.2371, allocations: 0.5086 MB / 423.3 MB, free: 2.727 MB / 334.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.003137/0.2402, allocations: 2.175 MB / 425.4 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001249/0.2415, allocations: 0.5331 MB / 426 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000585/0.2421, allocations: 254.4 kB / 426.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.287e-05/0.2421, allocations: 17.64 kB / 426.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007361/0.2429, allocations: 330.9 kB / 426.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.184e-06/0.2429, allocations: 0 / 426.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.004825/0.2477, allocations: 1.482 MB / 428 MB, free: 13.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003714/0.2481, allocations: 0.8233 MB / 428.9 MB, free: 12.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006735/0.2488, allocations: 0.5979 MB / 429.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.119e-05/0.2489, allocations: 41.7 kB / 429.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002492/0.2491, allocations: 345.1 kB / 429.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001563/0.2493, allocations: 198.3 kB / 430 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002034/0.2495, allocations: 134.2 kB / 430.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.2497, allocations: 378.8 kB / 430.5 MB, free: 11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005557/0.2502, allocations: 209 kB / 430.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007922/0.251, allocations: 0.5208 MB / 431.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001142/0.2522, allocations: 0.5653 MB / 431.8 MB, free: 9.539 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.2522, allocations: 0 / 431.8 MB, free: 9.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002119/0.2543, allocations: 0.9016 MB / 432.7 MB, free: 8.617 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.981e-05/0.2544, allocations: 67.39 kB / 432.8 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.138e-06/0.2544, allocations: 4 kB / 432.8 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006769/0.2551, allocations: 217.5 kB / 433 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005927/0.2557, allocations: 115.8 kB / 433.1 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006214/0.2619, allocations: 4.611 MB / 437.7 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007494/0.2627, allocations: 83.62 kB / 437.8 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.686e-05/0.2627, allocations: 20 kB / 437.8 MB, free: 3.223 MB / 350.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 (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(9,3), (1,11)} Notification: Performance of prepare postOptimizeDAE: time 0.000321/0.2631, allocations: 209.9 kB / 438 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.2632, allocations: 91.42 kB / 438.1 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001358/0.2633, allocations: 74.86 kB / 438.2 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.2633, allocations: 12 kB / 438.2 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.2634, allocations: 192 / 438.2 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002012/0.2654, allocations: 1.05 MB / 439.3 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002608/0.268, allocations: 1.544 MB / 440.8 MB, free: 40 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.268, allocations: 11.94 kB / 440.8 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006045/0.2686, allocations: 107.8 kB / 440.9 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005488/0.2692, allocations: 165.6 kB / 441.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.045e-05/0.2692, allocations: 11.98 kB / 441.1 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004877/0.2741, allocations: 3.94 MB / 445 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2741, allocations: 0 / 445 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002325/0.2765, allocations: 1.028 MB / 446.1 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003429/0.2768, allocations: 216.5 kB / 446.3 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001313/0.277, allocations: 19.98 kB / 446.3 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006176/0.2776, allocations: 48.02 kB / 446.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.2777, allocations: 52.44 kB / 446.4 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.359e-05/0.2778, allocations: 19.98 kB / 446.4 MB, free: 10.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004926/0.2783, allocations: 415.1 kB / 446.8 MB, free: 9.703 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2783, allocations: 0 / 446.8 MB, free: 9.703 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008076/0.2791, allocations: 251.8 kB / 447.1 MB, free: 9.457 MB / 366.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 (41): * Single equations (assignments): 37 * 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): 0 systems * 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.002593/0.2817, allocations: 1.596 MB / 448.7 MB, free: 7.824 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002246/0.284, allocations: 1.015 MB / 449.7 MB, free: 6.758 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.284, allocations: 8.062 kB / 449.7 MB, free: 6.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009493/0.2849, allocations: 0.5394 MB / 450.2 MB, free: 6.188 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009083/0.2859, allocations: 211.3 kB / 450.4 MB, free: 5.984 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01/0.2959, allocations: 6.15 MB / 456.6 MB, free: 15.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005256/0.2964, allocations: 0.916 MB / 457.5 MB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003729/0.2968, allocations: 89.2 kB / 457.6 MB, free: 14.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003352/0.2971, allocations: 263.3 kB / 457.8 MB, free: 14.38 MB / 382.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2972, allocations: 0 / 457.8 MB, free: 14.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05029/0.3475, allocations: 22.77 MB / 480.6 MB, free: 7.984 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.14/12.48, allocations: 14.72 kB / 480.6 MB, free: 7.973 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.csv","/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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches