Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.SimpleExamples.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_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.8364/0.8364, allocations: 150.9 MB / 166.5 MB, free: 14.38 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003476/0.0003477, allocations: 17.47 kB / 236.6 MB, free: 2.172 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.055/0.05537, allocations: 31.34 MB / 267.9 MB, free: 7.66 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.TestPipePressureLoss): time 1.586/1.642, allocations: 294.8 MB / 0.5496 GB, free: 13 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04046/1.682, allocations: 34.42 MB / 0.5832 GB, free: 10.44 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002023/1.682, allocations: 4 kB / 0.5832 GB, free: 10.44 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.0004053/1.683, allocations: 133.8 kB / 0.5833 GB, free: 10.31 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002832/1.683, allocations: 123.1 kB / 0.5834 GB, free: 10.19 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.02428/1.707, allocations: 9.736 MB / 0.5929 GB, free: 448 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005215/1.708, allocations: 354.4 kB / 0.5933 GB, free: 92 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002678/1.708, allocations: 108.6 kB / 0.5934 GB, free: 15.98 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002582/1.708, allocations: 151.2 kB / 0.5935 GB, free: 15.84 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001607/1.709, allocations: 103.5 kB / 0.5936 GB, free: 15.73 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.382e-05/1.709, allocations: 24 kB / 0.5936 GB, free: 15.71 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03189/1.74, allocations: 17.9 MB / 0.6111 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.401e-05/1.741, allocations: 39.8 kB / 0.6111 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001762/1.741, allocations: 135.3 kB / 0.6113 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01717/1.758, allocations: 8.423 MB / 0.6195 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.074e-06/1.758, allocations: 4 kB / 0.6195 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.984e-06/1.758, allocations: 0 / 0.6195 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.218e-05/1.758, allocations: 0 / 0.6195 GB, free: 5.168 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.003755/1.762, allocations: 1.486 MB / 0.621 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/1.762, allocations: 12.03 kB / 0.621 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.327e-05/1.762, allocations: 74.41 kB / 0.621 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.218e-05/1.762, allocations: 27.81 kB / 0.6211 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002297/1.762, allocations: 226.6 kB / 0.6213 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.753e-05/1.762, allocations: 20.38 kB / 0.6213 GB, free: 3.223 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.489e-05/1.762, allocations: 20 kB / 0.6213 GB, free: 3.203 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004203/1.763, allocations: 303.4 kB / 0.6216 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/1.763, allocations: 7.875 kB / 0.6216 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.123e-05/1.763, allocations: 8 kB / 0.6216 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/1.763, allocations: 11.98 kB / 0.6216 GB, free: 2.855 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002464/1.763, allocations: 165.1 kB / 0.6218 GB, free: 2.695 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.03741/1.8, allocations: 18.13 MB / 0.6395 GB, free: 14.69 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003341/1.801, allocations: 146.5 kB / 0.6396 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/1.801, allocations: 84.84 kB / 0.6397 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.336/2.137, allocations: 77.73 MB / 0.7156 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.322e-05/2.137, allocations: 35.09 kB / 0.7157 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.114e-06/2.137, allocations: 1.844 kB / 0.7157 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.0009522/2.138, allocations: 455.7 kB / 0.7161 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.011e-05/2.138, allocations: 52.72 kB / 0.7161 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001965/2.138, allocations: 220.5 kB / 0.7164 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.026e-05/2.138, allocations: 25.7 kB / 0.7164 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 6.802e-05/2.138, allocations: 157.7 kB / 0.7165 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.397e-05/2.138, allocations: 114.2 kB / 0.7166 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.406e-05/2.138, allocations: 44.78 kB / 0.7167 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.297e-05/2.138, allocations: 332.3 kB / 0.717 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.826e-05/2.139, allocations: 75.62 kB / 0.7171 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001153/2.139, allocations: 113.1 kB / 0.7172 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002269/2.139, allocations: 211.5 kB / 0.7174 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/2.139, allocations: 1.156 kB / 0.7174 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004028/2.139, allocations: 301 kB / 0.7177 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/2.139, allocations: 6.188 kB / 0.7177 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/2.139, allocations: 1.25 kB / 0.7177 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008746/2.14, allocations: 157.8 kB / 0.7178 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.513e-05/2.14, allocations: 8.344 kB / 0.7178 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003784/2.141, allocations: 0.6383 MB / 0.7185 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/2.141, allocations: 30.2 kB / 0.7185 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.169e-05/2.141, allocations: 5.875 kB / 0.7185 GB, free: 210.6 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 9.196e-05/2.141, allocations: 128.4 kB / 0.7186 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.368e-05/2.141, allocations: 27.12 kB / 0.7186 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005706/2.142, allocations: 0.6037 MB / 0.7192 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002974/2.142, allocations: 228.9 kB / 0.7194 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/2.142, allocations: 0 / 0.7194 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/2.142, allocations: 0 / 0.7194 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007645/2.143, allocations: 0.7328 MB / 0.7202 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/2.143, allocations: 0.5625 kB / 0.7202 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.217e-05/2.143, allocations: 14.5 kB / 0.7202 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003345/2.143, allocations: 117.9 kB / 0.7203 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/2.143, allocations: 7.312 kB / 0.7203 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003115/2.143, allocations: 0.6448 MB / 0.7209 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/2.143, allocations: 0 / 0.7209 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003472/2.144, allocations: 349.5 kB / 0.7213 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.64e-05/2.144, allocations: 110.6 kB / 0.7214 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.105e-05/2.144, allocations: 13.47 kB / 0.7214 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001241/2.144, allocations: 5.75 kB / 0.7214 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.023e-05/2.144, allocations: 6.531 kB / 0.7214 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.045e-06/2.144, allocations: 7.969 kB / 0.7214 GB, free: 209 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001846/2.144, allocations: 240.9 kB / 0.7216 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.01e-07/2.144, allocations: 1.125 kB / 0.7216 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002538/2.147, allocations: 1.204 MB / 0.7228 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.005537/2.152, allocations: 2.522 MB / 0.7253 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000504/2.153, allocations: 235.8 kB / 0.7255 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/2.153, allocations: 4.25 kB / 0.7255 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001877/2.153, allocations: 95.41 kB / 0.7256 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.0007217/2.154, allocations: 124.5 kB / 0.7257 GB, free: 208 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003951/2.158, allocations: 3.046 MB / 0.7287 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001815/2.158, allocations: 0.7647 MB / 0.7294 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001058/2.158, allocations: 21.12 kB / 0.7294 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.514e-05/2.158, allocations: 92.5 kB / 0.7295 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of SimCode: time 7.11e-07/2.158, allocations: 0 / 0.7295 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07169/2.23, allocations: 47.71 MB / 0.7761 GB, free: 171.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.82/16.05, allocations: 8.625 kB / 0.7761 GB, free: 171.2 MB / 0.5919 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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_SimpleExamples_TestPipePressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe 2>&1)