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.8572/0.8572, allocations: 150.9 MB / 166.5 MB, free: 14.4 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003616/0.0003617, allocations: 16.91 kB / 237.1 MB, free: 1.797 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06277/0.06314, allocations: 31.35 MB / 268.4 MB, free: 7.066 MB / 222.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.686/1.749, allocations: 294.8 MB / 0.5501 GB, free: 13.2 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5242/2.273, allocations: 190.1 MB / 0.7357 GB, free: 1.754 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003004/2.273, allocations: 9.25 kB / 0.7357 GB, free: 1.754 MB / 0.5919 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.0001358/2.274, allocations: 40.27 kB / 0.7358 GB, free: 1.754 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0003058/2.274, allocations: 111.4 kB / 0.7359 GB, free: 1.754 MB / 0.5919 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.03673/2.311, allocations: 12.11 MB / 0.7477 GB, free: 1.5 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001028/2.312, allocations: 395.6 kB / 0.7481 GB, free: 1.5 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003937/2.312, allocations: 210 kB / 0.7483 GB, free: 1.496 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002621/2.312, allocations: 159.8 kB / 0.7484 GB, free: 1.496 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002502/2.313, allocations: 174.4 kB / 0.7486 GB, free: 1.496 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.106e-05/2.313, allocations: 34.69 kB / 0.7486 GB, free: 1.496 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03901/2.352, allocations: 21 MB / 0.7691 GB, free: 432 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001382/2.352, allocations: 79.55 kB / 0.7692 GB, free: 420 kB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003057/2.352, allocations: 187.6 kB / 0.7694 GB, free: 408 kB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02912/2.381, allocations: 10.44 MB / 0.7796 GB, free: 12.82 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/2.381, allocations: 0 / 0.7796 GB, free: 12.82 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.793e-06/2.381, allocations: 1.094 kB / 0.7796 GB, free: 12.82 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.918e-06/2.381, allocations: 0 / 0.7796 GB, free: 12.82 MB / 0.6075 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.005117/2.387, allocations: 1.949 MB / 0.7815 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/2.387, allocations: 9.703 kB / 0.7815 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.627e-05/2.387, allocations: 44.61 kB / 0.7815 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003618/2.387, allocations: 305.5 kB / 0.7818 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.583e-05/2.387, allocations: 28.25 kB / 0.7819 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.614e-05/2.387, allocations: 36.97 kB / 0.7819 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005342/2.388, allocations: 387.7 kB / 0.7823 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/2.388, allocations: 0 / 0.7823 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.737e-05/2.388, allocations: 14.09 kB / 0.7823 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/2.388, allocations: 11.38 kB / 0.7823 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003964/2.388, allocations: 248.7 kB / 0.7825 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008055/2.396, allocations: 6.158 MB / 0.7885 GB, free: 5.875 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001906/2.396, allocations: 86.69 kB / 0.7886 GB, free: 5.84 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.934e-05/2.397, allocations: 23.45 kB / 0.7886 GB, free: 5.832 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3196/2.716, allocations: 155.7 MB / 0.9407 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/2.716, allocations: 30.56 kB / 0.9407 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 2.194e-06/2.716, allocations: 0 / 0.9407 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0008317/2.717, allocations: 259.1 kB / 0.9409 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.775e-05/2.717, allocations: 77.11 kB / 0.941 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003688/2.717, allocations: 294.8 kB / 0.9413 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.309e-05/2.718, allocations: 30.8 kB / 0.9413 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001485/2.718, allocations: 228.1 kB / 0.9415 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.895e-05/2.718, allocations: 31.53 kB / 0.9416 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.76e-05/2.718, allocations: 61.89 kB / 0.9416 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000117/2.718, allocations: 342.8 kB / 0.9419 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/2.718, allocations: 51.53 kB / 0.942 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001953/2.718, allocations: 160.1 kB / 0.9421 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002854/2.719, allocations: 208.1 kB / 0.9423 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.306e-06/2.719, allocations: 5.203 kB / 0.9423 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005751/2.719, allocations: 268.5 kB / 0.9426 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/2.719, allocations: 12.06 kB / 0.9426 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/2.719, allocations: 4 kB / 0.9426 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009466/2.72, allocations: 104.7 kB / 0.9427 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001665/2.72, allocations: 43.08 kB / 0.9428 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005439/2.721, allocations: 0.5739 MB / 0.9433 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002364/2.721, allocations: 38.41 kB / 0.9434 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.284e-05/2.721, allocations: 15.98 kB / 0.9434 GB, free: 11.14 MB / 0.7794 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.0002069/2.721, allocations: 146.8 kB / 0.9435 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.828e-05/2.721, allocations: 23.92 kB / 0.9435 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005772/2.722, allocations: 178.9 kB / 0.9437 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/2.722, allocations: 0 / 0.9437 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/2.722, allocations: 0 / 0.9437 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/2.722, allocations: 4 kB / 0.9437 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003602/2.722, allocations: 303.5 kB / 0.944 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/2.722, allocations: 0 / 0.944 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.715e-05/2.723, allocations: 11.09 kB / 0.944 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005118/2.723, allocations: 81.55 kB / 0.9441 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/2.723, allocations: 5.75 kB / 0.9441 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004213/2.723, allocations: 0.5641 MB / 0.9446 GB, free: 9.754 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/2.723, allocations: 1.094 kB / 0.9446 GB, free: 9.754 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004781/2.724, allocations: 172.3 kB / 0.9448 GB, free: 9.57 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/2.724, allocations: 109 kB / 0.9449 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.849e-05/2.724, allocations: 0 / 0.9449 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.345e-05/2.724, allocations: 7.922 kB / 0.9449 GB, free: 9.438 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.817e-05/2.724, allocations: 9.516 kB / 0.9449 GB, free: 9.434 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-06/2.724, allocations: 4 kB / 0.9449 GB, free: 9.43 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002414/2.725, allocations: 213.1 kB / 0.9451 GB, free: 9.223 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/2.725, allocations: 1.203 kB / 0.9451 GB, free: 9.223 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.00515/2.73, allocations: 1.632 MB / 0.9467 GB, free: 7.586 MB / 0.7794 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.009545/2.739, allocations: 2.491 MB / 0.9492 GB, free: 5.391 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005573/2.74, allocations: 134.1 kB / 0.9493 GB, free: 5.27 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/2.74, allocations: 4.062 kB / 0.9493 GB, free: 5.266 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001664/2.74, allocations: 55.44 kB / 0.9494 GB, free: 5.219 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004729/2.741, allocations: 64.11 kB / 0.9494 GB, free: 5.164 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009503/2.742, allocations: 455.6 kB / 0.9498 GB, free: 4.691 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003356/2.742, allocations: 0.7628 MB / 0.9506 GB, free: 3.906 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001716/2.742, allocations: 42.91 kB / 0.9506 GB, free: 3.867 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.189e-05/2.742, allocations: 28.62 kB / 0.9507 GB, free: 3.844 MB / 0.7794 GB Notification: Performance of SimCode: time 3.41e-07/2.742, allocations: 0 / 0.9507 GB, free: 3.844 MB / 0.7794 GB Notification: Performance of Templates: time 0.06436/2.806, allocations: 48.71 MB / 0.9982 GB, free: 3.184 MB / 0.8262 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)