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.8301/0.8301, allocations: 150.9 MB / 167.1 MB, free: 14.56 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003338/0.000334, allocations: 11.98 kB / 206 MB, free: 9.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1345, allocations: 31.33 MB / 237.3 MB, free: 5.738 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.585/1.72, allocations: 294.5 MB / 0.5193 GB, free: 12.98 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4789/2.199, allocations: 190.1 MB / 0.7049 GB, free: 2.242 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002809/2.199, allocations: 8.469 kB / 0.7049 GB, free: 2.242 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.0001352/2.199, allocations: 38.77 kB / 0.705 GB, free: 2.242 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002621/2.199, allocations: 113.2 kB / 0.7051 GB, free: 2.242 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.03122/2.231, allocations: 12.11 MB / 0.7169 GB, free: 2.102 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004322/2.231, allocations: 396 kB / 0.7173 GB, free: 2.102 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002379/2.231, allocations: 208.3 kB / 0.7175 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001767/2.232, allocations: 161 kB / 0.7176 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001784/2.232, allocations: 173.8 kB / 0.7178 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.698e-05/2.232, allocations: 38.34 kB / 0.7178 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0337/2.265, allocations: 21 MB / 0.7383 GB, free: 1.965 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001099/2.266, allocations: 70.72 kB / 0.7384 GB, free: 1.965 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002385/2.266, allocations: 190.8 kB / 0.7386 GB, free: 1.965 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02122/2.287, allocations: 10.37 MB / 0.7487 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/2.287, allocations: 3.375 kB / 0.7487 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.473e-06/2.287, allocations: 0.7812 kB / 0.7487 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.307e-05/2.287, allocations: 2.125 kB / 0.7487 GB, free: 14.61 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.00437/2.292, allocations: 1.863 MB / 0.7506 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/2.292, allocations: 11.12 kB / 0.7506 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000119/2.292, allocations: 42.03 kB / 0.7506 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004266/2.292, allocations: 305.3 kB / 0.7509 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.682e-05/2.292, allocations: 31.84 kB / 0.7509 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.839e-05/2.292, allocations: 32.28 kB / 0.751 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005487/2.293, allocations: 382.9 kB / 0.7513 GB, free: 12.95 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/2.293, allocations: 0 / 0.7513 GB, free: 12.95 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.07e-05/2.293, allocations: 21.59 kB / 0.7513 GB, free: 12.95 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/2.293, allocations: 8.094 kB / 0.7514 GB, free: 12.95 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004081/2.293, allocations: 245.3 kB / 0.7516 GB, free: 12.92 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008348/2.302, allocations: 6.157 MB / 0.7576 GB, free: 7.758 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000173/2.302, allocations: 74.88 kB / 0.7577 GB, free: 7.73 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.374e-05/2.302, allocations: 34.11 kB / 0.7577 GB, free: 7.719 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3089/2.611, allocations: 155.6 MB / 0.9097 GB, free: 3.473 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/2.611, allocations: 32.59 kB / 0.9097 GB, free: 3.434 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 1.714e-06/2.611, allocations: 0 / 0.9097 GB, free: 3.434 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.0007894/2.612, allocations: 250.8 kB / 0.91 GB, free: 3.191 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.328e-05/2.612, allocations: 77.11 kB / 0.91 GB, free: 3.098 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003571/2.612, allocations: 295.5 kB / 0.9103 GB, free: 2.863 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/2.612, allocations: 28.66 kB / 0.9103 GB, free: 2.832 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001434/2.612, allocations: 227.9 kB / 0.9106 GB, free: 2.637 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.418e-05/2.612, allocations: 32.67 kB / 0.9106 GB, free: 2.609 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.949e-05/2.612, allocations: 59.44 kB / 0.9106 GB, free: 2.562 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001197/2.613, allocations: 340.9 kB / 0.911 GB, free: 2.23 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/2.613, allocations: 50.88 kB / 0.911 GB, free: 2.199 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001799/2.613, allocations: 159.3 kB / 0.9112 GB, free: 2.016 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002545/2.613, allocations: 215.4 kB / 0.9114 GB, free: 1.816 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.793e-06/2.613, allocations: 4 kB / 0.9114 GB, free: 1.812 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005244/2.614, allocations: 275.1 kB / 0.9116 GB, free: 1.609 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/2.614, allocations: 8 kB / 0.9117 GB, free: 1.602 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/2.614, allocations: 4.312 kB / 0.9117 GB, free: 1.598 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009649/2.615, allocations: 111.1 kB / 0.9118 GB, free: 1.492 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001647/2.615, allocations: 39.17 kB / 0.9118 GB, free: 1.457 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004462/2.615, allocations: 0.5688 MB / 0.9124 GB, free: 0.8828 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002228/2.616, allocations: 30.69 kB / 0.9124 GB, free: 0.8555 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.887e-05/2.616, allocations: 15.48 kB / 0.9124 GB, free: 0.8438 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.0001446/2.616, allocations: 159.2 kB / 0.9126 GB, free: 0.7031 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.403e-05/2.616, allocations: 27.66 kB / 0.9126 GB, free: 0.6758 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005625/2.616, allocations: 165.3 kB / 0.9127 GB, free: 0.5312 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/2.616, allocations: 0 / 0.9127 GB, free: 0.5312 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/2.616, allocations: 0 / 0.9127 GB, free: 0.5312 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/2.616, allocations: 8.031 kB / 0.9127 GB, free: 0.5234 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002738/2.617, allocations: 313.9 kB / 0.913 GB, free: 228 kB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/2.617, allocations: 0 / 0.913 GB, free: 228 kB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.874e-05/2.617, allocations: 8 kB / 0.913 GB, free: 220 kB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005241/2.617, allocations: 88.06 kB / 0.9131 GB, free: 136 kB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/2.617, allocations: 0 / 0.9131 GB, free: 136 kB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003982/2.618, allocations: 0.5627 MB / 0.9137 GB, free: 15.57 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/2.618, allocations: 8.234 kB / 0.9137 GB, free: 15.57 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004857/2.618, allocations: 166.9 kB / 0.9138 GB, free: 15.4 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 9.376e-05/2.618, allocations: 107.9 kB / 0.914 GB, free: 15.29 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.632e-05/2.618, allocations: 0 / 0.914 GB, free: 15.29 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.92e-05/2.618, allocations: 3.984 kB / 0.914 GB, free: 15.28 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.191e-05/2.619, allocations: 7.938 kB / 0.914 GB, free: 15.27 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.825e-06/2.619, allocations: 4 kB / 0.914 GB, free: 15.27 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002065/2.619, allocations: 215.5 kB / 0.9142 GB, free: 15.1 MB / 0.7637 GB Notification: Performance of sort global known variables: time 8.62e-07/2.619, allocations: 0 / 0.9142 GB, free: 15.1 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0038/2.623, allocations: 1.601 MB / 0.9157 GB, free: 13.61 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.00718/2.63, allocations: 2.47 MB / 0.9181 GB, free: 11.48 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0004215/2.63, allocations: 133.6 kB / 0.9183 GB, free: 11.39 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/2.63, allocations: 0 / 0.9183 GB, free: 11.39 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001474/2.63, allocations: 47.02 kB / 0.9183 GB, free: 11.36 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003901/2.631, allocations: 82.75 kB / 0.9184 GB, free: 11.3 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007428/2.631, allocations: 446.9 kB / 0.9188 GB, free: 10.86 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002787/2.632, allocations: 0.7589 MB / 0.9196 GB, free: 10.08 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0001449/2.632, allocations: 44.11 kB / 0.9196 GB, free: 10.04 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.354e-05/2.632, allocations: 27.44 kB / 0.9196 GB, free: 10.01 MB / 0.7637 GB Notification: Performance of SimCode: time 2.31e-07/2.632, allocations: 0 / 0.9196 GB, free: 10.01 MB / 0.7637 GB Notification: Performance of Templates: time 0.06072/2.693, allocations: 48.68 MB / 0.9672 GB, free: 9.387 MB / 0.8106 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 -s gbode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe 2>&1)