Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.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.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss",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.8605/0.8605, allocations: 150.9 MB / 166.5 MB, free: 14.4 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004947/0.0004946, allocations: 18.34 kB / 236.6 MB, free: 2.008 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0636/0.06411, allocations: 31.35 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.TestInvSingularPressureLoss): time 1.673/1.737, allocations: 295.1 MB / 0.5498 GB, free: 13.26 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04372/1.78, allocations: 34.38 MB / 0.5834 GB, free: 10.74 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002059/1.781, allocations: 4 kB / 0.5834 GB, free: 10.73 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourcePQ.mo:29:3-30:52: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/InvSingularPressureLoss.mo:26:3-28: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/InvSingularPressureLoss.mo:29:3-30:83: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.781, allocations: 95.94 kB / 0.5835 GB, free: 10.64 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001677/1.781, allocations: 75.38 kB / 0.5836 GB, free: 10.57 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.02519/1.806, allocations: 9.563 MB / 0.5929 GB, free: 1 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004754/1.807, allocations: 270.7 kB / 0.5932 GB, free: 0.7344 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002113/1.807, allocations: 112.1 kB / 0.5933 GB, free: 0.625 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002531/1.807, allocations: 127.4 kB / 0.5934 GB, free: 0.5 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001551/1.808, allocations: 95.5 kB / 0.5935 GB, free: 416 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.965e-05/1.808, allocations: 16 kB / 0.5935 GB, free: 400 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03291/1.841, allocations: 17.89 MB / 0.611 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.295e-05/1.841, allocations: 43.86 kB / 0.611 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001655/1.841, allocations: 111.4 kB / 0.6111 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02011/1.861, allocations: 8.384 MB / 0.6193 GB, free: 5.918 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/1.861, allocations: 0 / 0.6193 GB, free: 5.918 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.883e-06/1.861, allocations: 0 / 0.6193 GB, free: 5.918 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.516e-05/1.861, allocations: 0 / 0.6193 GB, free: 5.918 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.004174/1.865, allocations: 1.445 MB / 0.6207 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/1.865, allocations: 12.03 kB / 0.6208 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.437e-05/1.865, allocations: 58.53 kB / 0.6208 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.977e-05/1.865, allocations: 31.8 kB / 0.6208 GB, free: 4.305 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002335/1.866, allocations: 218.7 kB / 0.621 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.094e-05/1.866, allocations: 16.38 kB / 0.6211 GB, free: 4.035 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.71e-05/1.866, allocations: 16 kB / 0.6211 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004999/1.866, allocations: 258 kB / 0.6213 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/1.866, allocations: 4 kB / 0.6213 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.875e-05/1.866, allocations: 12 kB / 0.6213 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.146e-05/1.866, allocations: 15.92 kB / 0.6214 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002886/1.867, allocations: 140.4 kB / 0.6215 GB, free: 3.582 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.0209/1.888, allocations: 9.554 MB / 0.6308 GB, free: 9.043 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002294/1.888, allocations: 82.5 kB / 0.6309 GB, free: 8.953 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001082/1.888, allocations: 56.89 kB / 0.631 GB, free: 8.895 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.166/2.054, allocations: 77.74 MB / 0.7069 GB, free: 2.379 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.741e-05/2.054, allocations: 34.55 kB / 0.7069 GB, free: 2.336 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=22): time 2.154e-06/2.054, allocations: 0 / 0.7069 GB, free: 2.336 MB / 0.5919 GB Notification: Performance of matching and sorting (n=22): time 0.0005836/2.055, allocations: 208.2 kB / 0.7071 GB, free: 2.129 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.326e-05/2.055, allocations: 59.33 kB / 0.7072 GB, free: 2.059 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002753/2.055, allocations: 232 kB / 0.7074 GB, free: 1.824 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/2.055, allocations: 29.7 kB / 0.7074 GB, free: 1.789 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/2.055, allocations: 140.4 kB / 0.7075 GB, free: 1.648 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 6.251e-05/2.055, allocations: 71.38 kB / 0.7076 GB, free: 1.578 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.59e-05/2.055, allocations: 41.69 kB / 0.7076 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001644/2.056, allocations: 338.8 kB / 0.708 GB, free: 1.191 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/2.056, allocations: 51.97 kB / 0.708 GB, free: 1.141 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000146/2.056, allocations: 84.27 kB / 0.7081 GB, free: 1.043 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002691/2.056, allocations: 158.4 kB / 0.7083 GB, free: 0.875 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/2.056, allocations: 0 / 0.7083 GB, free: 0.875 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003757/2.056, allocations: 200.6 kB / 0.7084 GB, free: 0.6758 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/2.057, allocations: 8 kB / 0.7085 GB, free: 0.668 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/2.057, allocations: 3.938 kB / 0.7085 GB, free: 0.6641 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/2.057, allocations: 4.125 kB / 0.7085 GB, free: 0.6602 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006709/2.057, allocations: 99.88 kB / 0.7086 GB, free: 0.5625 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.272e-05/2.057, allocations: 3.938 kB / 0.7086 GB, free: 0.5586 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001317/2.057, allocations: 39.66 kB / 0.7086 GB, free: 0.5195 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.353e-05/2.057, allocations: 4 kB / 0.7086 GB, free: 0.5156 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 (invSingularPressureLoss.C2.b,invSingularPressureLoss.C1.a,sinkQ.C.a,sourcePQ.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): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001306/2.058, allocations: 137.8 kB / 0.7087 GB, free: 384 kB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.979e-05/2.058, allocations: 19.86 kB / 0.7087 GB, free: 364 kB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1812/2.239, allocations: 320 kB / 0.7091 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004645/2.239, allocations: 146.3 kB / 0.7092 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/2.239, allocations: 4.844 kB / 0.7092 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/2.239, allocations: 3.469 kB / 0.7092 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001132/2.241, allocations: 0.6018 MB / 0.7098 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/2.241, allocations: 0.8438 kB / 0.7098 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007658/2.241, allocations: 97.86 kB / 0.7099 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.803e-06/2.241, allocations: 1.125 kB / 0.7099 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.453e-05/2.241, allocations: 2.203 kB / 0.7099 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.069e-06/2.241, allocations: 4.312 kB / 0.7099 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/2.241, allocations: 5 kB / 0.7099 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000496/2.242, allocations: 285.2 kB / 0.7102 GB, free: 214.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.794e-05/2.242, allocations: 112 kB / 0.7103 GB, free: 214.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.601e-05/2.242, allocations: 10.39 kB / 0.7103 GB, free: 214.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001736/2.242, allocations: 5.797 kB / 0.7103 GB, free: 214.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.233e-05/2.242, allocations: 12.81 kB / 0.7103 GB, free: 214.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/2.242, allocations: 3.656 kB / 0.7103 GB, free: 214.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002634/2.243, allocations: 210.7 kB / 0.7105 GB, free: 214.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.9e-07/2.243, allocations: 0 / 0.7105 GB, free: 214.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003972/2.247, allocations: 1.183 MB / 0.7117 GB, free: 214.7 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007539/2.254, allocations: 2.462 MB / 0.7141 GB, free: 214.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0006234/2.255, allocations: 192.3 kB / 0.7142 GB, free: 214 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/2.255, allocations: 4.188 kB / 0.7143 GB, free: 214 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001922/2.255, allocations: 71.94 kB / 0.7143 GB, free: 214 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00092/2.256, allocations: 95.47 kB / 0.7144 GB, free: 214 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005138/2.261, allocations: 2.836 MB / 0.7172 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001916/2.261, allocations: 0.754 MB / 0.7179 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001659/2.262, allocations: 26.12 kB / 0.7179 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/2.262, allocations: 78.2 kB / 0.718 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of SimCode: time 8.32e-07/2.262, allocations: 1.938 kB / 0.718 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09447/2.356, allocations: 46.13 MB / 0.7631 GB, free: 185.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.21/12.56, allocations: 5.156 kB / 0.7631 GB, free: 185.3 MB / 0.5919 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss_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_TestInvSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1)