Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.6114/0.6114, allocations: 120.4 MB / 139.5 MB, free: 13 MB / 138.7 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.617e-06/3.617e-06, allocations: 0 / 216.7 MB, free: 8.562 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.525e-05/2.886e-05, allocations: 2.281 kB / 216.7 MB, free: 8.559 MB / 202.7 MB Notification: Automatically loaded package Complex 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.1.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss): time 1.068/1.068, allocations: 254.2 MB / 471 MB, free: 8.93 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.2818/1.35, allocations: 30.52 MB / 0.4897 GB, free: 0.9102 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002127/1.35, allocations: 5.25 kB / 0.4897 GB, free: 0.9102 MB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/PressureLosses/SingularPressureLoss.mo:25:3-27:16:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/PressureLosses/SingularPressureLoss.mo:28:3-29:52:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0003966/1.35, allocations: 103.2 kB / 0.4898 GB, free: 0.9102 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001976/1.351, allocations: 115.8 kB / 0.4899 GB, free: 0.9102 MB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.02511/1.376, allocations: 9.761 MB / 0.4995 GB, free: 15.15 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.000741/1.376, allocations: 347.6 kB / 0.4998 GB, free: 15.02 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002531/1.377, allocations: 91.28 kB / 0.4999 GB, free: 15 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003874/1.377, allocations: 218.7 kB / 0.5001 GB, free: 14.93 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001459/1.377, allocations: 69.06 kB / 0.5002 GB, free: 14.91 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.965e-05/1.377, allocations: 16.12 kB / 0.5002 GB, free: 14.91 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03022/1.407, allocations: 16.79 MB / 0.5166 GB, free: 3.289 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001169/1.408, allocations: 40.16 kB / 0.5166 GB, free: 3.254 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002377/1.408, allocations: 86.38 kB / 0.5167 GB, free: 3.176 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02455/1.432, allocations: 10.79 MB / 0.5272 GB, free: 8.875 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/1.432, allocations: 0 / 0.5272 GB, free: 8.875 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.154e-06/1.432, allocations: 0 / 0.5272 GB, free: 8.875 MB / 474.7 MB Notification: Performance of Transformations before backend: time 7.594e-06/1.432, allocations: 1.125 kB / 0.5272 GB, free: 8.875 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.004165/1.437, allocations: 1.389 MB / 0.5286 GB, free: 7.453 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/1.437, allocations: 12.94 kB / 0.5286 GB, free: 7.441 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.608e-05/1.437, allocations: 63.03 kB / 0.5287 GB, free: 7.371 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.565e-05/1.437, allocations: 31.75 kB / 0.5287 GB, free: 7.34 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002014/1.437, allocations: 168.6 kB / 0.5288 GB, free: 7.152 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.754e-05/1.437, allocations: 16.5 kB / 0.5289 GB, free: 7.137 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.888e-05/1.437, allocations: 17.84 kB / 0.5289 GB, free: 7.121 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00033/1.437, allocations: 296.8 kB / 0.5292 GB, free: 6.809 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/1.437, allocations: 0 / 0.5292 GB, free: 6.809 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.823e-05/1.437, allocations: 12 kB / 0.5292 GB, free: 6.797 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.386e-05/1.437, allocations: 14.53 kB / 0.5292 GB, free: 6.785 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001789/1.437, allocations: 160.2 kB / 0.5293 GB, free: 6.625 MB / 474.7 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.01914/1.457, allocations: 10.83 MB / 0.5399 GB, free: 11.9 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002734/1.457, allocations: 99.03 kB / 0.54 GB, free: 11.79 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.101e-05/1.457, allocations: 65.72 kB / 0.5401 GB, free: 11.73 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07612/1.533, allocations: 43.56 MB / 0.5826 GB, free: 140 kB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.026e-05/1.533, allocations: 39.36 kB / 0.5827 GB, free: 92 kB / 0.5105 GB Notification: Performance of pre-optimization done (n=32): time 2.394e-06/1.533, allocations: 0 / 0.5827 GB, free: 92 kB / 0.5105 GB Notification: Performance of matching and sorting (n=32): time 0.000667/1.534, allocations: 318.2 kB / 0.583 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.187e-05/1.534, allocations: 51.41 kB / 0.583 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001784/1.534, allocations: 223.8 kB / 0.5832 GB, free: 15.48 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/1.534, allocations: 25.7 kB / 0.5832 GB, free: 15.45 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 7.745e-05/1.534, allocations: 152.8 kB / 0.5834 GB, free: 15.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.226e-05/1.534, allocations: 105.7 kB / 0.5835 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.324e-05/1.534, allocations: 53.64 kB / 0.5835 GB, free: 15.14 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.685e-05/1.534, allocations: 338.8 kB / 0.5839 GB, free: 14.8 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.572e-05/1.534, allocations: 68.25 kB / 0.5839 GB, free: 14.73 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.577e-05/1.534, allocations: 118.2 kB / 0.584 GB, free: 14.61 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001748/1.535, allocations: 205.4 kB / 0.5842 GB, free: 14.39 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/1.535, allocations: 0 / 0.5842 GB, free: 14.39 MB / 0.5261 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003012/1.535, allocations: 278.1 kB / 0.5845 GB, free: 14.11 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/1.535, allocations: 4 kB / 0.5845 GB, free: 14.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/1.535, allocations: 4.75 kB / 0.5845 GB, free: 14.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005493/1.536, allocations: 145.4 kB / 0.5846 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.768e-05/1.536, allocations: 8 kB / 0.5847 GB, free: 13.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004013/1.536, allocations: 0.6165 MB / 0.5853 GB, free: 13.31 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.034e-05/1.536, allocations: 27.77 kB / 0.5853 GB, free: 13.28 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.013e-05/1.536, allocations: 4 kB / 0.5853 GB, free: 13.28 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (singularPressureLoss.C2.b,singularPressureLoss.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001141/1.536, allocations: 134.5 kB / 0.5854 GB, free: 13.14 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.821e-05/1.536, allocations: 23.92 kB / 0.5854 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005041/1.537, allocations: 0.5706 MB / 0.586 GB, free: 12.47 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001801/1.537, allocations: 191.5 kB / 0.5862 GB, free: 12.28 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/1.537, allocations: 0 / 0.5862 GB, free: 12.28 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/1.537, allocations: 0 / 0.5862 GB, free: 12.28 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005944/1.537, allocations: 0.6207 MB / 0.5868 GB, free: 11.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/1.537, allocations: 0 / 0.5868 GB, free: 11.61 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.427e-05/1.538, allocations: 12 kB / 0.5868 GB, free: 11.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002617/1.538, allocations: 115.4 kB / 0.5869 GB, free: 11.48 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/1.538, allocations: 3.938 kB / 0.5869 GB, free: 11.48 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003518/1.538, allocations: 0.6351 MB / 0.5875 GB, free: 10.82 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/1.538, allocations: 0 / 0.5875 GB, free: 10.82 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002438/1.538, allocations: 311 kB / 0.5878 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 5.024e-05/1.538, allocations: 27.83 kB / 0.5879 GB, free: 10.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.752e-05/1.538, allocations: 15.89 kB / 0.5879 GB, free: 10.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.191e-05/1.539, allocations: 4.906 kB / 0.5879 GB, free: 10.45 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.717e-05/1.539, allocations: 8.547 kB / 0.5879 GB, free: 10.45 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.965e-06/1.539, allocations: 7.984 kB / 0.5879 GB, free: 10.44 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001662/1.539, allocations: 229.9 kB / 0.5881 GB, free: 10.21 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6e-08/1.539, allocations: 0 / 0.5881 GB, free: 10.21 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002958/1.542, allocations: 1.2 MB / 0.5893 GB, free: 9.012 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005922/1.548, allocations: 2.649 MB / 0.5919 GB, free: 6.566 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0005007/1.548, allocations: 201.5 kB / 0.5921 GB, free: 6.363 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/1.548, allocations: 0 / 0.5921 GB, free: 6.363 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001313/1.548, allocations: 81.7 kB / 0.5921 GB, free: 6.285 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005297/1.549, allocations: 126.6 kB / 0.5923 GB, free: 6.172 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004279/1.553, allocations: 2.95 MB / 0.5951 GB, free: 3.113 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001188/1.553, allocations: 159.5 kB / 0.5953 GB, free: 2.934 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0001111/1.553, allocations: 23.41 kB / 0.5953 GB, free: 2.914 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002531/1.554, allocations: 88.47 kB / 0.5954 GB, free: 2.828 MB / 0.5261 GB Notification: Performance of SimCode: time 2.024e-06/1.554, allocations: 0 / 0.5954 GB, free: 2.828 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07614/1.63, allocations: 48.53 MB / 0.6428 GB, free: 2.645 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.02/11.65, allocations: 11.78 kB / 0.6428 GB, free: 2.637 MB / 0.573 GB " [Timeout remaining time 648] (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.44677675049752] Failed to read output from testmodel.py, exit status != 0: 12.028545884415507 12.15435773 10.494217663 Calling exit ...