Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.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.SimpleExamples.TestRefP1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8601/0.8601, allocations: 150.9 MB / 167.2 MB, free: 14.26 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003527/0.0003527, allocations: 19.72 kB / 237.8 MB, free: 1.84 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05424/0.0546, allocations: 31.35 MB / 269.1 MB, free: 7.031 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.SimpleExamples.TestRefP1): time 1.702/1.757, allocations: 296.2 MB / 0.552 GB, free: 11.83 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5614/2.318, allocations: 193.9 MB / 0.7414 GB, free: 0.9375 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005605/2.319, allocations: 9.672 kB / 0.7414 GB, free: 0.9375 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/RefP.mo:10:3-11: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/BoundaryConditions/RefP.mo:12:3-13:65:writable] Warning: Connector C2 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/Machines/StaticCentrifugalPump.mo:63:3-64: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/Machines/StaticCentrifugalPump.mo:65:3-66:65:writable] Warning: Connector C2 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/LumpedStraightPipe.mo:54:3-55: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/LumpedStraightPipe.mo:56:3-57:65:writable] Warning: Connector C2 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/Source.mo:53:3-54:52: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/Sink.mo:39:3-40: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/BoundaryConditions/RefQ.mo:10:3-11: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/BoundaryConditions/RefQ.mo:12:3-13: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.000291/2.319, allocations: 93.05 kB / 0.7415 GB, free: 0.9375 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0006074/2.32, allocations: 227.7 kB / 0.7417 GB, free: 0.9336 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.0396/2.359, allocations: 13.37 MB / 0.7548 GB, free: 0.5625 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001396/2.361, allocations: 0.8301 MB / 0.7556 GB, free: 0.5586 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008679/2.362, allocations: 0.4971 MB / 0.7561 GB, free: 472 kB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008415/2.362, allocations: 350.7 kB / 0.7564 GB, free: 472 kB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000706/2.363, allocations: 389.9 kB / 0.7568 GB, free: 472 kB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001142/2.363, allocations: 84.86 kB / 0.7569 GB, free: 472 kB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04332/2.407, allocations: 18.92 MB / 0.7754 GB, free: 14.44 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0003577/2.407, allocations: 182.9 kB / 0.7755 GB, free: 14.41 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0007303/2.408, allocations: 421.7 kB / 0.7759 GB, free: 14.38 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.03404/2.442, allocations: 10.39 MB / 0.7861 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 1.127e-05/2.442, allocations: 3.984 kB / 0.7861 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.854e-06/2.442, allocations: 0 / 0.7861 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.505e-05/2.442, allocations: 0 / 0.7861 GB, free: 10.65 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.007529/2.449, allocations: 2.219 MB / 0.7883 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.988e-05/2.45, allocations: 7.469 kB / 0.7883 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002503/2.45, allocations: 90.81 kB / 0.7884 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007995/2.451, allocations: 444 kB / 0.7888 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.872e-05/2.451, allocations: 58.5 kB / 0.7888 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/2.451, allocations: 74.19 kB / 0.7889 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001377/2.452, allocations: 0.7404 MB / 0.7896 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.046e-05/2.452, allocations: 0 / 0.7896 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.49e-05/2.452, allocations: 32.69 kB / 0.7897 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.655e-05/2.452, allocations: 28.38 kB / 0.7897 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001041/2.453, allocations: 0.5495 MB / 0.7902 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08623/2.54, allocations: 33.35 MB / 0.8228 GB, free: 8.668 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007023/2.54, allocations: 294.3 kB / 0.8231 GB, free: 8.469 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002117/2.541, allocations: 105.8 kB / 0.8232 GB, free: 8.398 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7863/3.327, allocations: 251.8 MB / 1.069 GB, free: 430.9 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.843e-05/3.327, allocations: 39.31 kB / 1.069 GB, free: 430.8 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=27): time 3.927e-06/3.327, allocations: 0 / 1.069 GB, free: 430.8 MB / 0.8419 GB Notification: Performance of matching and sorting (n=27): time 0.005541/3.332, allocations: 1.107 MB / 1.07 GB, free: 429.8 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.537e-05/3.333, allocations: 59.41 kB / 1.07 GB, free: 429.8 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007063/3.333, allocations: 477.5 kB / 1.071 GB, free: 429.4 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.264e-05/3.333, allocations: 29.14 kB / 1.071 GB, free: 429.4 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000224/3.334, allocations: 365.1 kB / 1.071 GB, free: 429.1 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.259e-05/3.334, allocations: 101.3 kB / 1.071 GB, free: 429.1 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001456/3.334, allocations: 93.02 kB / 1.071 GB, free: 429 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 7.872e-05/3.334, allocations: 354.5 kB / 1.072 GB, free: 428.7 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002437/3.334, allocations: 104.1 kB / 1.072 GB, free: 428.6 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002861/3.334, allocations: 216.1 kB / 1.072 GB, free: 428.4 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005159/3.335, allocations: 337.6 kB / 1.072 GB, free: 428.1 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.935e-06/3.335, allocations: 7.984 kB / 1.072 GB, free: 428.1 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.002296/3.337, allocations: 0.653 MB / 1.073 GB, free: 427.6 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/3.337, allocations: 8 kB / 1.073 GB, free: 427.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.631e-05/3.337, allocations: 5.375 kB / 1.073 GB, free: 427.6 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001029/3.338, allocations: 204.8 kB / 1.073 GB, free: 427.4 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002243/3.339, allocations: 66.03 kB / 1.073 GB, free: 427.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009617/3.34, allocations: 1.237 MB / 1.074 GB, free: 426.1 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000433/3.34, allocations: 62.17 kB / 1.074 GB, free: 426.1 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.577e-05/3.34, allocations: 20.52 kB / 1.074 GB, free: 426.1 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 7 (source.C.ftype,pump.fluid,lumpedStraightPipe.fluid,sink.fluid,source.fluid1,refQ.C1.diff_on_2,lumpedStraightPipe.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,4), (2,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002854/3.34, allocations: 183.2 kB / 1.075 GB, free: 425.9 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/3.341, allocations: 55.47 kB / 1.075 GB, free: 425.9 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002311/3.343, allocations: 0.5769 MB / 1.075 GB, free: 425.4 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/3.343, allocations: 1.922 kB / 1.075 GB, free: 425.4 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/3.343, allocations: 6.625 kB / 1.075 GB, free: 425.4 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002496/3.343, allocations: 156.2 kB / 1.075 GB, free: 425.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.572e-05/3.343, allocations: 4.719 kB / 1.075 GB, free: 425.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002569/3.343, allocations: 7.938 kB / 1.075 GB, free: 425.2 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.16e-05/3.344, allocations: 31.94 kB / 1.075 GB, free: 425.2 MB / 0.8419 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001323/3.345, allocations: 478 kB / 1.076 GB, free: 424.8 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007773/3.346, allocations: 0.5434 MB / 1.076 GB, free: 424.3 MB / 0.8419 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001795/3.346, allocations: 81.45 kB / 1.076 GB, free: 424.3 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003702/3.346, allocations: 332.7 kB / 1.077 GB, free: 424 MB / 0.8419 GB Notification: Performance of Backend: time 9.11e-07/3.346, allocations: 0 / 1.077 GB, free: 424 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.01787/3.364, allocations: 3.85 MB / 1.081 GB, free: 421.1 MB / 0.8419 GB Notification: Performance of SimCode: time 0.002441/3.367, allocations: 1.558 MB / 1.082 GB, free: 419.6 MB / 0.8419 GB Notification: Performance of Templates: time 0.09009/3.457, allocations: 75.4 MB / 1.156 GB, free: 344.9 MB / 0.8419 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.pipe 2>&1)