Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.PumpAndValve,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",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.002105/0.002105, allocations: 105.3 kB / 17.58 MB, free: 5.445 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.002717/0.002718, allocations: 191.9 kB / 18.51 MB, free: 4.523 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.468/2.468, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.002048/0.002048, allocations: 51.92 kB / 280.8 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1613/0.1634, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.00709/0.1705, allocations: 4.354 MB / 331.7 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003075/0.1737, allocations: 1.274 MB / 333 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008349/0.1745, allocations: 7.938 kB / 333 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006581/0.1753, allocations: 130.8 kB / 333.1 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001379/0.1767, allocations: 269.7 kB / 333.4 MB, free: 14.31 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000694/0.1774, allocations: 191.6 kB / 333.6 MB, free: 14.12 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001532/0.1789, allocations: 0.9296 MB / 334.5 MB, free: 13.19 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005462/0.1795, allocations: 240.5 kB / 334.8 MB, free: 12.95 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008633/0.1804, allocations: 362.7 kB / 335.1 MB, free: 12.59 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008846/0.1813, allocations: 398.3 kB / 335.5 MB, free: 12.2 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002321/0.1815, allocations: 76 kB / 335.6 MB, free: 12.12 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002869/0.1818, allocations: 76 kB / 335.7 MB, free: 12.05 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001654/0.182, allocations: 175.3 kB / 335.8 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000453/0.1824, allocations: 414.1 kB / 336.2 MB, free: 11.47 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009975/0.1834, allocations: 0.9071 MB / 337.1 MB, free: 10.56 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.1835, allocations: 3.984 kB / 337.1 MB, free: 10.56 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1835, allocations: 4 kB / 337.1 MB, free: 10.55 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.1835, allocations: 0 / 337.1 MB, free: 10.55 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.002291/0.1858, allocations: 1.105 MB / 338.2 MB, free: 9.383 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.1859, allocations: 8.031 kB / 338.3 MB, free: 9.375 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001592/0.186, allocations: 95.7 kB / 338.3 MB, free: 9.273 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001659/0.1862, allocations: 91.94 kB / 338.4 MB, free: 9.184 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006909/0.1869, allocations: 480.5 kB / 338.9 MB, free: 8.676 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001599/0.1871, allocations: 101 kB / 339 MB, free: 8.566 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.227e-05/0.1872, allocations: 52.36 kB / 339.1 MB, free: 8.516 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001168/0.1883, allocations: 0.6631 MB / 339.7 MB, free: 7.773 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/0.1884, allocations: 0 / 339.7 MB, free: 7.773 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.97e-05/0.1884, allocations: 23.94 kB / 339.7 MB, free: 7.75 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.601e-05/0.1885, allocations: 12 kB / 339.8 MB, free: 7.738 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001076/0.1895, allocations: 451.7 kB / 340.2 MB, free: 7.301 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.003532/0.1931, allocations: 1.975 MB / 342.2 MB, free: 5.195 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002007/0.1951, allocations: 0.6823 MB / 342.9 MB, free: 4.488 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005563/0.1957, allocations: 258 kB / 343.1 MB, free: 4.234 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.908e-05/0.1957, allocations: 12.42 kB / 343.1 MB, free: 4.223 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.813e-05/0.1958, allocations: 43 kB / 343.2 MB, free: 4.172 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 4.609e-06/0.1958, allocations: 4 kB / 343.2 MB, free: 4.168 MB / 286.1 MB Notification: Performance of matching and sorting (n=54): time 0.005285/0.2011, allocations: 1.484 MB / 344.6 MB, free: 2.609 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003375/0.2015, allocations: 0.5722 MB / 345.2 MB, free: 1.902 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008362/0.2023, allocations: 0.5343 MB / 345.8 MB, free: 1.359 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.09e-05/0.2024, allocations: 45.64 kB / 345.8 MB, free: 1.309 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000246/0.2027, allocations: 288.5 kB / 346.1 MB, free: 1.023 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002267/0.2029, allocations: 185.3 kB / 346.3 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002245/0.2031, allocations: 110.1 kB / 346.4 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.2033, allocations: 378.7 kB / 346.7 MB, free: 352 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005199/0.2038, allocations: 197 kB / 346.9 MB, free: 156 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007493/0.2046, allocations: 412.4 kB / 347.3 MB, free: 15.67 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001187/0.2058, allocations: 492.5 kB / 347.8 MB, free: 15.17 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.2058, allocations: 0 / 347.8 MB, free: 15.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002611/0.2084, allocations: 0.8068 MB / 348.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.543e-05/0.2085, allocations: 37.69 kB / 348.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.2085, allocations: 4.031 kB / 348.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001428/0.21, allocations: 218.3 kB / 348.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0012/0.2112, allocations: 131.8 kB / 349 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01116/0.2224, allocations: 5.618 MB / 354.6 MB, free: 7.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001258/0.2237, allocations: 79.55 kB / 354.7 MB, free: 7.832 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/0.2238, allocations: 23.98 kB / 354.7 MB, free: 7.809 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * 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: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(5,2), (1,1), (1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0004919/0.2243, allocations: 189.7 kB / 354.9 MB, free: 7.613 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000239/0.2246, allocations: 75.16 kB / 355 MB, free: 7.539 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002845/0.2274, allocations: 0.7695 MB / 355.8 MB, free: 6.746 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-05/0.2275, allocations: 16 kB / 355.8 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.2275, allocations: 4 kB / 355.8 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002465/0.23, allocations: 1.035 MB / 356.8 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004504/0.2345, allocations: 1.506 MB / 358.3 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/0.2345, allocations: 0 / 358.3 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000906/0.2354, allocations: 123.8 kB / 358.4 MB, free: 3.891 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008893/0.2364, allocations: 181.5 kB / 358.6 MB, free: 3.707 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.929e-05/0.2364, allocations: 12 kB / 358.6 MB, free: 3.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006985/0.2434, allocations: 3.794 MB / 362.4 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.2435, allocations: 3.938 kB / 362.4 MB, free: 15.61 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003624/0.2471, allocations: 1.07 MB / 363.5 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007209/0.2479, allocations: 200.2 kB / 363.7 MB, free: 14.31 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002121/0.2481, allocations: 12 kB / 363.7 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006312/0.2488, allocations: 44.09 kB / 363.7 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001595/0.2489, allocations: 44.5 kB / 363.8 MB, free: 14.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.055e-05/0.249, allocations: 23.92 kB / 363.8 MB, free: 14.19 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005955/0.2496, allocations: 382.8 kB / 364.2 MB, free: 13.82 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.9e-07/0.2496, allocations: 0 / 364.2 MB, free: 13.82 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001047/0.2506, allocations: 219.8 kB / 364.4 MB, free: 13.6 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 42 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003808/0.2545, allocations: 1.634 MB / 366 MB, free: 11.93 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003124/0.2576, allocations: 1.053 MB / 367.1 MB, free: 10.82 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/0.2577, allocations: 0 / 367.1 MB, free: 10.82 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001291/0.259, allocations: 0.5318 MB / 367.6 MB, free: 10.26 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001393/0.2604, allocations: 190.5 kB / 367.8 MB, free: 10.08 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01398/0.2744, allocations: 6.31 MB / 374.1 MB, free: 3.645 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009547/0.2754, allocations: 0.8995 MB / 375 MB, free: 2.715 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008566/0.2763, allocations: 73.14 kB / 375.1 MB, free: 2.645 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005428/0.2769, allocations: 235.4 kB / 375.3 MB, free: 2.418 MB / 318.1 MB Notification: Performance of SimCode: time 1.693e-06/0.2769, allocations: 0 / 375.3 MB, free: 2.418 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3563/0.6332, allocations: 19.89 MB / 395.2 MB, free: 47.33 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.46/19.09, allocations: 2.5 kB / 395.2 MB, free: 47.33 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_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_PumpAndValve.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/PumpAndValve/PumpAndValve.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches