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.7959/0.7959, allocations: 150.9 MB / 167 MB, free: 14.28 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000346/0.0003462, allocations: 11.98 kB / 205.2 MB, free: 9.602 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1449/0.1453, allocations: 31.33 MB / 236.5 MB, free: 5.445 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.531/1.677, allocations: 294.8 MB / 0.5189 GB, free: 12.98 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4719/2.149, allocations: 190.1 MB / 0.7045 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002819/2.149, allocations: 5.25 kB / 0.7045 GB, free: 2.273 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.0001228/2.149, allocations: 44.34 kB / 0.7045 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002647/2.149, allocations: 113.8 kB / 0.7046 GB, free: 2.273 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.02898/2.178, allocations: 12.11 MB / 0.7165 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005243/2.179, allocations: 394.5 kB / 0.7168 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002675/2.179, allocations: 209 kB / 0.717 GB, free: 2.113 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001945/2.179, allocations: 159.9 kB / 0.7172 GB, free: 2.113 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001916/2.18, allocations: 177.1 kB / 0.7174 GB, free: 2.113 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.126e-05/2.18, allocations: 37 kB / 0.7174 GB, free: 2.113 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.033/2.213, allocations: 20.73 MB / 0.7376 GB, free: 1.996 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001347/2.213, allocations: 83.53 kB / 0.7377 GB, free: 1.996 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002691/2.213, allocations: 185.9 kB / 0.7379 GB, free: 1.996 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02197/2.235, allocations: 10.37 MB / 0.748 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/2.235, allocations: 0 / 0.748 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.823e-06/2.235, allocations: 0 / 0.748 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 8.276e-06/2.235, allocations: 0.9688 kB / 0.748 GB, free: 14.72 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.004664/2.24, allocations: 1.874 MB / 0.7499 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/2.24, allocations: 14.14 kB / 0.7499 GB, free: 13.49 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.74e-05/2.24, allocations: 43.3 kB / 0.7499 GB, free: 13.47 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003013/2.24, allocations: 283 kB / 0.7502 GB, free: 13.23 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/2.24, allocations: 35.72 kB / 0.7502 GB, free: 13.22 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.773e-05/2.24, allocations: 32.69 kB / 0.7502 GB, free: 13.22 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004899/2.241, allocations: 378.4 kB / 0.7506 GB, free: 13.06 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/2.241, allocations: 3.5 kB / 0.7506 GB, free: 13.06 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.791e-05/2.241, allocations: 13.09 kB / 0.7506 GB, free: 13.06 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/2.241, allocations: 9.281 kB / 0.7506 GB, free: 13.06 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003712/2.241, allocations: 251.2 kB / 0.7509 GB, free: 13.03 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007797/2.249, allocations: 6.161 MB / 0.7569 GB, free: 7.867 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001669/2.249, allocations: 81.78 kB / 0.757 GB, free: 7.836 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.004e-05/2.249, allocations: 25.97 kB / 0.757 GB, free: 7.824 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3047/2.554, allocations: 154.7 MB / 0.9081 GB, free: 4.559 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.005e-05/2.554, allocations: 38.06 kB / 0.9081 GB, free: 4.516 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 2.775e-06/2.554, allocations: 0 / 0.9081 GB, free: 4.516 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.0008268/2.555, allocations: 253.3 kB / 0.9084 GB, free: 4.273 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.177e-05/2.555, allocations: 80.23 kB / 0.9084 GB, free: 4.18 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003583/2.555, allocations: 282.8 kB / 0.9087 GB, free: 3.953 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/2.555, allocations: 35.11 kB / 0.9087 GB, free: 3.918 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001473/2.556, allocations: 235.3 kB / 0.909 GB, free: 3.719 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.612e-05/2.556, allocations: 38 kB / 0.909 GB, free: 3.691 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.209e-05/2.556, allocations: 56.16 kB / 0.9091 GB, free: 3.648 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001131/2.556, allocations: 336.3 kB / 0.9094 GB, free: 3.32 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/2.556, allocations: 45.39 kB / 0.9094 GB, free: 3.293 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001709/2.556, allocations: 161.2 kB / 0.9096 GB, free: 3.105 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000255/2.556, allocations: 214.1 kB / 0.9098 GB, free: 2.906 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/2.556, allocations: 0 / 0.9098 GB, free: 2.906 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005208/2.557, allocations: 281.2 kB / 0.91 GB, free: 2.695 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/2.557, allocations: 4 kB / 0.9101 GB, free: 2.691 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/2.557, allocations: 4 kB / 0.9101 GB, free: 2.688 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000906/2.558, allocations: 110.8 kB / 0.9102 GB, free: 2.586 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001586/2.558, allocations: 47.16 kB / 0.9102 GB, free: 2.543 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004741/2.559, allocations: 0.5629 MB / 0.9108 GB, free: 1.977 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002168/2.559, allocations: 40.36 kB / 0.9108 GB, free: 1.941 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.063e-05/2.559, allocations: 12 kB / 0.9108 GB, free: 1.93 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.0001621/2.559, allocations: 144.7 kB / 0.9109 GB, free: 1.801 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.579e-05/2.559, allocations: 30.84 kB / 0.911 GB, free: 1.773 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005621/2.56, allocations: 162.9 kB / 0.9111 GB, free: 1.629 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.339e-06/2.56, allocations: 3.188 kB / 0.9111 GB, free: 1.629 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/2.56, allocations: 5.047 kB / 0.9111 GB, free: 1.629 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/2.56, allocations: 3.984 kB / 0.9111 GB, free: 1.625 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003075/2.56, allocations: 318.2 kB / 0.9114 GB, free: 1.316 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/2.56, allocations: 0 / 0.9114 GB, free: 1.316 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.866e-05/2.56, allocations: 8 kB / 0.9115 GB, free: 1.309 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004969/2.56, allocations: 76.95 kB / 0.9115 GB, free: 1.238 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/2.561, allocations: 4 kB / 0.9115 GB, free: 1.234 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003987/2.561, allocations: 0.5672 MB / 0.9121 GB, free: 0.6641 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/2.561, allocations: 0 / 0.9121 GB, free: 0.6641 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004631/2.561, allocations: 171.2 kB / 0.9122 GB, free: 0.5 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/2.562, allocations: 103.2 kB / 0.9123 GB, free: 392 kB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.937e-05/2.562, allocations: 8.688 kB / 0.9124 GB, free: 384 kB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.711e-05/2.562, allocations: 1.25 kB / 0.9124 GB, free: 384 kB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.066e-05/2.562, allocations: 15.64 kB / 0.9124 GB, free: 372 kB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.102e-06/2.562, allocations: 0.625 kB / 0.9124 GB, free: 372 kB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002194/2.562, allocations: 207.7 kB / 0.9126 GB, free: 200 kB / 0.7481 GB Notification: Performance of sort global known variables: time 1.41e-07/2.562, allocations: 0 / 0.9126 GB, free: 200 kB / 0.7481 GB Notification: Performance of remove unused functions: time 0.004312/2.566, allocations: 1.608 MB / 0.9141 GB, free: 14.7 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.007892/2.574, allocations: 2.487 MB / 0.9166 GB, free: 12.57 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0004881/2.575, allocations: 126.2 kB / 0.9167 GB, free: 12.48 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/2.575, allocations: 0 / 0.9167 GB, free: 12.48 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001495/2.575, allocations: 42.53 kB / 0.9167 GB, free: 12.45 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004364/2.575, allocations: 80.06 kB / 0.9168 GB, free: 12.39 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008983/2.576, allocations: 490.8 kB / 0.9173 GB, free: 11.91 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000324/2.577, allocations: 0.7596 MB / 0.918 GB, free: 11.12 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.817e-05/2.577, allocations: 35.25 kB / 0.918 GB, free: 11.09 MB / 0.7637 GB Notification: Performance of SimCode: time 3.5e-07/2.577, allocations: 4 kB / 0.9181 GB, free: 11.09 MB / 0.7637 GB Notification: Performance of Templates: time 0.04401/2.621, allocations: 31.21 MB / 0.9485 GB, free: 11.94 MB / 0.795 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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe 2>&1)