Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.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.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss",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.8011/0.8011, allocations: 150.9 MB / 166.5 MB, free: 14.4 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000327/0.0003273, allocations: 13.03 kB / 236.5 MB, free: 2.066 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05766/0.05801, allocations: 31.35 MB / 267.9 MB, free: 7.633 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.TestPipePressureLoss): time 1.648/1.706, allocations: 294.7 MB / 0.5494 GB, free: 13 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03935/1.745, allocations: 34.43 MB / 0.583 GB, free: 10.43 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002872/1.746, allocations: 4 kB / 0.583 GB, free: 10.43 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/PipePressureLoss.mo:35:3-37:42: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/PipePressureLoss.mo:38:3-40:37: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.0004444/1.746, allocations: 127.4 kB / 0.5831 GB, free: 10.3 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002648/1.746, allocations: 123.2 kB / 0.5832 GB, free: 10.18 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.02496/1.771, allocations: 9.731 MB / 0.5927 GB, free: 456 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005921/1.772, allocations: 354.4 kB / 0.5931 GB, free: 100 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002343/1.772, allocations: 108.6 kB / 0.5932 GB, free: 15.99 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002492/1.772, allocations: 155.2 kB / 0.5933 GB, free: 15.84 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001406/1.773, allocations: 107.4 kB / 0.5934 GB, free: 15.74 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.996e-05/1.773, allocations: 24 kB / 0.5935 GB, free: 15.71 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03061/1.803, allocations: 17.9 MB / 0.6109 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.554e-05/1.803, allocations: 47.78 kB / 0.611 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001968/1.804, allocations: 131.3 kB / 0.6111 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01903/1.823, allocations: 8.427 MB / 0.6193 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/1.823, allocations: 0 / 0.6193 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.703e-06/1.823, allocations: 0 / 0.6193 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.809e-06/1.823, allocations: 0 / 0.6193 GB, free: 5.172 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.004131/1.827, allocations: 1.486 MB / 0.6208 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/1.827, allocations: 16.03 kB / 0.6208 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.548e-05/1.827, allocations: 70.41 kB / 0.6209 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.777e-05/1.827, allocations: 27.81 kB / 0.6209 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002374/1.827, allocations: 227.2 kB / 0.6211 GB, free: 3.246 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.9e-05/1.827, allocations: 12.44 kB / 0.6211 GB, free: 3.234 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.14e-05/1.827, allocations: 31.88 kB / 0.6212 GB, free: 3.203 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004171/1.828, allocations: 299.4 kB / 0.6214 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/1.828, allocations: 3.938 kB / 0.6214 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.135e-05/1.828, allocations: 8 kB / 0.6215 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.428e-05/1.828, allocations: 8 kB / 0.6215 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002509/1.828, allocations: 173.1 kB / 0.6216 GB, free: 2.699 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.0385/1.867, allocations: 18.13 MB / 0.6393 GB, free: 14.69 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003273/1.867, allocations: 134.6 kB / 0.6395 GB, free: 14.55 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/1.867, allocations: 88.84 kB / 0.6395 GB, free: 14.46 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3536/2.221, allocations: 77.73 MB / 0.7155 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.748e-05/2.221, allocations: 38.86 kB / 0.7155 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.424e-06/2.221, allocations: 4 kB / 0.7155 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.001032/2.222, allocations: 443.6 kB / 0.7159 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.664e-05/2.222, allocations: 60.25 kB / 0.716 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002188/2.222, allocations: 216.2 kB / 0.7162 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.203e-05/2.222, allocations: 30.14 kB / 0.7162 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.665e-05/2.222, allocations: 154.3 kB / 0.7164 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 6.403e-05/2.222, allocations: 114.2 kB / 0.7165 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.244e-05/2.222, allocations: 46.61 kB / 0.7165 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.46e-05/2.222, allocations: 332.1 kB / 0.7168 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001044/2.223, allocations: 74.12 kB / 0.7169 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/2.223, allocations: 118.5 kB / 0.717 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002356/2.223, allocations: 202.3 kB / 0.7172 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/2.223, allocations: 1.531 kB / 0.7172 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004243/2.223, allocations: 306.8 kB / 0.7175 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/2.223, allocations: 5.406 kB / 0.7175 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/2.223, allocations: 0 / 0.7175 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008665/2.224, allocations: 159.7 kB / 0.7177 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.86e-05/2.224, allocations: 11.47 kB / 0.7177 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004157/2.225, allocations: 0.633 MB / 0.7183 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001227/2.225, allocations: 27.02 kB / 0.7183 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.6e-05/2.225, allocations: 8.781 kB / 0.7183 GB, free: 210.5 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 (pipePressureLoss.C2.b,pipePressureLoss.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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001142/2.225, allocations: 145 kB / 0.7185 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.033e-05/2.225, allocations: 24.09 kB / 0.7185 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006567/2.226, allocations: 0.6062 MB / 0.7191 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003104/2.226, allocations: 224 kB / 0.7193 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/2.226, allocations: 0 / 0.7193 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/2.226, allocations: 3.422 kB / 0.7193 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008447/2.227, allocations: 0.7299 MB / 0.72 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/2.227, allocations: 3.062 kB / 0.72 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.362e-05/2.227, allocations: 13.48 kB / 0.72 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003531/2.227, allocations: 117.1 kB / 0.7201 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/2.227, allocations: 6.672 kB / 0.7201 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000336/2.228, allocations: 0.6519 MB / 0.7208 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/2.228, allocations: 2.688 kB / 0.7208 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003736/2.228, allocations: 345.7 kB / 0.7211 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.257e-05/2.228, allocations: 111.2 kB / 0.7212 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.08e-05/2.228, allocations: 15.14 kB / 0.7212 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/2.228, allocations: 3.875 kB / 0.7212 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.803e-05/2.228, allocations: 7.328 kB / 0.7212 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.562e-06/2.228, allocations: 3.969 kB / 0.7212 GB, free: 209 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001892/2.229, allocations: 235.8 kB / 0.7215 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.1e-07/2.229, allocations: 4.938 kB / 0.7215 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002927/2.232, allocations: 1.201 MB / 0.7226 GB, free: 208.9 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005933/2.238, allocations: 2.526 MB / 0.7251 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005732/2.238, allocations: 234.3 kB / 0.7253 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/2.238, allocations: 256 / 0.7253 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001971/2.238, allocations: 92.84 kB / 0.7254 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007685/2.239, allocations: 124.7 kB / 0.7255 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004126/2.243, allocations: 3.051 MB / 0.7285 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001806/2.243, allocations: 0.7637 MB / 0.7293 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001139/2.244, allocations: 25.64 kB / 0.7293 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.954e-05/2.244, allocations: 87.75 kB / 0.7294 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of SimCode: time 4.91e-07/2.244, allocations: 0 / 0.7294 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07145/2.315, allocations: 47.73 MB / 0.776 GB, free: 171.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.47/15.79, allocations: 11.94 kB / 0.776 GB, free: 171.2 MB / 0.5919 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss_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_Book_SimpleExamples_PressureLoss_TestPipePressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1)