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.755/0.755, allocations: 150.9 MB / 167.1 MB, free: 14.54 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003327/0.0003327, allocations: 12.78 kB / 237.7 MB, free: 1.84 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04993/0.05027, allocations: 31.35 MB / 269 MB, free: 7.141 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.477/1.527, allocations: 294.4 MB / 0.5502 GB, free: 13.13 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03389/1.561, allocations: 34.68 MB / 0.5841 GB, free: 10.32 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001999/1.561, allocations: 0 / 0.5841 GB, free: 10.32 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.0003602/1.561, allocations: 103.4 kB / 0.5842 GB, free: 10.21 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002367/1.562, allocations: 99.22 kB / 0.5843 GB, free: 10.12 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.02041/1.582, allocations: 9.64 MB / 0.5937 GB, free: 472 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004502/1.583, allocations: 358.8 kB / 0.594 GB, free: 112 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000187/1.583, allocations: 116.6 kB / 0.5941 GB, free: 0 / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002013/1.583, allocations: 147.3 kB / 0.5943 GB, free: 15.86 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001376/1.583, allocations: 111.4 kB / 0.5944 GB, free: 15.75 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.406e-05/1.583, allocations: 16 kB / 0.5944 GB, free: 15.73 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02595/1.609, allocations: 17.97 MB / 0.6119 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.682e-05/1.609, allocations: 47.83 kB / 0.612 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001574/1.609, allocations: 139.3 kB / 0.6121 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01597/1.625, allocations: 8.468 MB / 0.6204 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/1.625, allocations: 3.938 kB / 0.6204 GB, free: 5.066 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.332e-06/1.625, allocations: 0 / 0.6204 GB, free: 5.066 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.472e-06/1.625, allocations: 0 / 0.6204 GB, free: 5.066 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.003437/1.629, allocations: 1.451 MB / 0.6218 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/1.629, allocations: 12.02 kB / 0.6218 GB, free: 3.555 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.246e-05/1.629, allocations: 31.56 kB / 0.6219 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001878/1.629, allocations: 234.5 kB / 0.6221 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.427e-05/1.629, allocations: 16.44 kB / 0.6221 GB, free: 3.238 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.633e-05/1.629, allocations: 16 kB / 0.6221 GB, free: 3.223 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003841/1.63, allocations: 317.1 kB / 0.6224 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/1.63, allocations: 3.938 kB / 0.6224 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.98e-05/1.63, allocations: 8 kB / 0.6224 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/1.63, allocations: 15.98 kB / 0.6224 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000233/1.63, allocations: 173 kB / 0.6226 GB, free: 2.684 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.03481/1.665, allocations: 18.16 MB / 0.6403 GB, free: 14.65 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004209/1.665, allocations: 146.6 kB / 0.6405 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.706e-05/1.665, allocations: 92.83 kB / 0.6406 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3001/1.965, allocations: 77.91 MB / 0.7167 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.141e-05/1.965, allocations: 35.47 kB / 0.7167 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 1.854e-06/1.965, allocations: 0 / 0.7167 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.0007537/1.966, allocations: 429.1 kB / 0.7171 GB, free: 212 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.565e-05/1.966, allocations: 82.33 kB / 0.7172 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001831/1.966, allocations: 220.8 kB / 0.7174 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.095e-05/1.966, allocations: 29.14 kB / 0.7174 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 6.249e-05/1.966, allocations: 157.2 kB / 0.7176 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.237e-05/1.967, allocations: 108.7 kB / 0.7177 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.153e-05/1.967, allocations: 52.41 kB / 0.7177 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 4.571e-05/1.967, allocations: 338 kB / 0.718 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.263e-05/1.967, allocations: 73.52 kB / 0.7181 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001139/1.967, allocations: 135.7 kB / 0.7182 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002176/1.967, allocations: 227.3 kB / 0.7185 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/1.967, allocations: 0 / 0.7185 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003604/1.967, allocations: 305.3 kB / 0.7188 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/1.967, allocations: 8.406 kB / 0.7188 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/1.968, allocations: 0 / 0.7188 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000821/1.968, allocations: 138.4 kB / 0.7189 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.74e-05/1.968, allocations: 17.33 kB / 0.7189 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003415/1.969, allocations: 0.6228 MB / 0.7195 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001336/1.969, allocations: 27.72 kB / 0.7195 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/1.969, allocations: 5.531 kB / 0.7195 GB, free: 210.6 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 8.607e-05/1.969, allocations: 138.1 kB / 0.7197 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.824e-05/1.969, allocations: 19.69 kB / 0.7197 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006954/1.97, allocations: 0.6193 MB / 0.7203 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004331/1.97, allocations: 229.5 kB / 0.7205 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/1.97, allocations: 0 / 0.7205 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/1.97, allocations: 1.188 kB / 0.7205 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008256/1.971, allocations: 0.736 MB / 0.7212 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/1.971, allocations: 0 / 0.7212 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.869e-05/1.971, allocations: 21.59 kB / 0.7213 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002905/1.971, allocations: 111.7 kB / 0.7214 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.368e-06/1.971, allocations: 3.688 kB / 0.7214 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002952/1.972, allocations: 0.6362 MB / 0.722 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/1.972, allocations: 0 / 0.722 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000479/1.972, allocations: 351.3 kB / 0.7223 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.326e-05/1.972, allocations: 108.1 kB / 0.7224 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.576e-05/1.972, allocations: 13.64 kB / 0.7224 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001166/1.972, allocations: 7.031 kB / 0.7225 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.575e-05/1.973, allocations: 8.453 kB / 0.7225 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.574e-06/1.973, allocations: 4.156 kB / 0.7225 GB, free: 209 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001727/1.973, allocations: 237.3 kB / 0.7227 GB, free: 209 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9.32e-07/1.973, allocations: 0.5625 kB / 0.7227 GB, free: 209 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002505/1.975, allocations: 1.211 MB / 0.7239 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 (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.003763/1.979, allocations: 1.768 MB / 0.7256 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005322/1.98, allocations: 254.7 kB / 0.7258 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/1.98, allocations: 320 / 0.7258 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002163/1.98, allocations: 100.6 kB / 0.7259 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006561/1.98, allocations: 126 kB / 0.7261 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000657/1.981, allocations: 0.5342 MB / 0.7266 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001411/1.981, allocations: 0.7663 MB / 0.7273 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.564e-05/1.981, allocations: 21.22 kB / 0.7273 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of SimCode: time 3.81e-07/1.981, allocations: 0 / 0.7273 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of Templates: time 0.02656/2.008, allocations: 25.32 MB / 0.7521 GB, free: 195.9 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)