Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.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.Book.SimpleExamples.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve",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.8223/0.8223, allocations: 150.9 MB / 166.5 MB, free: 14.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004756/0.0004757, allocations: 13.62 kB / 236.5 MB, free: 2.055 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05517/0.05566, allocations: 31.34 MB / 267.9 MB, free: 7.617 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.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.646/1.702, allocations: 295.2 MB / 0.5499 GB, free: 12.91 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04224/1.744, allocations: 34.77 MB / 0.5839 GB, free: 9.996 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002145/1.745, allocations: 4 kB / 0.5839 GB, free: 9.992 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/ControlValve.mo:45:3-47:43: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/ControlValve.mo:48:3-50:38: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.0004697/1.745, allocations: 153.1 kB / 0.584 GB, free: 9.844 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002496/1.745, allocations: 155 kB / 0.5842 GB, free: 9.691 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.02433/1.77, allocations: 9.735 MB / 0.5937 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006377/1.77, allocations: 386.3 kB / 0.594 GB, free: 15.57 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000224/1.77, allocations: 128.6 kB / 0.5942 GB, free: 15.45 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002481/1.771, allocations: 167.3 kB / 0.5943 GB, free: 15.28 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002254/1.771, allocations: 171.3 kB / 0.5945 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.199e-05/1.771, allocations: 16 kB / 0.5945 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03466/1.806, allocations: 17.96 MB / 0.612 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001793/1.806, allocations: 71.77 kB / 0.6121 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002587/1.806, allocations: 167 kB / 0.6123 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02465/1.831, allocations: 8.54 MB / 0.6206 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/1.831, allocations: 0 / 0.6206 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.924e-06/1.831, allocations: 4 kB / 0.6206 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.596e-06/1.831, allocations: 0 / 0.6206 GB, free: 4.316 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.004795/1.836, allocations: 1.579 MB / 0.6222 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/1.836, allocations: 12.03 kB / 0.6222 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.889e-05/1.836, allocations: 62.53 kB / 0.6222 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.656e-05/1.836, allocations: 43.66 kB / 0.6223 GB, free: 2.555 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003544/1.836, allocations: 298.2 kB / 0.6226 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.31e-05/1.836, allocations: 12.44 kB / 0.6226 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.292e-05/1.836, allocations: 27.98 kB / 0.6226 GB, free: 2.188 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005193/1.837, allocations: 315.4 kB / 0.6229 GB, free: 1.852 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/1.837, allocations: 0 / 0.6229 GB, free: 1.852 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.072e-05/1.837, allocations: 8 kB / 0.6229 GB, free: 1.844 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.192e-05/1.837, allocations: 19.92 kB / 0.6229 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003072/1.837, allocations: 213 kB / 0.6231 GB, free: 1.617 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.0399/1.877, allocations: 18.23 MB / 0.6409 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002535/1.877, allocations: 142.5 kB / 0.6411 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001379/1.878, allocations: 108.8 kB / 0.6412 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.361/2.239, allocations: 77.73 MB / 0.7171 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/2.239, allocations: 39.44 kB / 0.7171 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.374e-06/2.239, allocations: 0 / 0.7171 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.001062/2.24, allocations: 0.4902 MB / 0.7176 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.191e-05/2.24, allocations: 59.16 kB / 0.7177 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003177/2.24, allocations: 361.3 kB / 0.718 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.221e-05/2.24, allocations: 25.7 kB / 0.718 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.614e-05/2.24, allocations: 180.3 kB / 0.7182 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.126e-05/2.24, allocations: 121.1 kB / 0.7183 GB, free: 211 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.067e-05/2.24, allocations: 49.58 kB / 0.7184 GB, free: 211 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 7.873e-05/2.24, allocations: 349.3 kB / 0.7187 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/2.241, allocations: 88.36 kB / 0.7188 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001192/2.241, allocations: 136.7 kB / 0.7189 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002435/2.241, allocations: 249.3 kB / 0.7191 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/2.241, allocations: 3.656 kB / 0.7191 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003717/2.241, allocations: 347.6 kB / 0.7195 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/2.241, allocations: 5.531 kB / 0.7195 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/2.241, allocations: 0 / 0.7195 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007487/2.242, allocations: 140.8 kB / 0.7196 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.361e-05/2.242, allocations: 12.25 kB / 0.7196 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004472/2.243, allocations: 0.6123 MB / 0.7202 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/2.243, allocations: 33.61 kB / 0.7203 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/2.243, allocations: 8.688 kB / 0.7203 GB, free: 210 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 (ControlValve.C2.b,ControlValve.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 (13): * Single equations (assignments): 10 * 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.0001185/2.243, allocations: 160.2 kB / 0.7204 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.316e-05/2.243, allocations: 33.27 kB / 0.7205 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006582/2.244, allocations: 0.6557 MB / 0.7211 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003403/2.244, allocations: 268.8 kB / 0.7213 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/2.244, allocations: 0 / 0.7213 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/2.244, allocations: 0 / 0.7213 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008419/2.245, allocations: 0.8244 MB / 0.7222 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/2.245, allocations: 0.6875 kB / 0.7222 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.987e-05/2.245, allocations: 22.28 kB / 0.7222 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003294/2.245, allocations: 105.2 kB / 0.7223 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/2.245, allocations: 1.453 kB / 0.7223 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003587/2.246, allocations: 0.6442 MB / 0.7229 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/2.246, allocations: 0 / 0.7229 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004073/2.246, allocations: 389.1 kB / 0.7233 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.245e-05/2.246, allocations: 126 kB / 0.7234 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.202e-05/2.246, allocations: 12.12 kB / 0.7234 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.9e-05/2.246, allocations: 2.625 kB / 0.7234 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.503e-05/2.246, allocations: 16.97 kB / 0.7234 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.624e-06/2.246, allocations: 2.625 kB / 0.7234 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002907/2.247, allocations: 333.2 kB / 0.7237 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2e-07/2.247, allocations: 0.5625 kB / 0.7237 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002753/2.249, allocations: 1.227 MB / 0.7249 GB, free: 208.4 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 (13): * Single equations (assignments): 12 * 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.005537/2.255, allocations: 2.571 MB / 0.7275 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0006876/2.256, allocations: 296.5 kB / 0.7277 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/2.256, allocations: 0.6875 kB / 0.7277 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002662/2.256, allocations: 117 kB / 0.7279 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008192/2.257, allocations: 131.7 kB / 0.728 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004867/2.262, allocations: 3.726 MB / 0.7316 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002201/2.262, allocations: 0.8051 MB / 0.7324 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001326/2.262, allocations: 36.89 kB / 0.7324 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/2.262, allocations: 125.5 kB / 0.7326 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of SimCode: time 4.71e-07/2.262, allocations: 1.5 kB / 0.7326 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0747/2.337, allocations: 49.21 MB / 0.7806 GB, free: 167.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.89/16.23, allocations: 8.188 kB / 0.7806 GB, free: 167.2 MB / 0.5919 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve_res.csv --start-time 0 --stop-time 80 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.032 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)