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.7882/0.7882, allocations: 150.8 MB / 166.7 MB, free: 14.61 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000336/0.0003359, allocations: 15.98 kB / 204.8 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1507/0.151, allocations: 31.33 MB / 236.1 MB, free: 5.559 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.598/1.749, allocations: 293.6 MB / 0.5173 GB, free: 13.69 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2029/1.952, allocations: 188.1 MB / 0.701 GB, free: 1.219 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003234/1.953, allocations: 11.94 kB / 0.701 GB, free: 1.207 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.0001284/1.953, allocations: 28.91 kB / 0.701 GB, free: 1.18 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002746/1.953, allocations: 91.23 kB / 0.7011 GB, free: 1.09 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.3486/2.302, allocations: 10.69 MB / 0.7115 GB, free: 2.613 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006209/2.302, allocations: 402.9 kB / 0.7119 GB, free: 2.613 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002799/2.303, allocations: 200.4 kB / 0.7121 GB, free: 2.598 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002084/2.303, allocations: 159.1 kB / 0.7123 GB, free: 2.598 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001976/2.303, allocations: 176.9 kB / 0.7124 GB, free: 2.598 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.193e-05/2.303, allocations: 36.19 kB / 0.7125 GB, free: 2.598 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03636/2.339, allocations: 20.92 MB / 0.7329 GB, free: 2.469 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000182/2.34, allocations: 74.67 kB / 0.733 GB, free: 2.469 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003236/2.34, allocations: 189.5 kB / 0.7331 GB, free: 2.469 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01528/2.355, allocations: 7.199 MB / 0.7402 GB, free: 1.684 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 8.776e-06/2.355, allocations: 0 / 0.7402 GB, free: 1.684 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.914e-06/2.355, allocations: 0.9062 kB / 0.7402 GB, free: 1.684 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.014e-05/2.355, allocations: 0 / 0.7402 GB, free: 1.684 MB / 0.5762 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.007357/2.363, allocations: 1.864 MB / 0.742 GB, free: 16.47 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/2.363, allocations: 13.28 kB / 0.742 GB, free: 16.47 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.271e-05/2.363, allocations: 41.06 kB / 0.742 GB, free: 16.45 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003159/2.363, allocations: 299 kB / 0.7423 GB, free: 16.2 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.169e-05/2.363, allocations: 25.78 kB / 0.7424 GB, free: 16.2 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.768e-05/2.363, allocations: 34.5 kB / 0.7424 GB, free: 16.2 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005381/2.364, allocations: 383.7 kB / 0.7427 GB, free: 16.04 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/2.364, allocations: 0 / 0.7427 GB, free: 16.04 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.911e-05/2.364, allocations: 14.47 kB / 0.7428 GB, free: 16.04 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/2.364, allocations: 10.41 kB / 0.7428 GB, free: 16.04 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003582/2.364, allocations: 247.9 kB / 0.743 GB, free: 16.01 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007978/2.372, allocations: 6.165 MB / 0.749 GB, free: 10.85 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001787/2.372, allocations: 75.69 kB / 0.7491 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.354e-05/2.373, allocations: 30.45 kB / 0.7491 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2944/2.667, allocations: 154.7 MB / 0.9002 GB, free: 9.242 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.795e-05/2.667, allocations: 38.56 kB / 0.9003 GB, free: 9.195 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 1.953e-06/2.667, allocations: 1.203 kB / 0.9003 GB, free: 9.195 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.0008188/2.668, allocations: 250 kB / 0.9005 GB, free: 8.957 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.784e-05/2.668, allocations: 81.11 kB / 0.9006 GB, free: 8.859 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000341/2.668, allocations: 283.1 kB / 0.9009 GB, free: 8.629 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.217e-05/2.668, allocations: 33.33 kB / 0.9009 GB, free: 8.594 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/2.668, allocations: 233.8 kB / 0.9011 GB, free: 8.391 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.014e-05/2.669, allocations: 24 kB / 0.9011 GB, free: 8.371 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/2.669, allocations: 60.67 kB / 0.9012 GB, free: 8.324 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000112/2.669, allocations: 334.9 kB / 0.9015 GB, free: 8 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001134/2.669, allocations: 44.8 kB / 0.9016 GB, free: 7.973 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/2.669, allocations: 163.2 kB / 0.9017 GB, free: 7.785 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002461/2.669, allocations: 218.4 kB / 0.9019 GB, free: 7.582 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/2.669, allocations: 0 / 0.9019 GB, free: 7.582 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000499/2.67, allocations: 273.8 kB / 0.9022 GB, free: 7.379 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/2.67, allocations: 8 kB / 0.9022 GB, free: 7.371 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/2.67, allocations: 7.984 kB / 0.9022 GB, free: 7.363 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009606/2.671, allocations: 114.3 kB / 0.9023 GB, free: 7.262 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001528/2.671, allocations: 38.98 kB / 0.9023 GB, free: 7.227 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004388/2.671, allocations: 0.5682 MB / 0.9029 GB, free: 6.652 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002411/2.672, allocations: 44.5 kB / 0.9029 GB, free: 6.613 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.271e-05/2.672, allocations: 15.31 kB / 0.903 GB, free: 6.602 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.0001547/2.672, allocations: 149.8 kB / 0.9031 GB, free: 6.473 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.217e-05/2.672, allocations: 23.72 kB / 0.9031 GB, free: 6.449 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005807/2.673, allocations: 175.2 kB / 0.9033 GB, free: 6.297 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-06/2.673, allocations: 4 kB / 0.9033 GB, free: 6.293 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/2.673, allocations: 0 / 0.9033 GB, free: 6.293 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/2.673, allocations: 4 kB / 0.9033 GB, free: 6.289 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003097/2.673, allocations: 315.8 kB / 0.9036 GB, free: 5.984 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/2.673, allocations: 0 / 0.9036 GB, free: 5.984 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.717e-05/2.673, allocations: 9.188 kB / 0.9036 GB, free: 5.977 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005146/2.673, allocations: 76.2 kB / 0.9037 GB, free: 5.902 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/2.673, allocations: 3.375 kB / 0.9037 GB, free: 5.902 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004059/2.674, allocations: 0.5717 MB / 0.9042 GB, free: 5.328 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/2.674, allocations: 0 / 0.9042 GB, free: 5.328 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004755/2.674, allocations: 161.5 kB / 0.9044 GB, free: 5.172 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/2.674, allocations: 108.5 kB / 0.9045 GB, free: 5.051 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.105e-05/2.675, allocations: 7.312 kB / 0.9045 GB, free: 5.047 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.344e-05/2.675, allocations: 4 kB / 0.9045 GB, free: 5.043 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.745e-05/2.675, allocations: 7.031 kB / 0.9045 GB, free: 5.039 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.344e-06/2.675, allocations: 4 kB / 0.9045 GB, free: 5.035 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001984/2.675, allocations: 204.1 kB / 0.9047 GB, free: 4.875 MB / 0.7481 GB Notification: Performance of sort global known variables: time 4.01e-07/2.675, allocations: 0 / 0.9047 GB, free: 4.875 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.004874/2.68, allocations: 1.611 MB / 0.9063 GB, free: 3.379 MB / 0.7481 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.009431/2.689, allocations: 2.553 MB / 0.9088 GB, free: 1.184 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004926/2.69, allocations: 147.2 kB / 0.9089 GB, free: 1.086 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/2.69, allocations: 0 / 0.9089 GB, free: 1.086 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.000149/2.69, allocations: 35.92 kB / 0.9089 GB, free: 1.059 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000428/2.69, allocations: 79.08 kB / 0.909 GB, free: 1.004 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009085/2.691, allocations: 0.588 MB / 0.9096 GB, free: 420 kB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003775/2.692, allocations: 0.7646 MB / 0.9103 GB, free: 15.62 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.671e-05/2.692, allocations: 31.06 kB / 0.9104 GB, free: 15.59 MB / 0.7637 GB Notification: Performance of SimCode: time 2.51e-07/2.692, allocations: 4 kB / 0.9104 GB, free: 15.59 MB / 0.7637 GB Notification: Performance of Templates: time 0.04609/2.738, allocations: 31.21 MB / 0.9409 GB, free: 496 kB / 0.7794 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)