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.8132/0.8132, allocations: 150.9 MB / 166.5 MB, free: 14.4 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003481/0.0003481, allocations: 13.73 kB / 236.5 MB, free: 2.051 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05336/0.05372, allocations: 31.34 MB / 267.9 MB, free: 7.621 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.543/1.597, allocations: 294.8 MB / 0.5495 GB, free: 12.94 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03559/1.632, allocations: 34.75 MB / 0.5834 GB, free: 10.04 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002248/1.632, allocations: 4 kB / 0.5834 GB, free: 10.04 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.0004801/1.633, allocations: 189.6 kB / 0.5836 GB, free: 9.855 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002518/1.633, allocations: 163.1 kB / 0.5838 GB, free: 9.695 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.02365/1.657, allocations: 9.911 MB / 0.5934 GB, free: 15.77 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005669/1.657, allocations: 386.3 kB / 0.5938 GB, free: 15.39 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002098/1.658, allocations: 128.6 kB / 0.5939 GB, free: 15.27 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002325/1.658, allocations: 167.3 kB / 0.5941 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002113/1.658, allocations: 171.3 kB / 0.5942 GB, free: 14.94 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.215e-05/1.658, allocations: 16 kB / 0.5943 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02828/1.686, allocations: 17.97 MB / 0.6118 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000139/1.687, allocations: 71.77 kB / 0.6119 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002074/1.687, allocations: 167 kB / 0.612 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01831/1.705, allocations: 8.544 MB / 0.6204 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/1.705, allocations: 3.938 kB / 0.6204 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.994e-06/1.705, allocations: 4 kB / 0.6204 GB, free: 4.129 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.814e-05/1.705, allocations: 0 / 0.6204 GB, free: 4.129 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.004381/1.71, allocations: 1.572 MB / 0.6219 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/1.71, allocations: 12.03 kB / 0.6219 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.801e-05/1.71, allocations: 62.53 kB / 0.622 GB, free: 2.418 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.574e-05/1.71, allocations: 51.66 kB / 0.622 GB, free: 2.367 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003643/1.71, allocations: 294.2 kB / 0.6223 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/1.71, allocations: 16.44 kB / 0.6223 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.965e-05/1.71, allocations: 20 kB / 0.6224 GB, free: 2.008 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004183/1.711, allocations: 327.4 kB / 0.6227 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/1.711, allocations: 0 / 0.6227 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.827e-05/1.711, allocations: 12 kB / 0.6227 GB, free: 1.652 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.563e-05/1.711, allocations: 15.92 kB / 0.6227 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002587/1.711, allocations: 205.1 kB / 0.6229 GB, free: 1.438 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.03623/1.747, allocations: 18.23 MB / 0.6407 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002308/1.748, allocations: 146.5 kB / 0.6408 GB, free: 13.18 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001227/1.748, allocations: 104.8 kB / 0.6409 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3182/2.066, allocations: 77.74 MB / 0.7168 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.295e-05/2.066, allocations: 31.75 kB / 0.7169 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.264e-06/2.066, allocations: 0 / 0.7169 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.001008/2.067, allocations: 0.4959 MB / 0.7174 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.173e-05/2.067, allocations: 55.16 kB / 0.7174 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000296/2.067, allocations: 356.6 kB / 0.7178 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.057e-06/2.067, allocations: 30.42 kB / 0.7178 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.474e-05/2.067, allocations: 188.3 kB / 0.718 GB, free: 211 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.691e-05/2.067, allocations: 116.9 kB / 0.7181 GB, free: 211 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.077e-05/2.068, allocations: 49.66 kB / 0.7181 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.177e-05/2.068, allocations: 344.8 kB / 0.7184 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001013/2.068, allocations: 92.05 kB / 0.7185 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001172/2.068, allocations: 131.9 kB / 0.7187 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002244/2.068, allocations: 252.6 kB / 0.7189 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/2.068, allocations: 0 / 0.7189 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000382/2.068, allocations: 355.3 kB / 0.7192 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/2.068, allocations: 7.594 kB / 0.7192 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/2.068, allocations: 0 / 0.7192 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007097/2.069, allocations: 136.9 kB / 0.7194 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.25e-05/2.069, allocations: 14.22 kB / 0.7194 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003823/2.07, allocations: 0.6126 MB / 0.72 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/2.07, allocations: 26.08 kB / 0.72 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.413e-05/2.07, allocations: 6 kB / 0.72 GB, free: 209.9 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.0001133/2.07, allocations: 169.9 kB / 0.7202 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.721e-05/2.07, allocations: 35.55 kB / 0.7202 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000657/2.071, allocations: 0.6559 MB / 0.7209 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000341/2.071, allocations: 258 kB / 0.7211 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/2.071, allocations: 2.031 kB / 0.7211 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/2.071, allocations: 4 kB / 0.7211 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008728/2.072, allocations: 0.8228 MB / 0.7219 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/2.072, allocations: 0.5 kB / 0.7219 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.149e-05/2.072, allocations: 18.16 kB / 0.7219 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003125/2.072, allocations: 111.9 kB / 0.722 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.166e-05/2.072, allocations: 4.688 kB / 0.722 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003466/2.073, allocations: 0.6375 MB / 0.7227 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/2.073, allocations: 5.625 kB / 0.7227 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003965/2.073, allocations: 387 kB / 0.723 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.375e-05/2.073, allocations: 123.6 kB / 0.7232 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.723e-05/2.073, allocations: 12.86 kB / 0.7232 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/2.073, allocations: 1.25 kB / 0.7232 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.94e-05/2.073, allocations: 15.33 kB / 0.7232 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/2.073, allocations: 6.094 kB / 0.7232 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002737/2.074, allocations: 332.8 kB / 0.7235 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.31e-07/2.074, allocations: 4 kB / 0.7235 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002538/2.076, allocations: 1.223 MB / 0.7247 GB, free: 208.3 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.004731/2.081, allocations: 2.577 MB / 0.7272 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005793/2.082, allocations: 292 kB / 0.7275 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/2.082, allocations: 0 / 0.7275 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002549/2.082, allocations: 117.1 kB / 0.7276 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007391/2.083, allocations: 136.3 kB / 0.7277 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003919/2.087, allocations: 3.725 MB / 0.7314 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001878/2.087, allocations: 0.8049 MB / 0.7322 GB, free: 205 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001032/2.087, allocations: 32.33 kB / 0.7322 GB, free: 205 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/2.087, allocations: 123.6 kB / 0.7323 GB, free: 205 MB / 0.5919 GB Notification: Performance of SimCode: time 2.3e-07/2.087, allocations: 0 / 0.7323 GB, free: 205 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06446/2.151, allocations: 49.21 MB / 0.7804 GB, free: 166.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/15.56, allocations: 8.656 kB / 0.7804 GB, free: 166.8 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)