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 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8355/0.8355, allocations: 150.9 MB / 166.5 MB, free: 14.38 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005149/0.0005149, allocations: 17.34 kB / 236.6 MB, free: 2.004 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06039/0.06093, allocations: 31.34 MB / 267.9 MB, free: 7.555 MB / 222.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss): time 1.665/1.726, allocations: 295.2 MB / 0.55 GB, free: 12.97 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04282/1.769, allocations: 34.42 MB / 0.5836 GB, free: 10.42 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000225/1.769, allocations: 0 / 0.5836 GB, free: 10.42 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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.0004103/1.77, allocations: 116.1 kB / 0.5837 GB, free: 10.31 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002073/1.77, allocations: 95.23 kB / 0.5838 GB, free: 10.21 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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.02463/1.795, allocations: 9.557 MB / 0.5931 GB, free: 0.6484 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.000546/1.795, allocations: 338.4 kB / 0.5935 GB, free: 324 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002114/1.795, allocations: 100.5 kB / 0.5935 GB, free: 220 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002398/1.796, allocations: 143.4 kB / 0.5937 GB, free: 76 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001667/1.796, allocations: 103.5 kB / 0.5938 GB, free: 15.97 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.034e-05/1.796, allocations: 20 kB / 0.5938 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0332/1.829, allocations: 17.89 MB / 0.6113 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.193e-05/1.829, allocations: 39.84 kB / 0.6113 GB, free: 14 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002029/1.83, allocations: 131.3 kB / 0.6114 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02026/1.85, allocations: 8.415 MB / 0.6197 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/1.85, allocations: 4 kB / 0.6197 GB, free: 5.434 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.793e-06/1.85, allocations: 3.938 kB / 0.6197 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.776e-06/1.85, allocations: 0 / 0.6197 GB, free: 5.43 MB / 0.4981 GB 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.004191/1.854, allocations: 1.475 MB / 0.6211 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/1.854, allocations: 12.03 kB / 0.6211 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.079e-05/1.854, allocations: 62.53 kB / 0.6212 GB, free: 3.816 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.209e-05/1.854, allocations: 31.75 kB / 0.6212 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002626/1.855, allocations: 226.7 kB / 0.6214 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.567e-05/1.855, allocations: 8.438 kB / 0.6214 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.151e-05/1.855, allocations: 24 kB / 0.6214 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004311/1.855, allocations: 290.7 kB / 0.6217 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/1.855, allocations: 0 / 0.6217 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.907e-05/1.855, allocations: 8 kB / 0.6217 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.827e-05/1.855, allocations: 15.92 kB / 0.6217 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002469/1.855, allocations: 152.5 kB / 0.6219 GB, free: 3.008 MB / 0.4981 GB 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.03914/1.894, allocations: 18.12 MB / 0.6396 GB, free: 15.01 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003556/1.895, allocations: 142.5 kB / 0.6397 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/1.895, allocations: 80.97 kB / 0.6398 GB, free: 14.78 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3362/2.231, allocations: 77.72 MB / 0.7157 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/2.231, allocations: 30.56 kB / 0.7157 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=32): time 2.525e-06/2.231, allocations: 1.344 kB / 0.7157 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=32): time 0.0007668/2.232, allocations: 404.5 kB / 0.7161 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.305e-05/2.232, allocations: 54.83 kB / 0.7162 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000185/2.232, allocations: 218.2 kB / 0.7164 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.058e-05/2.232, allocations: 27.08 kB / 0.7164 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 6.629e-05/2.232, allocations: 151.7 kB / 0.7165 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.557e-05/2.232, allocations: 108.6 kB / 0.7166 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.145e-05/2.233, allocations: 48.27 kB / 0.7167 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.257e-05/2.233, allocations: 333.3 kB / 0.717 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.886e-05/2.233, allocations: 66.36 kB / 0.7171 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/2.233, allocations: 118.9 kB / 0.7172 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001992/2.233, allocations: 191.2 kB / 0.7174 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/2.233, allocations: 1.188 kB / 0.7174 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003608/2.233, allocations: 288 kB / 0.7176 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/2.233, allocations: 5.812 kB / 0.7177 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/2.233, allocations: 1.125 kB / 0.7177 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007749/2.234, allocations: 145.1 kB / 0.7178 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.391e-05/2.234, allocations: 8.219 kB / 0.7178 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003783/2.235, allocations: 0.6164 MB / 0.7184 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.494e-05/2.235, allocations: 28.41 kB / 0.7184 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.149e-05/2.235, allocations: 3.094 kB / 0.7184 GB, free: 211.1 MB / 0.5919 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 9.426e-05/2.235, allocations: 139.3 kB / 0.7186 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.764e-05/2.235, allocations: 20.02 kB / 0.7186 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005281/2.235, allocations: 0.5709 MB / 0.7191 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002771/2.236, allocations: 206 kB / 0.7193 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/2.236, allocations: 1.656 kB / 0.7193 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/2.236, allocations: 4 kB / 0.7193 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006174/2.236, allocations: 0.6739 MB / 0.72 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/2.236, allocations: 0 / 0.72 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.306e-05/2.236, allocations: 15.78 kB / 0.72 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000315/2.237, allocations: 103.7 kB / 0.7201 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/2.237, allocations: 15.58 kB / 0.7201 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002981/2.237, allocations: 0.6248 MB / 0.7207 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/2.237, allocations: 3.281 kB / 0.7207 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002304/2.237, allocations: 308.8 kB / 0.721 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.526e-05/2.237, allocations: 101 kB / 0.7211 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.431e-05/2.237, allocations: 17.55 kB / 0.7211 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.984e-05/2.238, allocations: 7.906 kB / 0.7212 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.06e-05/2.238, allocations: 4.969 kB / 0.7212 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.324e-06/2.238, allocations: 10.44 kB / 0.7212 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001785/2.238, allocations: 231.8 kB / 0.7214 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.4e-07/2.238, allocations: 0 / 0.7214 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002708/2.24, allocations: 1.193 MB / 0.7226 GB, free: 209.5 MB / 0.5919 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.005365/2.246, allocations: 2.487 MB / 0.725 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005865/2.246, allocations: 230.8 kB / 0.7252 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/2.246, allocations: 2.906 kB / 0.7252 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001961/2.247, allocations: 83.47 kB / 0.7253 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007499/2.247, allocations: 119.7 kB / 0.7254 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003795/2.251, allocations: 2.945 MB / 0.7283 GB, free: 207 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00018/2.251, allocations: 0.7673 MB / 0.729 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001224/2.252, allocations: 22.05 kB / 0.729 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.526e-05/2.252, allocations: 93.95 kB / 0.7291 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of SimCode: time 1.052e-06/2.252, allocations: 0 / 0.7291 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07686/2.329, allocations: 47.42 MB / 0.7755 GB, free: 172.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.76/16.09, allocations: 10.44 kB / 0.7755 GB, free: 172.2 MB / 0.5919 GB (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)