Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.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.8572/0.8572, allocations: 150.9 MB / 167.1 MB, free: 14.47 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003557/0.0003559, allocations: 15.97 kB / 206 MB, free: 9.023 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1333, allocations: 31.33 MB / 237.3 MB, free: 5.707 MB / 190.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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm): time 1.626/1.759, allocations: 294.5 MB / 0.5193 GB, free: 13.21 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5047/2.264, allocations: 190.1 MB / 0.7049 GB, free: 2.141 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003293/2.264, allocations: 5.188 kB / 0.7049 GB, free: 2.141 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/Diaphragm.mo:34:3-35:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/Diaphragm.mo:36:3-37:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0001574/2.265, allocations: 41.06 kB / 0.705 GB, free: 2.141 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002923/2.265, allocations: 112.9 kB / 0.7051 GB, free: 2.141 MB / 0.5762 GB [/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.03006/2.295, allocations: 12.11 MB / 0.7169 GB, free: 2 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005748/2.296, allocations: 402 kB / 0.7173 GB, free: 2 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000286/2.296, allocations: 204.1 kB / 0.7175 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002401/2.296, allocations: 160.7 kB / 0.7176 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000204/2.296, allocations: 176.8 kB / 0.7178 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.002e-05/2.296, allocations: 36.47 kB / 0.7178 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03879/2.335, allocations: 21 MB / 0.7383 GB, free: 1.863 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002032/2.335, allocations: 79.06 kB / 0.7384 GB, free: 1.863 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002868/2.336, allocations: 182.9 kB / 0.7386 GB, free: 1.863 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0246/2.36, allocations: 10.38 MB / 0.7487 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/2.36, allocations: 0 / 0.7487 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.463e-06/2.36, allocations: 0.875 kB / 0.7487 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 9.348e-06/2.36, allocations: 0 / 0.7487 GB, free: 14.54 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.005136/2.365, allocations: 1.873 MB / 0.7506 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/2.366, allocations: 10.25 kB / 0.7506 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/2.366, allocations: 43.16 kB / 0.7506 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004015/2.366, allocations: 298.9 kB / 0.7509 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.691e-05/2.366, allocations: 29.59 kB / 0.7509 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.771e-05/2.366, allocations: 34.5 kB / 0.751 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005283/2.367, allocations: 382.6 kB / 0.7513 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/2.367, allocations: 0 / 0.7513 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.801e-05/2.367, allocations: 14.91 kB / 0.7513 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.958e-06/2.367, allocations: 11.97 kB / 0.7513 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003799/2.367, allocations: 245.5 kB / 0.7516 GB, free: 12.84 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008341/2.376, allocations: 6.162 MB / 0.7576 GB, free: 7.684 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001863/2.376, allocations: 77.36 kB / 0.7577 GB, free: 7.656 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.467e-05/2.376, allocations: 37.62 kB / 0.7577 GB, free: 7.641 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3091/2.685, allocations: 155.6 MB / 0.9097 GB, free: 3.441 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.701e-05/2.685, allocations: 34.56 kB / 0.9097 GB, free: 3.398 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 1.933e-06/2.685, allocations: 4 kB / 0.9097 GB, free: 3.395 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.0007708/2.686, allocations: 250.4 kB / 0.91 GB, free: 3.16 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.837e-05/2.686, allocations: 81.11 kB / 0.91 GB, free: 3.062 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003235/2.686, allocations: 292.9 kB / 0.9103 GB, free: 2.828 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/2.686, allocations: 25.7 kB / 0.9103 GB, free: 2.797 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/2.686, allocations: 232.6 kB / 0.9106 GB, free: 2.602 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.352e-05/2.686, allocations: 36.36 kB / 0.9106 GB, free: 2.57 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.608e-05/2.686, allocations: 56.12 kB / 0.9107 GB, free: 2.527 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000109/2.687, allocations: 336.8 kB / 0.911 GB, free: 2.199 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001058/2.687, allocations: 46.5 kB / 0.911 GB, free: 2.168 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001826/2.687, allocations: 166.8 kB / 0.9112 GB, free: 1.98 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002518/2.687, allocations: 217.2 kB / 0.9114 GB, free: 1.777 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/2.687, allocations: 3.844 kB / 0.9114 GB, free: 1.777 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005104/2.688, allocations: 266.8 kB / 0.9116 GB, free: 1.578 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/2.688, allocations: 8 kB / 0.9117 GB, free: 1.57 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/2.688, allocations: 4 kB / 0.9117 GB, free: 1.566 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009439/2.689, allocations: 112.6 kB / 0.9118 GB, free: 1.461 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001664/2.689, allocations: 46.27 kB / 0.9118 GB, free: 1.422 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004357/2.689, allocations: 0.5659 MB / 0.9124 GB, free: 0.8516 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000209/2.689, allocations: 32.88 kB / 0.9124 GB, free: 0.8242 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.189e-05/2.69, allocations: 15.98 kB / 0.9124 GB, free: 0.8086 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,PuitsP1.fluid,Diaphragm.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,Diaphragm.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001424/2.69, allocations: 150.4 kB / 0.9125 GB, free: 0.6719 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.012e-05/2.69, allocations: 27.09 kB / 0.9126 GB, free: 0.6484 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005686/2.69, allocations: 167 kB / 0.9127 GB, free: 0.5039 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/2.69, allocations: 4 kB / 0.9127 GB, free: 0.5 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/2.69, allocations: 5.094 kB / 0.9127 GB, free: 0.4961 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/2.69, allocations: 0 / 0.9127 GB, free: 0.4961 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002804/2.691, allocations: 315 kB / 0.913 GB, free: 196 kB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/2.691, allocations: 0 / 0.913 GB, free: 196 kB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.808e-05/2.691, allocations: 4 kB / 0.913 GB, free: 192 kB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005105/2.691, allocations: 80 kB / 0.9131 GB, free: 112 kB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/2.691, allocations: 3.75 kB / 0.9131 GB, free: 112 kB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004137/2.692, allocations: 0.567 MB / 0.9137 GB, free: 15.54 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/2.692, allocations: 0 / 0.9137 GB, free: 15.54 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004735/2.692, allocations: 175.2 kB / 0.9138 GB, free: 15.38 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 9.373e-05/2.692, allocations: 106.5 kB / 0.914 GB, free: 15.26 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.606e-05/2.692, allocations: 0 / 0.914 GB, free: 15.26 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.923e-05/2.692, allocations: 11.42 kB / 0.914 GB, free: 15.25 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.222e-05/2.692, allocations: 3.938 kB / 0.914 GB, free: 15.25 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.572e-06/2.692, allocations: 8 kB / 0.914 GB, free: 15.24 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002045/2.693, allocations: 206.8 kB / 0.9142 GB, free: 15.07 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.4e-07/2.693, allocations: 4 kB / 0.9142 GB, free: 15.07 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.004003/2.697, allocations: 1.599 MB / 0.9157 GB, free: 13.58 MB / 0.7637 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 (4): * Single equations (assignments): 3 * 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.007382/2.704, allocations: 2.486 MB / 0.9182 GB, free: 11.45 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0005333/2.705, allocations: 132.3 kB / 0.9183 GB, free: 11.35 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/2.705, allocations: 3.188 kB / 0.9183 GB, free: 11.35 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001484/2.705, allocations: 41.09 kB / 0.9183 GB, free: 11.32 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000426/2.705, allocations: 65.05 kB / 0.9184 GB, free: 11.28 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008038/2.706, allocations: 452.7 kB / 0.9188 GB, free: 10.84 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002712/2.706, allocations: 0.7635 MB / 0.9196 GB, free: 10.05 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0001338/2.706, allocations: 38.92 kB / 0.9196 GB, free: 10.02 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.283e-05/2.707, allocations: 27.42 kB / 0.9196 GB, free: 9.988 MB / 0.7637 GB Notification: Performance of SimCode: time 5.21e-07/2.707, allocations: 4 kB / 0.9196 GB, free: 9.984 MB / 0.7637 GB Notification: Performance of Templates: time 0.06224/2.769, allocations: 48.67 MB / 0.9672 GB, free: 9.367 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe 2>&1)