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.8771/0.8771, allocations: 150.9 MB / 167.1 MB, free: 14.47 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000395/0.0003953, allocations: 15.98 kB / 205.9 MB, free: 9.012 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2105/0.2109, allocations: 31.33 MB / 237.3 MB, free: 5.727 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.855/2.066, allocations: 294.6 MB / 0.5194 GB, free: 13.23 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.647/2.713, allocations: 190.1 MB / 0.705 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004401/2.713, allocations: 8.406 kB / 0.705 GB, free: 2.082 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.0001766/2.713, allocations: 38.88 kB / 0.705 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003825/2.714, allocations: 113.1 kB / 0.7051 GB, free: 2.082 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.04006/2.754, allocations: 12.11 MB / 0.717 GB, free: 1.941 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001007/2.755, allocations: 400.8 kB / 0.7174 GB, free: 1.941 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003684/2.755, allocations: 207.5 kB / 0.7176 GB, free: 1.922 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002878/2.755, allocations: 157.4 kB / 0.7177 GB, free: 1.922 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002872/2.756, allocations: 184.3 kB / 0.7179 GB, free: 1.922 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.357e-05/2.756, allocations: 35.91 kB / 0.7179 GB, free: 1.922 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05221/2.808, allocations: 20.99 MB / 0.7384 GB, free: 1.805 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002208/2.808, allocations: 80.8 kB / 0.7385 GB, free: 1.805 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003749/2.809, allocations: 185.8 kB / 0.7387 GB, free: 1.805 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.04231/2.851, allocations: 10.39 MB / 0.7488 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 8.627e-06/2.851, allocations: 0 / 0.7488 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.454e-06/2.851, allocations: 0 / 0.7488 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.968e-05/2.851, allocations: 4.406 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.006487/2.858, allocations: 1.875 MB / 0.7506 GB, free: 13.31 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/2.858, allocations: 10.19 kB / 0.7507 GB, free: 13.31 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/2.858, allocations: 43.12 kB / 0.7507 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004022/2.858, allocations: 293.9 kB / 0.751 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.179e-05/2.858, allocations: 33.09 kB / 0.751 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.467e-05/2.858, allocations: 34.81 kB / 0.751 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005573/2.859, allocations: 384 kB / 0.7514 GB, free: 12.87 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/2.859, allocations: 0 / 0.7514 GB, free: 12.87 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.893e-05/2.859, allocations: 13.62 kB / 0.7514 GB, free: 12.87 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/2.859, allocations: 11.06 kB / 0.7514 GB, free: 12.87 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003906/2.859, allocations: 245.3 kB / 0.7517 GB, free: 12.84 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008649/2.868, allocations: 6.159 MB / 0.7577 GB, free: 7.68 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002146/2.868, allocations: 81.03 kB / 0.7578 GB, free: 7.652 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.592e-05/2.868, allocations: 27.42 kB / 0.7578 GB, free: 7.641 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3244/3.193, allocations: 155.6 MB / 0.9098 GB, free: 3.434 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.362e-05/3.193, allocations: 36.44 kB / 0.9098 GB, free: 3.391 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 6.072e-06/3.193, allocations: 0 / 0.9098 GB, free: 3.391 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.00126/3.194, allocations: 255.3 kB / 0.91 GB, free: 3.148 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.468e-05/3.194, allocations: 85.11 kB / 0.9101 GB, free: 3.047 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005731/3.195, allocations: 287.3 kB / 0.9104 GB, free: 2.816 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.243e-05/3.195, allocations: 26.58 kB / 0.9104 GB, free: 2.785 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002531/3.195, allocations: 236.1 kB / 0.9107 GB, free: 2.59 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 4.68e-05/3.195, allocations: 27.38 kB / 0.9107 GB, free: 2.566 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001694/3.195, allocations: 61.67 kB / 0.9107 GB, free: 2.52 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002098/3.196, allocations: 339.8 kB / 0.9111 GB, free: 2.191 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002015/3.196, allocations: 42.45 kB / 0.9111 GB, free: 2.164 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003707/3.196, allocations: 167.8 kB / 0.9113 GB, free: 1.977 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005334/3.197, allocations: 209.5 kB / 0.9115 GB, free: 1.777 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/3.197, allocations: 0 / 0.9115 GB, free: 1.777 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0009482/3.198, allocations: 278.2 kB / 0.9117 GB, free: 1.574 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.999e-05/3.198, allocations: 11.98 kB / 0.9117 GB, free: 1.562 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/3.198, allocations: 4.469 kB / 0.9117 GB, free: 1.559 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001586/3.199, allocations: 105.7 kB / 0.9118 GB, free: 1.457 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002947/3.2, allocations: 49.16 kB / 0.9119 GB, free: 1.418 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007772/3.201, allocations: 0.5686 MB / 0.9124 GB, free: 0.8438 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004054/3.201, allocations: 34.73 kB / 0.9125 GB, free: 0.8125 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.284e-05/3.201, allocations: 14.56 kB / 0.9125 GB, free: 0.8008 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.0002951/3.201, allocations: 144 kB / 0.9126 GB, free: 0.6719 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.478e-05/3.201, allocations: 27.66 kB / 0.9127 GB, free: 0.6445 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000942/3.202, allocations: 167.6 kB / 0.9128 GB, free: 0.5 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.16e-05/3.202, allocations: 4 kB / 0.9128 GB, free: 0.4961 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/3.202, allocations: 4 kB / 0.9128 GB, free: 0.4922 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/3.203, allocations: 0 / 0.9128 GB, free: 0.4922 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000618/3.203, allocations: 315.1 kB / 0.9131 GB, free: 192 kB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/3.203, allocations: 4 kB / 0.9131 GB, free: 188 kB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.263e-05/3.203, allocations: 7.984 kB / 0.9131 GB, free: 180 kB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009209/3.204, allocations: 76.03 kB / 0.9132 GB, free: 108 kB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.606e-05/3.204, allocations: 0 / 0.9132 GB, free: 108 kB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007198/3.205, allocations: 0.5747 MB / 0.9138 GB, free: 15.53 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/3.205, allocations: 0 / 0.9138 GB, free: 15.53 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008386/3.206, allocations: 166.5 kB / 0.9139 GB, free: 15.37 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002036/3.206, allocations: 107.2 kB / 0.914 GB, free: 15.25 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.058e-05/3.206, allocations: 2.375 kB / 0.914 GB, free: 15.25 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001748/3.206, allocations: 4.094 kB / 0.914 GB, free: 15.25 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.998e-05/3.206, allocations: 11.91 kB / 0.914 GB, free: 15.23 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.528e-05/3.206, allocations: 8.641 kB / 0.9141 GB, free: 15.23 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0004073/3.207, allocations: 202.4 kB / 0.9142 GB, free: 15.07 MB / 0.7637 GB Notification: Performance of sort global known variables: time 4.81e-07/3.207, allocations: 0 / 0.9142 GB, free: 15.07 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.008463/3.215, allocations: 1.608 MB / 0.9158 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.01538/3.231, allocations: 2.475 MB / 0.9182 GB, free: 11.45 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0009299/3.232, allocations: 138.7 kB / 0.9184 GB, free: 11.35 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/3.232, allocations: 1.203 kB / 0.9184 GB, free: 11.35 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0002833/3.232, allocations: 41.03 kB / 0.9184 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.0008254/3.233, allocations: 66.97 kB / 0.9185 GB, free: 11.27 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001548/3.234, allocations: 455.3 kB / 0.9189 GB, free: 10.83 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005739/3.235, allocations: 0.7647 MB / 0.9197 GB, free: 10.04 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002961/3.235, allocations: 42.91 kB / 0.9197 GB, free: 9.996 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/3.236, allocations: 23.44 kB / 0.9197 GB, free: 9.973 MB / 0.7637 GB Notification: Performance of SimCode: time 7.52e-07/3.236, allocations: 4 kB / 0.9197 GB, free: 9.969 MB / 0.7637 GB Notification: Performance of Templates: time 0.07939/3.315, allocations: 48.68 MB / 0.9673 GB, free: 9.352 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 cvode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe 2>&1)