Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002062/0.002062, allocations: 104 kB / 17.58 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002067/0.002067, allocations: 192.2 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.575/2.575, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002608/0.002609, allocations: 56.42 kB / 280.8 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1785/0.1812, allocations: 46.62 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.01045/0.1917, allocations: 4.834 MB / 332.2 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004873/0.1966, allocations: 1.399 MB / 333.6 MB, free: 14.11 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001325/0.198, allocations: 8 kB / 333.6 MB, free: 14.1 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009516/0.1991, allocations: 150.7 kB / 333.8 MB, free: 13.95 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002262/0.2014, allocations: 337.4 kB / 334.1 MB, free: 13.62 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001276/0.2027, allocations: 223.5 kB / 334.3 MB, free: 13.4 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002446/0.2052, allocations: 1.035 MB / 335.3 MB, free: 12.36 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000606/0.2058, allocations: 289.9 kB / 335.6 MB, free: 12.07 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001068/0.2069, allocations: 398.6 kB / 336 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001122/0.2081, allocations: 454.1 kB / 336.5 MB, free: 11.23 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003134/0.2084, allocations: 84 kB / 336.5 MB, free: 11.15 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000396/0.2088, allocations: 92 kB / 336.6 MB, free: 11.06 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002667/0.2091, allocations: 203.2 kB / 336.8 MB, free: 10.86 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009285/0.21, allocations: 473.8 kB / 337.3 MB, free: 10.39 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00157/0.2116, allocations: 1.055 MB / 338.4 MB, free: 9.336 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.2116, allocations: 0 / 338.4 MB, free: 9.336 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2116, allocations: 0 / 338.4 MB, free: 9.336 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.21e-05/0.2117, allocations: 0 / 338.4 MB, free: 9.336 MB / 286.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.003478/0.2152, allocations: 1.22 MB / 339.6 MB, free: 8.047 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.189e-05/0.2153, allocations: 12.03 kB / 339.6 MB, free: 8.035 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000396/0.2157, allocations: 107.9 kB / 339.7 MB, free: 7.918 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003339/0.216, allocations: 99.81 kB / 339.8 MB, free: 7.82 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001102/0.2171, allocations: 0.5122 MB / 340.3 MB, free: 7.27 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001844/0.2173, allocations: 105.3 kB / 340.4 MB, free: 7.156 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/0.2174, allocations: 60.3 kB / 340.5 MB, free: 7.098 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001634/0.2191, allocations: 0.8127 MB / 341.3 MB, free: 6.18 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.686e-05/0.2191, allocations: 0 / 341.3 MB, free: 6.18 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.365e-05/0.2192, allocations: 28 kB / 341.3 MB, free: 6.152 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.637e-05/0.2192, allocations: 12 kB / 341.3 MB, free: 6.141 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001836/0.2211, allocations: 0.5125 MB / 341.8 MB, free: 5.629 MB / 286.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.004717/0.2258, allocations: 2.186 MB / 344 MB, free: 3.305 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001426/0.2273, allocations: 0.5214 MB / 344.5 MB, free: 2.773 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006436/0.2279, allocations: 262.4 kB / 344.8 MB, free: 2.516 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.509e-05/0.228, allocations: 9.656 kB / 344.8 MB, free: 2.508 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009748/0.229, allocations: 330.9 kB / 345.1 MB, free: 2.176 MB / 286.1 MB Notification: Performance of pre-optimization done (n=56): time 4.078e-06/0.229, allocations: 0 / 345.1 MB, free: 2.176 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.005516/0.2345, allocations: 1.485 MB / 346.6 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000527/0.2351, allocations: 0.8271 MB / 347.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001029/0.2361, allocations: 0.59 MB / 348 MB, free: 15.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001099/0.2362, allocations: 41.7 kB / 348.1 MB, free: 14.97 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004311/0.2367, allocations: 336.7 kB / 348.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002576/0.237, allocations: 189.3 kB / 348.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000263/0.2372, allocations: 134.1 kB / 348.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002303/0.2375, allocations: 378.8 kB / 349.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006352/0.2381, allocations: 209 kB / 349.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00096/0.2391, allocations: 0.5208 MB / 349.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001335/0.2404, allocations: 0.5692 MB / 350.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.2404, allocations: 0 / 350.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002509/0.243, allocations: 0.8974 MB / 351.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.568e-05/0.2431, allocations: 59.39 kB / 351.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.2431, allocations: 4 kB / 351.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008825/0.244, allocations: 221.5 kB / 351.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007213/0.2447, allocations: 123.8 kB / 351.7 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008862/0.2536, allocations: 4.596 MB / 356.3 MB, free: 6.254 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001174/0.2548, allocations: 79.47 kB / 356.3 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001126/0.2549, allocations: 24 kB / 356.4 MB, free: 6.152 MB / 302.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.0005486/0.2555, allocations: 213.8 kB / 356.6 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002552/0.2558, allocations: 83 kB / 356.7 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001977/0.256, allocations: 82.84 kB / 356.7 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/0.256, allocations: 8 kB / 356.7 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.256, allocations: 0 / 356.7 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003095/0.2591, allocations: 1.043 MB / 357.8 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0047/0.2638, allocations: 1.552 MB / 359.3 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.2638, allocations: 0 / 359.3 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007841/0.2646, allocations: 103.9 kB / 359.4 MB, free: 2.883 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006876/0.2654, allocations: 177.5 kB / 359.6 MB, free: 2.703 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.029e-05/0.2654, allocations: 16 kB / 359.6 MB, free: 2.688 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008204/0.2736, allocations: 3.936 MB / 363.6 MB, free: 14.47 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.2737, allocations: 0 / 363.6 MB, free: 14.47 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004052/0.2777, allocations: 1.035 MB / 364.6 MB, free: 13.41 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006892/0.2785, allocations: 212.1 kB / 364.8 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003256/0.2788, allocations: 16 kB / 364.8 MB, free: 13.17 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001198/0.28, allocations: 44.02 kB / 364.9 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002669/0.2803, allocations: 56.48 kB / 364.9 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.306e-05/0.2804, allocations: 12.3 kB / 364.9 MB, free: 13.06 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001163/0.2816, allocations: 427 kB / 365.3 MB, free: 12.65 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.2816, allocations: 3.938 kB / 365.4 MB, free: 12.64 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001797/0.2834, allocations: 255.7 kB / 365.6 MB, free: 12.39 MB / 318.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.004502/0.2879, allocations: 1.599 MB / 367.2 MB, free: 10.76 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003885/0.2918, allocations: 1.031 MB / 368.2 MB, free: 9.676 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.917e-06/0.2919, allocations: 0.5 kB / 368.2 MB, free: 9.676 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001785/0.2937, allocations: 0.5472 MB / 368.8 MB, free: 9.105 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002133/0.2958, allocations: 211 kB / 369 MB, free: 8.898 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.022/0.3179, allocations: 6.394 MB / 375.4 MB, free: 2.332 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009286/0.3189, allocations: 0.92 MB / 376.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006092/0.3195, allocations: 89.2 kB / 376.4 MB, free: 1.293 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004351/0.32, allocations: 263.3 kB / 376.6 MB, free: 1.035 MB / 318.1 MB Notification: Performance of SimCode: time 1.322e-06/0.32, allocations: 0 / 376.6 MB, free: 1.035 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3713/0.6913, allocations: 22.43 MB / 399.1 MB, free: 43.72 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.58/19.27, allocations: 19.59 kB / 399.1 MB, free: 43.7 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches