Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.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.Book.SimpleExamples.PressureLoss.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8247/0.8247, allocations: 150.9 MB / 166.5 MB, free: 14.4 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003151/0.0003151, allocations: 12.67 kB / 237 MB, free: 1.879 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05837/0.0587, allocations: 31.35 MB / 268.4 MB, free: 7.117 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.TestDiaphragm): time 1.685/1.744, allocations: 294.6 MB / 0.5498 GB, free: 13.11 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04129/1.786, allocations: 34.67 MB / 0.5836 GB, free: 10.3 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003186/1.786, allocations: 7.938 kB / 0.5836 GB, free: 10.29 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/Diaphragm.mo:30:3-32: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/Diaphragm.mo:33:3-35: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.0004414/1.786, allocations: 115.3 kB / 0.5837 GB, free: 10.18 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002361/1.787, allocations: 87.23 kB / 0.5838 GB, free: 10.09 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.02515/1.812, allocations: 9.647 MB / 0.5932 GB, free: 436 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005495/1.812, allocations: 354.8 kB / 0.5936 GB, free: 80 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002387/1.813, allocations: 112.6 kB / 0.5937 GB, free: 15.97 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002337/1.813, allocations: 143.3 kB / 0.5938 GB, free: 15.83 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001674/1.813, allocations: 119.4 kB / 0.5939 GB, free: 15.71 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.223e-05/1.813, allocations: 19.98 kB / 0.594 GB, free: 15.7 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03071/1.844, allocations: 17.96 MB / 0.6115 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.703e-05/1.844, allocations: 43.84 kB / 0.6115 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001784/1.844, allocations: 139.3 kB / 0.6117 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0177/1.862, allocations: 8.468 MB / 0.62 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.346e-06/1.862, allocations: 0 / 0.62 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of FrontEnd: time 5.33e-06/1.862, allocations: 0 / 0.62 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.033e-05/1.862, allocations: 3.938 kB / 0.62 GB, free: 5.039 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.003818/1.866, allocations: 1.451 MB / 0.6214 GB, free: 3.539 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/1.866, allocations: 8.031 kB / 0.6214 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.453e-05/1.866, allocations: 27.62 kB / 0.6214 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002209/1.866, allocations: 239.8 kB / 0.6216 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.547e-05/1.866, allocations: 12.44 kB / 0.6216 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.732e-05/1.866, allocations: 20 kB / 0.6217 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004432/1.867, allocations: 313.1 kB / 0.622 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/1.867, allocations: 3.938 kB / 0.622 GB, free: 2.855 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.645e-05/1.867, allocations: 12 kB / 0.622 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.724e-05/1.867, allocations: 19.92 kB / 0.622 GB, free: 2.824 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002683/1.867, allocations: 177 kB / 0.6222 GB, free: 2.652 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.03861/1.905, allocations: 18.17 MB / 0.6399 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004532/1.906, allocations: 146.5 kB / 0.6401 GB, free: 14.46 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/1.906, allocations: 96.83 kB / 0.6401 GB, free: 14.37 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3356/2.242, allocations: 77.91 MB / 0.7162 GB, free: 212 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.977e-05/2.242, allocations: 31.94 kB / 0.7163 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.304e-06/2.242, allocations: 2.078 kB / 0.7163 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.0008535/2.243, allocations: 431.7 kB / 0.7167 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.936e-05/2.243, allocations: 78.48 kB / 0.7167 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001957/2.243, allocations: 225.7 kB / 0.717 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.381e-05/2.243, allocations: 26.86 kB / 0.717 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.601e-05/2.243, allocations: 160.3 kB / 0.7171 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.048e-05/2.243, allocations: 104 kB / 0.7172 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.325e-05/2.243, allocations: 55.89 kB / 0.7173 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.911e-05/2.243, allocations: 335.5 kB / 0.7176 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/2.243, allocations: 73.8 kB / 0.7177 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001335/2.243, allocations: 132.5 kB / 0.7178 GB, free: 211 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002419/2.244, allocations: 228.4 kB / 0.718 GB, free: 211 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/2.244, allocations: 0 / 0.718 GB, free: 211 MB / 0.5919 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003916/2.244, allocations: 309.6 kB / 0.7183 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/2.244, allocations: 4.938 kB / 0.7183 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/2.244, allocations: 2.844 kB / 0.7183 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009215/2.245, allocations: 142 kB / 0.7185 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.376e-05/2.245, allocations: 17.03 kB / 0.7185 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003751/2.246, allocations: 0.611 MB / 0.7191 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/2.246, allocations: 31.38 kB / 0.7191 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.623e-05/2.246, allocations: 8.938 kB / 0.7191 GB, free: 210.3 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 4 (Diaphragm.C2.b,Diaphragm.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 (15): * Single equations (assignments): 12 * 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.0001167/2.246, allocations: 143 kB / 0.7193 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.445e-05/2.246, allocations: 20.41 kB / 0.7193 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007658/2.247, allocations: 0.6108 MB / 0.7199 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004701/2.247, allocations: 227 kB / 0.7201 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/2.247, allocations: 4 kB / 0.7201 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/2.247, allocations: 0 / 0.7201 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009016/2.248, allocations: 0.7361 MB / 0.7208 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/2.248, allocations: 0 / 0.7208 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.327e-05/2.248, allocations: 20.81 kB / 0.7208 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003251/2.248, allocations: 114.6 kB / 0.7209 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/2.249, allocations: 2.719 kB / 0.7209 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003571/2.249, allocations: 0.6344 MB / 0.7216 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/2.249, allocations: 0 / 0.7216 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005248/2.249, allocations: 343.9 kB / 0.7219 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.254e-05/2.249, allocations: 113 kB / 0.722 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.261e-05/2.25, allocations: 16.97 kB / 0.722 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001294/2.25, allocations: 7.125 kB / 0.722 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.419e-05/2.25, allocations: 12.34 kB / 0.722 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.035e-06/2.25, allocations: 2.656 kB / 0.722 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002212/2.25, allocations: 240.8 kB / 0.7223 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.5e-07/2.25, allocations: 0 / 0.7223 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002796/2.253, allocations: 1.209 MB / 0.7234 GB, free: 208.7 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.004383/2.257, allocations: 1.766 MB / 0.7252 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0006195/2.258, allocations: 255.3 kB / 0.7254 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/2.258, allocations: 0 / 0.7254 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002421/2.258, allocations: 99.09 kB / 0.7255 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007249/2.259, allocations: 125.5 kB / 0.7256 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006748/2.259, allocations: 0.4986 MB / 0.7261 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001814/2.26, allocations: 0.7678 MB / 0.7269 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 9.978e-05/2.26, allocations: 28.55 kB / 0.7269 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.679e-05/2.26, allocations: 25.31 kB / 0.7269 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of SimCode: time 4.2e-07/2.26, allocations: 0 / 0.7269 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of Templates: time 0.04305/2.303, allocations: 42.9 MB / 0.7688 GB, free: 178.4 MB / 0.5919 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe 2>&1)