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.8744/0.8744, allocations: 150.9 MB / 167.2 MB, free: 14.26 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003611/0.0003611, allocations: 15.84 kB / 237.7 MB, free: 1.906 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0568/0.05717, allocations: 31.35 MB / 269.1 MB, free: 7.074 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.64/1.697, allocations: 294.7 MB / 0.5505 GB, free: 13.05 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4956/2.192, allocations: 190.1 MB / 0.7362 GB, free: 1.797 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002995/2.193, allocations: 4.844 kB / 0.7362 GB, free: 1.797 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.0001226/2.193, allocations: 40.83 kB / 0.7362 GB, free: 1.797 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002837/2.193, allocations: 117 kB / 0.7363 GB, free: 1.797 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.03226/2.225, allocations: 12.1 MB / 0.7481 GB, free: 1.551 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0006459/2.226, allocations: 396.8 kB / 0.7485 GB, free: 1.551 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002681/2.226, allocations: 203.5 kB / 0.7487 GB, free: 1.547 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002016/2.227, allocations: 164.6 kB / 0.7489 GB, free: 1.547 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001844/2.227, allocations: 175.1 kB / 0.749 GB, free: 1.547 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.222e-05/2.227, allocations: 33.81 kB / 0.7491 GB, free: 1.547 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03441/2.261, allocations: 21.01 MB / 0.7696 GB, free: 428 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000127/2.261, allocations: 75.88 kB / 0.7697 GB, free: 420 kB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002564/2.262, allocations: 189.2 kB / 0.7698 GB, free: 408 kB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02705/2.289, allocations: 10.42 MB / 0.78 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.125e-06/2.289, allocations: 0 / 0.78 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.634e-06/2.289, allocations: 0 / 0.78 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.376e-06/2.289, allocations: 0.9062 kB / 0.78 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.005241/2.294, allocations: 1.873 MB / 0.7818 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/2.294, allocations: 10.95 kB / 0.7818 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.696e-05/2.294, allocations: 42.16 kB / 0.7819 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003957/2.295, allocations: 307.4 kB / 0.7822 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.521e-05/2.295, allocations: 25.88 kB / 0.7822 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.234e-05/2.295, allocations: 37.06 kB / 0.7822 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005132/2.295, allocations: 381.2 kB / 0.7826 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.557e-05/2.295, allocations: 3.938 kB / 0.7826 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.975e-05/2.295, allocations: 17.62 kB / 0.7826 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/2.295, allocations: 10.78 kB / 0.7826 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003847/2.296, allocations: 245.7 kB / 0.7829 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008513/2.304, allocations: 6.162 MB / 0.7889 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002024/2.304, allocations: 86.48 kB / 0.789 GB, free: 5.949 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.412e-05/2.305, allocations: 28.3 kB / 0.789 GB, free: 5.938 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3171/2.622, allocations: 155.6 MB / 0.941 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.821e-05/2.622, allocations: 37.75 kB / 0.941 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 2.224e-06/2.622, allocations: 0 / 0.941 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0007847/2.623, allocations: 244.6 kB / 0.9413 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.74e-05/2.623, allocations: 81.09 kB / 0.9413 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003431/2.623, allocations: 295 kB / 0.9416 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/2.623, allocations: 25.7 kB / 0.9416 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000142/2.623, allocations: 229.5 kB / 0.9419 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.426e-05/2.623, allocations: 27.64 kB / 0.9419 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/2.623, allocations: 65.83 kB / 0.9419 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001197/2.623, allocations: 326.8 kB / 0.9423 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/2.624, allocations: 52.44 kB / 0.9423 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000184/2.624, allocations: 163.4 kB / 0.9425 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002683/2.624, allocations: 206.8 kB / 0.9427 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/2.624, allocations: 0.75 kB / 0.9427 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005373/2.625, allocations: 279.2 kB / 0.9429 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/2.625, allocations: 4 kB / 0.9429 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.679e-06/2.625, allocations: 4 kB / 0.9429 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009571/2.626, allocations: 117.8 kB / 0.9431 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001625/2.626, allocations: 42.27 kB / 0.9431 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004829/2.626, allocations: 0.5697 MB / 0.9436 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002275/2.626, allocations: 39.58 kB / 0.9437 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.86e-05/2.627, allocations: 12 kB / 0.9437 GB, free: 11.18 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.0001462/2.627, allocations: 148.3 kB / 0.9438 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.449e-05/2.627, allocations: 23.72 kB / 0.9439 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000594/2.627, allocations: 176.3 kB / 0.944 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/2.627, allocations: 0 / 0.944 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/2.627, allocations: 0 / 0.944 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/2.627, allocations: 112.8 kB / 0.9441 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.658e-05/2.628, allocations: 0 / 0.9441 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.655e-05/2.628, allocations: 3.984 kB / 0.9441 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.202e-05/2.628, allocations: 4 kB / 0.9441 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003342/2.628, allocations: 192.9 kB / 0.9443 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002936/2.628, allocations: 309.7 kB / 0.9446 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.331e-05/2.628, allocations: 21.72 kB / 0.9446 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001994/2.629, allocations: 205.9 kB / 0.9448 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of Backend: time 4.81e-07/2.629, allocations: 3.188 kB / 0.9448 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.01396/2.643, allocations: 3.836 MB / 0.9486 GB, free: 6.594 MB / 0.7794 GB Notification: Performance of SimCode: time 0.001266/2.644, allocations: 0.9932 MB / 0.9496 GB, free: 5.566 MB / 0.7794 GB Notification: Performance of Templates: time 0.2769/2.921, allocations: 75.55 MB / 1.023 GB, free: 462.3 MB / 0.8419 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)