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.8448/0.8448, allocations: 150.9 MB / 166.5 MB, free: 14.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000302/0.000302, allocations: 12.5 kB / 237.1 MB, free: 1.832 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05527/0.05558, allocations: 31.34 MB / 268.4 MB, free: 7.113 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.641/1.697, allocations: 294.8 MB / 0.55 GB, free: 13.05 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.48/2.177, allocations: 190.1 MB / 0.7356 GB, free: 1.812 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002852/2.177, allocations: 8.25 kB / 0.7356 GB, free: 1.812 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.0001343/2.177, allocations: 42.92 kB / 0.7356 GB, free: 1.812 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002938/2.178, allocations: 114.8 kB / 0.7357 GB, free: 1.812 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.02978/2.207, allocations: 12.11 MB / 0.7476 GB, free: 1.566 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0005409/2.208, allocations: 397.1 kB / 0.7479 GB, free: 1.566 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002403/2.208, allocations: 200.9 kB / 0.7481 GB, free: 1.562 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001899/2.208, allocations: 159.5 kB / 0.7483 GB, free: 1.562 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001872/2.209, allocations: 180.9 kB / 0.7485 GB, free: 1.562 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.082e-05/2.209, allocations: 34.25 kB / 0.7485 GB, free: 1.562 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03488/2.244, allocations: 21 MB / 0.769 GB, free: 436 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001655/2.244, allocations: 76.61 kB / 0.7691 GB, free: 424 kB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003002/2.244, allocations: 186.3 kB / 0.7693 GB, free: 412 kB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0269/2.271, allocations: 10.44 MB / 0.7795 GB, free: 12.82 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/2.271, allocations: 4.094 kB / 0.7795 GB, free: 12.82 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.533e-06/2.271, allocations: 0 / 0.7795 GB, free: 12.82 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.282e-05/2.271, allocations: 0.8438 kB / 0.7795 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.005038/2.276, allocations: 1.949 MB / 0.7814 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/2.276, allocations: 12.92 kB / 0.7814 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.639e-05/2.276, allocations: 42.02 kB / 0.7814 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003643/2.277, allocations: 308.7 kB / 0.7817 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.298e-05/2.277, allocations: 27.44 kB / 0.7817 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.914e-05/2.277, allocations: 40.56 kB / 0.7818 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005375/2.277, allocations: 379.9 kB / 0.7821 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/2.277, allocations: 2.141 kB / 0.7821 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.929e-05/2.277, allocations: 13.34 kB / 0.7821 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/2.277, allocations: 11.53 kB / 0.7822 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004301/2.278, allocations: 246.8 kB / 0.7824 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008629/2.286, allocations: 6.165 MB / 0.7884 GB, free: 5.867 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001888/2.287, allocations: 83.53 kB / 0.7885 GB, free: 5.832 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.914e-05/2.287, allocations: 27 kB / 0.7885 GB, free: 5.824 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3327/2.619, allocations: 155.7 MB / 0.9405 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.624e-05/2.619, allocations: 30.56 kB / 0.9406 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 2.164e-06/2.619, allocations: 4 kB / 0.9406 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0007796/2.62, allocations: 254.4 kB / 0.9408 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.039e-05/2.62, allocations: 77.11 kB / 0.9409 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003606/2.621, allocations: 286.9 kB / 0.9412 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/2.621, allocations: 26.8 kB / 0.9412 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001549/2.621, allocations: 247.2 kB / 0.9414 GB, free: 13 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.385e-05/2.621, allocations: 23.84 kB / 0.9414 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.492e-05/2.621, allocations: 61.89 kB / 0.9415 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001224/2.621, allocations: 334.8 kB / 0.9418 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001148/2.621, allocations: 48.44 kB / 0.9419 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001813/2.621, allocations: 160.7 kB / 0.942 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002953/2.622, allocations: 216.6 kB / 0.9422 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/2.622, allocations: 1.094 kB / 0.9422 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005635/2.622, allocations: 278.9 kB / 0.9425 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/2.622, allocations: 4 kB / 0.9425 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/2.622, allocations: 4 kB / 0.9425 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009461/2.623, allocations: 109 kB / 0.9426 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001715/2.623, allocations: 50.27 kB / 0.9427 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000453/2.624, allocations: 0.5676 MB / 0.9432 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002153/2.624, allocations: 35.72 kB / 0.9432 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.532e-05/2.624, allocations: 19.98 kB / 0.9433 GB, free: 11.02 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.0001502/2.624, allocations: 145.1 kB / 0.9434 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.315e-05/2.624, allocations: 25.06 kB / 0.9434 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006025/2.625, allocations: 177.3 kB / 0.9436 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/2.625, allocations: 0 / 0.9436 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/2.625, allocations: 0 / 0.9436 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/2.625, allocations: 6.5 kB / 0.9436 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003075/2.625, allocations: 301.5 kB / 0.9439 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/2.625, allocations: 0 / 0.9439 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.673e-05/2.625, allocations: 4 kB / 0.9439 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005315/2.626, allocations: 88.56 kB / 0.944 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/2.626, allocations: 4 kB / 0.944 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004157/2.626, allocations: 0.5644 MB / 0.9445 GB, free: 9.637 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/2.626, allocations: 5.156 kB / 0.9445 GB, free: 9.633 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004916/2.627, allocations: 167.8 kB / 0.9447 GB, free: 9.453 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 9.949e-05/2.627, allocations: 107.2 kB / 0.9448 GB, free: 9.332 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.022e-05/2.627, allocations: 8 kB / 0.9448 GB, free: 9.324 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.419e-05/2.627, allocations: 3.984 kB / 0.9448 GB, free: 9.32 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.565e-05/2.627, allocations: 8 kB / 0.9448 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.083e-06/2.627, allocations: 1.062 kB / 0.9448 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002249/2.627, allocations: 213.9 kB / 0.945 GB, free: 9.102 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/2.627, allocations: 1.203 kB / 0.945 GB, free: 9.102 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.004133/2.632, allocations: 1.628 MB / 0.9466 GB, free: 7.469 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.008461/2.64, allocations: 2.503 MB / 0.9491 GB, free: 5.273 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000516/2.641, allocations: 133.4 kB / 0.9492 GB, free: 5.152 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/2.641, allocations: 3.188 kB / 0.9492 GB, free: 5.152 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001574/2.641, allocations: 45.05 kB / 0.9492 GB, free: 5.109 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004335/2.641, allocations: 75.58 kB / 0.9493 GB, free: 5.043 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008529/2.642, allocations: 457.1 kB / 0.9497 GB, free: 4.574 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003475/2.642, allocations: 0.7596 MB / 0.9505 GB, free: 3.789 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001519/2.643, allocations: 40.89 kB / 0.9505 GB, free: 3.75 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.3e-05/2.643, allocations: 35.42 kB / 0.9505 GB, free: 3.719 MB / 0.7794 GB Notification: Performance of SimCode: time 3.8e-07/2.643, allocations: 0 / 0.9505 GB, free: 3.719 MB / 0.7794 GB Notification: Performance of Templates: time 0.06527/2.708, allocations: 48.7 MB / 0.9981 GB, free: 3.062 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)