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: translateModel(ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss") translateModel(ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.828/0.828, allocations: 150.9 MB / 166.5 MB, free: 14.68 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004452/0.0004452, allocations: 20.89 kB / 237.1 MB, free: 1.703 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06855/0.06901, allocations: 31.34 MB / 268.4 MB, free: 7.07 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.591/1.66, allocations: 294.7 MB / 0.5499 GB, free: 13.27 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03823/1.698, allocations: 34.43 MB / 0.5836 GB, free: 10.69 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001788/1.698, allocations: 7.938 kB / 0.5836 GB, free: 10.68 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.0003345/1.699, allocations: 113.3 kB / 0.5837 GB, free: 10.57 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001934/1.699, allocations: 103.2 kB / 0.5838 GB, free: 10.47 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.02252/1.721, allocations: 9.559 MB / 0.5931 GB, free: 0.8984 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004847/1.722, allocations: 346.4 kB / 0.5935 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001939/1.722, allocations: 112.5 kB / 0.5936 GB, free: 460 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002054/1.722, allocations: 151.3 kB / 0.5937 GB, free: 308 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001343/1.722, allocations: 107.5 kB / 0.5938 GB, free: 200 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.788e-05/1.723, allocations: 20 kB / 0.5938 GB, free: 180 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02881/1.751, allocations: 17.89 MB / 0.6113 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.528e-05/1.751, allocations: 47.78 kB / 0.6113 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001693/1.752, allocations: 135.3 kB / 0.6115 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01624/1.768, allocations: 8.41 MB / 0.6197 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/1.768, allocations: 0 / 0.6197 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.613e-06/1.768, allocations: 0 / 0.6197 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.204e-06/1.768, allocations: 0 / 0.6197 GB, free: 5.652 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.003498/1.771, allocations: 1.439 MB / 0.6211 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/1.771, allocations: 8.031 kB / 0.6211 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.347e-05/1.772, allocations: 35.56 kB / 0.6211 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002144/1.772, allocations: 222.6 kB / 0.6213 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.746e-05/1.772, allocations: 20.38 kB / 0.6214 GB, free: 3.844 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.43e-05/1.772, allocations: 16 kB / 0.6214 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004166/1.772, allocations: 299.4 kB / 0.6217 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/1.772, allocations: 7.875 kB / 0.6217 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.994e-05/1.772, allocations: 8 kB / 0.6217 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/1.772, allocations: 15.98 kB / 0.6217 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002615/1.773, allocations: 161.1 kB / 0.6218 GB, free: 3.324 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.03963/1.812, allocations: 18.12 MB / 0.6395 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003406/1.813, allocations: 146.5 kB / 0.6397 GB, free: 15.17 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/1.813, allocations: 88.91 kB / 0.6398 GB, free: 15.08 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3346/2.147, allocations: 77.72 MB / 0.7157 GB, free: 213.3 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/2.147, allocations: 36.22 kB / 0.7157 GB, free: 213.2 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.244e-06/2.147, allocations: 0 / 0.7157 GB, free: 213.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.0009454/2.148, allocations: 451 kB / 0.7161 GB, free: 213.1 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.04e-05/2.148, allocations: 52.62 kB / 0.7162 GB, free: 213 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002055/2.149, allocations: 216.5 kB / 0.7164 GB, free: 212.9 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.183e-05/2.149, allocations: 29.2 kB / 0.7164 GB, free: 212.9 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.042e-05/2.149, allocations: 149.9 kB / 0.7166 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.143e-05/2.149, allocations: 114.7 kB / 0.7167 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.418e-05/2.149, allocations: 47.48 kB / 0.7167 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.544e-05/2.149, allocations: 337.8 kB / 0.717 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.801e-05/2.149, allocations: 72.2 kB / 0.7171 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001107/2.149, allocations: 115.8 kB / 0.7172 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002163/2.149, allocations: 203.8 kB / 0.7174 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/2.149, allocations: 0 / 0.7174 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003764/2.15, allocations: 299.9 kB / 0.7177 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/2.15, allocations: 5.469 kB / 0.7177 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/2.15, allocations: 5.344 kB / 0.7177 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008984/2.151, allocations: 157.1 kB / 0.7179 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.571e-05/2.151, allocations: 15.19 kB / 0.7179 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003737/2.151, allocations: 0.6341 MB / 0.7185 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/2.151, allocations: 32.53 kB / 0.7185 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.181e-05/2.151, allocations: 6.312 kB / 0.7185 GB, free: 211.7 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.103e-05/2.151, allocations: 131.1 kB / 0.7187 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.053e-05/2.151, allocations: 24.41 kB / 0.7187 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005615/2.152, allocations: 0.6067 MB / 0.7193 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003032/2.152, allocations: 223 kB / 0.7195 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/2.152, allocations: 0 / 0.7195 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/2.152, allocations: 0 / 0.7195 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007528/2.153, allocations: 0.7399 MB / 0.7202 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.175e-06/2.153, allocations: 0 / 0.7202 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.166e-05/2.153, allocations: 10.53 kB / 0.7202 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003403/2.153, allocations: 117.1 kB / 0.7203 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.949e-06/2.153, allocations: 3.938 kB / 0.7203 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003118/2.154, allocations: 0.6518 MB / 0.721 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/2.154, allocations: 2.188 kB / 0.721 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003672/2.154, allocations: 346.2 kB / 0.7213 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.786e-05/2.154, allocations: 109 kB / 0.7214 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.018e-05/2.154, allocations: 18.25 kB / 0.7214 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/2.154, allocations: 3.938 kB / 0.7214 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.581e-05/2.154, allocations: 8.531 kB / 0.7214 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-06/2.154, allocations: 3.844 kB / 0.7214 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001817/2.155, allocations: 238.4 kB / 0.7217 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.41e-07/2.155, allocations: 0 / 0.7217 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00263/2.157, allocations: 1.18 MB / 0.7228 GB, free: 210 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.004206/2.162, allocations: 1.744 MB / 0.7245 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004961/2.162, allocations: 226.8 kB / 0.7247 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/2.162, allocations: 256 / 0.7247 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001877/2.162, allocations: 97.09 kB / 0.7248 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007438/2.163, allocations: 127.4 kB / 0.7249 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007408/2.164, allocations: 0.4908 MB / 0.7254 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001556/2.164, allocations: 0.7688 MB / 0.7262 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 7.886e-05/2.164, allocations: 25.39 kB / 0.7262 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.717e-05/2.164, allocations: 18.78 kB / 0.7262 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of SimCode: time 3.01e-07/2.164, allocations: 0 / 0.7262 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of Templates: time 0.04114/2.205, allocations: 42.43 MB / 0.7677 GB, free: 180.5 MB / 0.5919 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.makefile (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 & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe 2>&1)