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.8184/0.8184, allocations: 150.9 MB / 166.4 MB, free: 14.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003487/0.0003488, allocations: 15.97 kB / 204.5 MB, free: 9.746 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1561/0.1565, allocations: 31.33 MB / 235.9 MB, free: 5.414 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.625/1.781, allocations: 294.7 MB / 0.5181 GB, free: 13.32 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4909/2.272, allocations: 190.1 MB / 0.7038 GB, free: 2.125 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003784/2.273, allocations: 5.031 kB / 0.7038 GB, free: 2.125 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.0001503/2.273, allocations: 40.33 kB / 0.7038 GB, free: 2.125 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003663/2.273, allocations: 116.5 kB / 0.7039 GB, free: 2.125 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.02951/2.303, allocations: 12.1 MB / 0.7157 GB, free: 1.988 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004704/2.303, allocations: 399.9 kB / 0.7161 GB, free: 1.988 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002375/2.303, allocations: 208.6 kB / 0.7163 GB, free: 1.969 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001997/2.304, allocations: 162.5 kB / 0.7165 GB, free: 1.965 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001803/2.304, allocations: 178.4 kB / 0.7166 GB, free: 1.965 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.754e-05/2.304, allocations: 35.41 kB / 0.7167 GB, free: 1.965 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03477/2.339, allocations: 20.74 MB / 0.7369 GB, free: 1.852 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001285/2.339, allocations: 75.06 kB / 0.737 GB, free: 1.852 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002826/2.339, allocations: 187.3 kB / 0.7372 GB, free: 1.852 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02529/2.364, allocations: 10.39 MB / 0.7473 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/2.364, allocations: 0.875 kB / 0.7473 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.905e-06/2.364, allocations: 0 / 0.7473 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 8.827e-06/2.364, allocations: 6.656 kB / 0.7473 GB, free: 14.61 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.005152/2.37, allocations: 1.861 MB / 0.7491 GB, free: 13.4 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/2.37, allocations: 11.09 kB / 0.7491 GB, free: 13.4 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.995e-05/2.37, allocations: 44.14 kB / 0.7492 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003284/2.37, allocations: 291 kB / 0.7495 GB, free: 13.13 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.482e-05/2.37, allocations: 32.47 kB / 0.7495 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.033e-05/2.37, allocations: 34.94 kB / 0.7495 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005184/2.371, allocations: 376.2 kB / 0.7499 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/2.371, allocations: 6.688 kB / 0.7499 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.853e-05/2.371, allocations: 15.97 kB / 0.7499 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/2.371, allocations: 9.562 kB / 0.7499 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00039/2.371, allocations: 243.4 kB / 0.7501 GB, free: 12.93 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008543/2.38, allocations: 6.172 MB / 0.7562 GB, free: 7.766 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001973/2.38, allocations: 79.66 kB / 0.7563 GB, free: 7.738 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.168e-05/2.38, allocations: 29.27 kB / 0.7563 GB, free: 7.727 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3238/2.704, allocations: 154.7 MB / 0.9074 GB, free: 4.477 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.881e-05/2.704, allocations: 35.66 kB / 0.9074 GB, free: 4.438 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 1.743e-06/2.704, allocations: 0 / 0.9074 GB, free: 4.438 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.0008313/2.705, allocations: 252.1 kB / 0.9076 GB, free: 4.195 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.255e-05/2.705, allocations: 77.11 kB / 0.9077 GB, free: 4.102 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003826/2.705, allocations: 291 kB / 0.908 GB, free: 3.871 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.101e-05/2.705, allocations: 29.7 kB / 0.908 GB, free: 3.836 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001534/2.705, allocations: 226.8 kB / 0.9082 GB, free: 3.641 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.661e-05/2.705, allocations: 36.22 kB / 0.9083 GB, free: 3.613 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/2.705, allocations: 63.42 kB / 0.9083 GB, free: 3.562 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001194/2.706, allocations: 330.8 kB / 0.9087 GB, free: 3.238 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/2.706, allocations: 51.81 kB / 0.9087 GB, free: 3.203 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001787/2.706, allocations: 161.3 kB / 0.9089 GB, free: 3.02 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000262/2.706, allocations: 207 kB / 0.9091 GB, free: 2.824 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/2.706, allocations: 0 / 0.9091 GB, free: 2.824 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005483/2.707, allocations: 283.2 kB / 0.9093 GB, free: 2.613 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/2.707, allocations: 5.719 kB / 0.9093 GB, free: 2.609 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/2.707, allocations: 5.203 kB / 0.9093 GB, free: 2.605 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009819/2.708, allocations: 114.6 kB / 0.9094 GB, free: 2.5 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001632/2.708, allocations: 43.27 kB / 0.9095 GB, free: 2.461 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005441/2.709, allocations: 0.5665 MB / 0.91 GB, free: 1.891 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000245/2.709, allocations: 35.05 kB / 0.9101 GB, free: 1.859 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.456e-05/2.709, allocations: 13.44 kB / 0.9101 GB, free: 1.848 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.0001838/2.709, allocations: 149.3 kB / 0.9102 GB, free: 1.715 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.783e-05/2.709, allocations: 27.66 kB / 0.9103 GB, free: 1.688 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006334/2.71, allocations: 172.6 kB / 0.9104 GB, free: 1.543 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/2.71, allocations: 0 / 0.9104 GB, free: 1.543 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/2.71, allocations: 1.094 kB / 0.9104 GB, free: 1.543 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/2.71, allocations: 0 / 0.9104 GB, free: 1.543 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003869/2.71, allocations: 313 kB / 0.9107 GB, free: 1.238 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/2.71, allocations: 0 / 0.9107 GB, free: 1.238 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.932e-05/2.71, allocations: 8 kB / 0.9107 GB, free: 1.23 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005714/2.711, allocations: 90.47 kB / 0.9108 GB, free: 1.148 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/2.711, allocations: 4 kB / 0.9108 GB, free: 1.145 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004471/2.711, allocations: 0.5595 MB / 0.9114 GB, free: 0.582 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/2.711, allocations: 0 / 0.9114 GB, free: 0.582 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004901/2.712, allocations: 174.2 kB / 0.9115 GB, free: 424 kB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001155/2.712, allocations: 105.6 kB / 0.9116 GB, free: 308 kB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.55e-05/2.712, allocations: 7.984 kB / 0.9116 GB, free: 300 kB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.188e-05/2.712, allocations: 2.688 kB / 0.9116 GB, free: 300 kB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.978e-05/2.712, allocations: 7.938 kB / 0.9116 GB, free: 292 kB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-06/2.712, allocations: 4 kB / 0.9117 GB, free: 288 kB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002201/2.712, allocations: 213 kB / 0.9119 GB, free: 112 kB / 0.7481 GB Notification: Performance of sort global known variables: time 1.4e-07/2.712, allocations: 0 / 0.9119 GB, free: 112 kB / 0.7481 GB Notification: Performance of remove unused functions: time 0.004555/2.717, allocations: 1.608 MB / 0.9134 GB, free: 14.62 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.008317/2.725, allocations: 2.47 MB / 0.9158 GB, free: 12.49 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0005837/2.726, allocations: 142.8 kB / 0.916 GB, free: 12.39 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/2.726, allocations: 0 / 0.916 GB, free: 12.39 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001525/2.726, allocations: 38.34 kB / 0.916 GB, free: 12.36 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004628/2.726, allocations: 73.3 kB / 0.9161 GB, free: 12.31 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008497/2.727, allocations: 461.1 kB / 0.9165 GB, free: 11.86 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002939/2.728, allocations: 0.7597 MB / 0.9173 GB, free: 11.08 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0001728/2.728, allocations: 51.03 kB / 0.9173 GB, free: 11.03 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.089e-05/2.728, allocations: 27.44 kB / 0.9173 GB, free: 11 MB / 0.7637 GB Notification: Performance of SimCode: time 1.192e-06/2.728, allocations: 0 / 0.9173 GB, free: 11 MB / 0.7637 GB Notification: Performance of Templates: time 0.06195/2.79, allocations: 48.72 MB / 0.9649 GB, free: 10.35 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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe 2>&1)