Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.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.SimpleExamples.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8408/0.8408, allocations: 150.9 MB / 167.1 MB, free: 14.72 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003267/0.0003268, allocations: 15.98 kB / 205.9 MB, free: 9.254 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1556/0.156, allocations: 31.33 MB / 237.3 MB, free: 5.699 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.SimpleExamples.TestDiaphragm): time 1.592/1.748, allocations: 294.6 MB / 0.5194 GB, free: 12.95 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4573/2.205, allocations: 190.1 MB / 0.705 GB, free: 2.227 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003042/2.206, allocations: 7.156 kB / 0.705 GB, free: 2.227 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.0001826/2.206, allocations: 41.34 kB / 0.705 GB, free: 2.227 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000416/2.206, allocations: 114.1 kB / 0.7051 GB, free: 2.227 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.02757/2.234, allocations: 12.1 MB / 0.717 GB, free: 2.086 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005848/2.234, allocations: 399.3 kB / 0.7173 GB, free: 2.086 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002572/2.235, allocations: 212.4 kB / 0.7175 GB, free: 2.062 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001985/2.235, allocations: 163 kB / 0.7177 GB, free: 2.062 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001989/2.235, allocations: 174.1 kB / 0.7179 GB, free: 2.062 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.542e-05/2.235, allocations: 35.81 kB / 0.7179 GB, free: 2.062 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03272/2.268, allocations: 20.99 MB / 0.7384 GB, free: 1.949 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001267/2.268, allocations: 78.97 kB / 0.7385 GB, free: 1.949 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002581/2.268, allocations: 188.8 kB / 0.7387 GB, free: 1.949 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02393/2.292, allocations: 10.35 MB / 0.7488 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/2.292, allocations: 4.594 kB / 0.7488 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.225e-06/2.292, allocations: 0 / 0.7488 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.334e-05/2.292, allocations: 4.219 kB / 0.7488 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.004868/2.297, allocations: 1.864 MB / 0.7506 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/2.297, allocations: 10.81 kB / 0.7506 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.887e-05/2.297, allocations: 46.2 kB / 0.7507 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003687/2.298, allocations: 302.5 kB / 0.7509 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.308e-05/2.298, allocations: 29.27 kB / 0.751 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.151e-05/2.298, allocations: 36 kB / 0.751 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005372/2.298, allocations: 377.6 kB / 0.7514 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/2.298, allocations: 1.844 kB / 0.7514 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.884e-05/2.298, allocations: 18.44 kB / 0.7514 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/2.298, allocations: 9.281 kB / 0.7514 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003867/2.299, allocations: 246.8 kB / 0.7516 GB, free: 12.84 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008444/2.307, allocations: 6.154 MB / 0.7576 GB, free: 7.684 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001913/2.307, allocations: 78.12 kB / 0.7577 GB, free: 7.656 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.087e-05/2.308, allocations: 30.48 kB / 0.7577 GB, free: 7.645 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.298/2.606, allocations: 155.6 MB / 0.9097 GB, free: 3.402 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.037e-05/2.606, allocations: 39.97 kB / 0.9098 GB, free: 3.359 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 2.004e-06/2.606, allocations: 1.203 kB / 0.9098 GB, free: 3.359 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.0008125/2.606, allocations: 240.3 kB / 0.91 GB, free: 3.121 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.63e-05/2.607, allocations: 84.2 kB / 0.9101 GB, free: 3.023 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003471/2.607, allocations: 297.7 kB / 0.9104 GB, free: 2.785 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 1.724e-05/2.607, allocations: 25.7 kB / 0.9104 GB, free: 2.754 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/2.607, allocations: 225.6 kB / 0.9106 GB, free: 2.566 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.775e-05/2.607, allocations: 33.23 kB / 0.9106 GB, free: 2.539 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.916e-05/2.607, allocations: 60.72 kB / 0.9107 GB, free: 2.496 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001111/2.607, allocations: 334.6 kB / 0.911 GB, free: 2.168 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001068/2.607, allocations: 52.84 kB / 0.9111 GB, free: 2.133 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001665/2.608, allocations: 164.8 kB / 0.9112 GB, free: 1.949 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000255/2.608, allocations: 209 kB / 0.9114 GB, free: 1.75 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/2.608, allocations: 4 kB / 0.9114 GB, free: 1.746 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005027/2.608, allocations: 267.7 kB / 0.9117 GB, free: 1.547 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/2.608, allocations: 8 kB / 0.9117 GB, free: 1.539 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/2.608, allocations: 480 / 0.9117 GB, free: 1.539 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009382/2.609, allocations: 117.6 kB / 0.9118 GB, free: 1.43 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001625/2.61, allocations: 42.27 kB / 0.9118 GB, free: 1.395 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004533/2.61, allocations: 0.5762 MB / 0.9124 GB, free: 0.8125 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002185/2.61, allocations: 32.52 kB / 0.9124 GB, free: 0.7852 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.757e-05/2.61, allocations: 19.61 kB / 0.9125 GB, free: 0.7695 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.0001468/2.61, allocations: 146.5 kB / 0.9126 GB, free: 0.6367 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.495e-05/2.611, allocations: 27.66 kB / 0.9126 GB, free: 0.6094 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005669/2.611, allocations: 174.2 kB / 0.9128 GB, free: 476 kB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/2.611, allocations: 0 / 0.9128 GB, free: 476 kB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/2.611, allocations: 0 / 0.9128 GB, free: 476 kB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/2.611, allocations: 4 kB / 0.9128 GB, free: 472 kB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003053/2.611, allocations: 309.1 kB / 0.9131 GB, free: 160 kB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/2.611, allocations: 1.203 kB / 0.9131 GB, free: 160 kB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.791e-05/2.611, allocations: 8 kB / 0.9131 GB, free: 152 kB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005068/2.612, allocations: 81.31 kB / 0.9132 GB, free: 76 kB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/2.612, allocations: 1.062 kB / 0.9132 GB, free: 76 kB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004137/2.612, allocations: 0.5671 MB / 0.9137 GB, free: 15.5 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/2.612, allocations: 0 / 0.9137 GB, free: 15.5 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004693/2.613, allocations: 171.1 kB / 0.9139 GB, free: 15.34 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 9.763e-05/2.613, allocations: 108.5 kB / 0.914 GB, free: 15.22 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.861e-05/2.613, allocations: 0 / 0.914 GB, free: 15.22 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.631e-05/2.613, allocations: 5.188 kB / 0.914 GB, free: 15.22 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.847e-05/2.613, allocations: 15.06 kB / 0.914 GB, free: 15.21 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.466e-06/2.613, allocations: 4 kB / 0.914 GB, free: 15.2 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002012/2.613, allocations: 208.8 kB / 0.9142 GB, free: 15.04 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.8e-07/2.613, allocations: 0 / 0.9142 GB, free: 15.04 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.004167/2.618, allocations: 1.603 MB / 0.9158 GB, free: 13.55 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.007969/2.626, allocations: 2.481 MB / 0.9182 GB, free: 11.41 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0005329/2.626, allocations: 131.3 kB / 0.9183 GB, free: 11.32 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/2.626, allocations: 0.9375 kB / 0.9183 GB, free: 11.32 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001558/2.626, allocations: 42.97 kB / 0.9184 GB, free: 11.29 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004676/2.627, allocations: 68.05 kB / 0.9184 GB, free: 11.25 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009187/2.628, allocations: 457.4 kB / 0.9189 GB, free: 10.8 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003219/2.628, allocations: 0.7647 MB / 0.9196 GB, free: 10.01 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0001619/2.628, allocations: 38.97 kB / 0.9197 GB, free: 9.973 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.949e-05/2.628, allocations: 27.42 kB / 0.9197 GB, free: 9.945 MB / 0.7637 GB Notification: Performance of SimCode: time 3.71e-07/2.628, allocations: 0 / 0.9197 GB, free: 9.945 MB / 0.7637 GB Notification: Performance of Templates: time 0.0646/2.693, allocations: 48.68 MB / 0.9672 GB, free: 9.328 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe 2>&1)