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.819/0.819, allocations: 150.9 MB / 166.5 MB, free: 14.36 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003309/0.0003308, allocations: 16.23 kB / 237.1 MB, free: 1.828 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0575/0.05784, allocations: 31.35 MB / 268.4 MB, free: 7.105 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.Book.SimpleExamples.PressureLoss.TestDiaphragm): time 1.622/1.68, allocations: 294.7 MB / 0.5499 GB, free: 13.05 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4651/2.145, allocations: 190.1 MB / 0.7356 GB, free: 1.766 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002716/2.146, allocations: 8.844 kB / 0.7356 GB, free: 1.766 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.0001576/2.146, allocations: 40.12 kB / 0.7356 GB, free: 1.766 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0003358/2.146, allocations: 113.7 kB / 0.7357 GB, free: 1.766 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.03196/2.178, allocations: 12.34 MB / 0.7478 GB, free: 1.52 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0005305/2.179, allocations: 403.8 kB / 0.7481 GB, free: 1.52 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002918/2.179, allocations: 198.6 kB / 0.7483 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002834/2.179, allocations: 162.8 kB / 0.7485 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002409/2.179, allocations: 178.5 kB / 0.7487 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.362e-05/2.179, allocations: 32.59 kB / 0.7487 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03493/2.214, allocations: 21.02 MB / 0.7692 GB, free: 404 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001169/2.215, allocations: 77.98 kB / 0.7693 GB, free: 392 kB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000233/2.215, allocations: 184.2 kB / 0.7695 GB, free: 380 kB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0239/2.239, allocations: 10.43 MB / 0.7796 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/2.239, allocations: 2.094 kB / 0.7797 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.664e-06/2.239, allocations: 0 / 0.7797 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.302e-05/2.239, allocations: 1 kB / 0.7797 GB, free: 12.84 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.004756/2.244, allocations: 1.869 MB / 0.7815 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/2.244, allocations: 12.52 kB / 0.7815 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000104/2.244, allocations: 40.62 kB / 0.7815 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003859/2.244, allocations: 308.6 kB / 0.7818 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.456e-05/2.244, allocations: 28.22 kB / 0.7818 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.85e-05/2.244, allocations: 35.81 kB / 0.7819 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005441/2.245, allocations: 379.6 kB / 0.7822 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/2.245, allocations: 2.578 kB / 0.7822 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.019e-05/2.245, allocations: 16.8 kB / 0.7823 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/2.245, allocations: 8.875 kB / 0.7823 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003884/2.245, allocations: 245.7 kB / 0.7825 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00822/2.253, allocations: 6.155 MB / 0.7885 GB, free: 5.984 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001875/2.254, allocations: 85.31 kB / 0.7886 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.578e-05/2.254, allocations: 32.48 kB / 0.7886 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3311/2.585, allocations: 155.6 MB / 0.9406 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.212e-05/2.585, allocations: 34.56 kB / 0.9407 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.934e-06/2.585, allocations: 0 / 0.9407 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.000812/2.586, allocations: 254.4 kB / 0.9409 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.778e-05/2.586, allocations: 77.11 kB / 0.941 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003479/2.586, allocations: 282.9 kB / 0.9412 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.778e-05/2.586, allocations: 34.91 kB / 0.9413 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000135/2.586, allocations: 236.8 kB / 0.9415 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.428e-05/2.586, allocations: 27.64 kB / 0.9415 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.854e-05/2.586, allocations: 61.84 kB / 0.9416 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.933e-05/2.587, allocations: 334.8 kB / 0.9419 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001116/2.587, allocations: 48.45 kB / 0.9419 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001682/2.587, allocations: 159.4 kB / 0.9421 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002512/2.587, allocations: 202.3 kB / 0.9423 GB, free: 12 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/2.587, allocations: 3.938 kB / 0.9423 GB, free: 12 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005329/2.588, allocations: 290.5 kB / 0.9426 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/2.588, allocations: 4 kB / 0.9426 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/2.588, allocations: 4 kB / 0.9426 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000954/2.589, allocations: 111.3 kB / 0.9427 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000176/2.589, allocations: 50.25 kB / 0.9427 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000527/2.589, allocations: 0.5621 MB / 0.9433 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002715/2.59, allocations: 39.66 kB / 0.9433 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.73e-05/2.59, allocations: 16 kB / 0.9433 GB, free: 10.94 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.0001998/2.59, allocations: 145 kB / 0.9435 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.058e-05/2.59, allocations: 23.72 kB / 0.9435 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006236/2.591, allocations: 177.1 kB / 0.9437 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/2.591, allocations: 0 / 0.9437 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/2.591, allocations: 3.984 kB / 0.9437 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/2.591, allocations: 0 / 0.9437 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004049/2.591, allocations: 312 kB / 0.944 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/2.591, allocations: 4 kB / 0.944 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.965e-05/2.591, allocations: 4 kB / 0.944 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005648/2.592, allocations: 76.58 kB / 0.944 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/2.592, allocations: 5.5 kB / 0.9441 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004436/2.592, allocations: 0.5671 MB / 0.9446 GB, free: 9.555 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/2.592, allocations: 1.203 kB / 0.9446 GB, free: 9.555 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005/2.593, allocations: 170.3 kB / 0.9448 GB, free: 9.371 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/2.593, allocations: 100.8 kB / 0.9449 GB, free: 9.254 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.773e-05/2.593, allocations: 8 kB / 0.9449 GB, free: 9.246 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.587e-05/2.593, allocations: 5.75 kB / 0.9449 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.549e-05/2.593, allocations: 7.984 kB / 0.9449 GB, free: 9.234 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.7e-06/2.593, allocations: 0 / 0.9449 GB, free: 9.234 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002359/2.593, allocations: 213.9 kB / 0.9451 GB, free: 9.023 MB / 0.7794 GB Notification: Performance of sort global known variables: time 8.82e-07/2.593, allocations: 0 / 0.9451 GB, free: 9.023 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.004463/2.598, allocations: 1.601 MB / 0.9467 GB, free: 7.422 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.008566/2.606, allocations: 2.475 MB / 0.9491 GB, free: 5.246 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006021/2.607, allocations: 134.7 kB / 0.9492 GB, free: 5.129 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/2.607, allocations: 0 / 0.9492 GB, free: 5.129 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001605/2.607, allocations: 38.12 kB / 0.9492 GB, free: 5.094 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000491/2.608, allocations: 79.84 kB / 0.9493 GB, free: 5.023 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009385/2.609, allocations: 461.7 kB / 0.9498 GB, free: 4.555 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003341/2.609, allocations: 0.7636 MB / 0.9505 GB, free: 3.766 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001774/2.609, allocations: 52.22 kB / 0.9505 GB, free: 3.715 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.953e-05/2.609, allocations: 24.64 kB / 0.9506 GB, free: 3.695 MB / 0.7794 GB Notification: Performance of SimCode: time 5.31e-07/2.609, allocations: 0 / 0.9506 GB, free: 3.695 MB / 0.7794 GB Notification: Performance of Templates: time 0.06547/2.675, allocations: 48.7 MB / 0.9981 GB, free: 3.043 MB / 0.8262 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)