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.8352/0.8352, allocations: 150.9 MB / 166.5 MB, free: 14.37 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000321/0.000321, allocations: 18.27 kB / 237.1 MB, free: 1.773 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04973/0.05006, allocations: 31.35 MB / 268.4 MB, free: 7.023 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.633/1.683, allocations: 294.8 MB / 0.55 GB, free: 13.19 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03895/1.722, allocations: 34.44 MB / 0.5837 GB, free: 10.61 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002211/1.722, allocations: 4 kB / 0.5837 GB, free: 10.61 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.0004503/1.723, allocations: 123.4 kB / 0.5838 GB, free: 10.49 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003849/1.723, allocations: 123.2 kB / 0.5839 GB, free: 10.37 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.02629/1.75, allocations: 9.729 MB / 0.5934 GB, free: 0.6211 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005221/1.75, allocations: 354.4 kB / 0.5937 GB, free: 280 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000251/1.75, allocations: 112.5 kB / 0.5938 GB, free: 168 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002788/1.751, allocations: 147.3 kB / 0.594 GB, free: 20 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001807/1.751, allocations: 111.6 kB / 0.5941 GB, free: 15.91 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.172e-05/1.751, allocations: 16 kB / 0.5941 GB, free: 15.89 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03179/1.783, allocations: 17.9 MB / 0.6116 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.536e-05/1.783, allocations: 47.78 kB / 0.6116 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002089/1.783, allocations: 131.4 kB / 0.6117 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01761/1.801, allocations: 8.41 MB / 0.62 GB, free: 5.371 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/1.801, allocations: 4 kB / 0.62 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.523e-06/1.801, allocations: 0 / 0.62 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.568e-06/1.801, allocations: 0 / 0.62 GB, free: 5.367 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.003712/1.804, allocations: 1.437 MB / 0.6214 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/1.804, allocations: 8.031 kB / 0.6214 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.941e-05/1.805, allocations: 35.56 kB / 0.6214 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002283/1.805, allocations: 227.2 kB / 0.6216 GB, free: 3.578 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.749e-05/1.805, allocations: 20.38 kB / 0.6216 GB, free: 3.559 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.452e-05/1.805, allocations: 19.94 kB / 0.6217 GB, free: 3.539 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004203/1.805, allocations: 295.4 kB / 0.6219 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/1.805, allocations: 7.938 kB / 0.622 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.862e-05/1.805, allocations: 8 kB / 0.622 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.805e-05/1.805, allocations: 15.98 kB / 0.622 GB, free: 3.195 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002581/1.806, allocations: 169 kB / 0.6221 GB, free: 3.031 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.03942/1.845, allocations: 18.12 MB / 0.6398 GB, free: 15.03 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003334/1.845, allocations: 138.5 kB / 0.64 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001256/1.846, allocations: 88.84 kB / 0.64 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3387/2.184, allocations: 77.73 MB / 0.716 GB, free: 213.2 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.025e-05/2.184, allocations: 32.09 kB / 0.716 GB, free: 213.2 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 3.246e-06/2.184, allocations: 0 / 0.716 GB, free: 213.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.0009579/2.185, allocations: 454.3 kB / 0.7164 GB, free: 213 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.94e-05/2.185, allocations: 52.72 kB / 0.7165 GB, free: 213 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002023/2.186, allocations: 216.2 kB / 0.7167 GB, free: 212.9 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.202e-05/2.186, allocations: 26.86 kB / 0.7167 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.027e-05/2.186, allocations: 151.2 kB / 0.7168 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 6.176e-05/2.186, allocations: 112.1 kB / 0.7169 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.898e-05/2.186, allocations: 53.95 kB / 0.717 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.481e-05/2.186, allocations: 331.2 kB / 0.7173 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001026/2.186, allocations: 72.41 kB / 0.7174 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/2.186, allocations: 120.1 kB / 0.7175 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002347/2.186, allocations: 203.6 kB / 0.7177 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/2.186, allocations: 1.188 kB / 0.7177 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004009/2.187, allocations: 297.9 kB / 0.718 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/2.187, allocations: 10.69 kB / 0.718 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/2.187, allocations: 0 / 0.718 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008736/2.188, allocations: 161.5 kB / 0.7181 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.418e-05/2.188, allocations: 12.94 kB / 0.7182 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003635/2.188, allocations: 0.634 MB / 0.7188 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/2.188, allocations: 25.94 kB / 0.7188 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.236e-05/2.188, allocations: 5.406 kB / 0.7188 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.912e-05/2.188, allocations: 134.2 kB / 0.7189 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.054e-05/2.188, allocations: 23.62 kB / 0.719 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005788/2.189, allocations: 0.6028 MB / 0.7195 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003069/2.189, allocations: 225.5 kB / 0.7198 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/2.189, allocations: 0 / 0.7198 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/2.189, allocations: 6.609 kB / 0.7198 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007492/2.19, allocations: 0.7365 MB / 0.7205 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/2.19, allocations: 1.375 kB / 0.7205 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.099e-05/2.19, allocations: 15.16 kB / 0.7205 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003376/2.191, allocations: 107.4 kB / 0.7206 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.028e-05/2.191, allocations: 6.438 kB / 0.7206 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003124/2.191, allocations: 0.6604 MB / 0.7213 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/2.191, allocations: 0.8438 kB / 0.7213 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003742/2.191, allocations: 338.1 kB / 0.7216 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.344e-05/2.191, allocations: 107.4 kB / 0.7217 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.113e-05/2.191, allocations: 21.75 kB / 0.7217 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001097/2.191, allocations: 4.562 kB / 0.7217 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.934e-05/2.191, allocations: 6.156 kB / 0.7217 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/2.192, allocations: 5.219 kB / 0.7217 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001811/2.192, allocations: 237.6 kB / 0.7219 GB, free: 210 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.41e-07/2.192, allocations: 0 / 0.7219 GB, free: 210 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002517/2.194, allocations: 1.188 MB / 0.7231 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.00408/2.198, allocations: 1.734 MB / 0.7248 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004823/2.199, allocations: 230.7 kB / 0.725 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/2.199, allocations: 4.25 kB / 0.725 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002009/2.199, allocations: 95.47 kB / 0.7251 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007394/2.2, allocations: 123.5 kB / 0.7252 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007349/2.201, allocations: 0.4931 MB / 0.7257 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001635/2.201, allocations: 0.7677 MB / 0.7265 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 7.567e-05/2.201, allocations: 21.41 kB / 0.7265 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.589e-05/2.201, allocations: 22.69 kB / 0.7265 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of SimCode: time 2.5e-07/2.201, allocations: 0 / 0.7265 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of Templates: time 0.04231/2.243, allocations: 42.43 MB / 0.7679 GB, free: 180.2 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)