Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.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.TestSteamEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.763/0.763, allocations: 150.9 MB / 167 MB, free: 14.54 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003501/0.0003502, allocations: 15.98 kB / 205.2 MB, free: 9.742 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1272, allocations: 31.33 MB / 236.5 MB, free: 5.422 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.SimpleExamples.TestSteamEngine): time 1.488/1.615, allocations: 295.2 MB / 0.5193 GB, free: 12.91 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.474/2.089, allocations: 196.2 MB / 0.7109 GB, free: 1.773 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003117/2.09, allocations: 6.906 kB / 0.7109 GB, free: 1.773 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Machines/SteamEngine.mo:41:3-42:53: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/SteamEngine.mo:43:3-44:51: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/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/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). Notification: Performance of NFTyping.typeComponents: time 0.000528/2.09, allocations: 188.8 kB / 0.7111 GB, free: 1.773 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003022/2.091, allocations: 165.6 kB / 0.7112 GB, free: 1.77 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/WaterSteam/IF97_packages.mo:1445:9-1445:35:writable] Warning: h 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_Ps.mo:71:3-71: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_Ps.mo:71:3-71: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. Notification: Performance of NFTyping.typeClassSections: time 0.03068/2.121, allocations: 14.32 MB / 0.7252 GB, free: 1.516 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005349/2.122, allocations: 0.507 MB / 0.7257 GB, free: 1.516 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002268/2.122, allocations: 219.5 kB / 0.7259 GB, free: 1.484 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001973/2.122, allocations: 218.1 kB / 0.7261 GB, free: 1.484 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001917/2.123, allocations: 201.1 kB / 0.7263 GB, free: 1.484 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.929e-05/2.123, allocations: 35.19 kB / 0.7264 GB, free: 1.484 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0386/2.161, allocations: 25.31 MB / 0.7511 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001428/2.161, allocations: 83.3 kB / 0.7512 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003048/2.162, allocations: 219.3 kB / 0.7514 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02634/2.188, allocations: 12.29 MB / 0.7634 GB, free: 10.11 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/2.188, allocations: 1.094 kB / 0.7634 GB, free: 10.11 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.385e-06/2.188, allocations: 0 / 0.7634 GB, free: 10.11 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.141e-05/2.188, allocations: 0 / 0.7634 GB, free: 10.11 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: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.006234/2.194, allocations: 2.105 MB / 0.7654 GB, free: 8.777 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/2.194, allocations: 10.34 kB / 0.7654 GB, free: 8.777 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001276/2.195, allocations: 52.17 kB / 0.7655 GB, free: 8.75 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004476/2.195, allocations: 314.7 kB / 0.7658 GB, free: 8.484 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.849e-05/2.195, allocations: 26.62 kB / 0.7658 GB, free: 8.484 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.666e-05/2.195, allocations: 36.53 kB / 0.7658 GB, free: 8.484 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006413/2.196, allocations: 428.7 kB / 0.7662 GB, free: 8.328 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/2.196, allocations: 2.125 kB / 0.7662 GB, free: 8.328 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.896e-05/2.196, allocations: 13.25 kB / 0.7663 GB, free: 8.328 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.207e-05/2.196, allocations: 17.05 kB / 0.7663 GB, free: 8.324 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004339/2.196, allocations: 270 kB / 0.7665 GB, free: 8.297 MB / 0.5919 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07174/2.268, allocations: 32.87 MB / 0.7986 GB, free: 7.605 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001848/2.268, allocations: 116.1 kB / 0.7987 GB, free: 7.527 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001022/2.268, allocations: 79.39 kB / 0.7988 GB, free: 7.484 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1304/2.399, allocations: 80.43 MB / 0.8774 GB, free: 13.81 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.63e-05/2.399, allocations: 38.38 kB / 0.8774 GB, free: 13.77 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=34): time 2.715e-06/2.399, allocations: 4 kB / 0.8774 GB, free: 13.76 MB / 0.7169 GB Notification: Performance of matching and sorting (n=34): time 0.0009096/2.4, allocations: 418.5 kB / 0.8778 GB, free: 13.33 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.509e-05/2.4, allocations: 56.02 kB / 0.8779 GB, free: 13.26 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003172/2.4, allocations: 300.3 kB / 0.8781 GB, free: 12.96 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.499e-05/2.4, allocations: 25.7 kB / 0.8782 GB, free: 12.93 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/2.4, allocations: 239.7 kB / 0.8784 GB, free: 12.7 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.539e-05/2.4, allocations: 112.3 kB / 0.8785 GB, free: 12.59 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.955e-05/2.4, allocations: 69.59 kB / 0.8786 GB, free: 12.51 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001009/2.4, allocations: 342.7 kB / 0.8789 GB, free: 12.17 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001359/2.401, allocations: 80.41 kB / 0.879 GB, free: 12.09 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001947/2.401, allocations: 192.6 kB / 0.8792 GB, free: 11.86 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003303/2.401, allocations: 291.5 kB / 0.8794 GB, free: 11.54 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/2.401, allocations: 0 / 0.8794 GB, free: 11.54 MB / 0.7169 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005601/2.402, allocations: 374.5 kB / 0.8798 GB, free: 11.18 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/2.402, allocations: 9.719 kB / 0.8798 GB, free: 11.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/2.402, allocations: 4 kB / 0.8798 GB, free: 11.17 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002688/2.402, allocations: 113.2 kB / 0.8799 GB, free: 11.06 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001501/2.402, allocations: 47.41 kB / 0.88 GB, free: 11.02 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004266/2.403, allocations: 0.6108 MB / 0.8806 GB, free: 10.39 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002035/2.403, allocations: 44.2 kB / 0.8806 GB, free: 10.35 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.773e-05/2.403, allocations: 16 kB / 0.8806 GB, free: 10.33 MB / 0.7169 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 (sourceP.fluid1,sourceP.C.ftype,steamEngine1.fluid,puitsP.fluid,steamEngine1.C2.diff_on_1,sourceP.C.diff_on_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001481/2.403, allocations: 152.9 kB / 0.8808 GB, free: 10.18 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.355e-05/2.403, allocations: 35.53 kB / 0.8808 GB, free: 10.14 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006983/2.404, allocations: 0.564 MB / 0.8813 GB, free: 9.566 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004938/2.404, allocations: 412.8 kB / 0.8817 GB, free: 9.156 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/2.404, allocations: 0 / 0.8817 GB, free: 9.156 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/2.404, allocations: 3.984 kB / 0.8817 GB, free: 9.152 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001332/2.406, allocations: 1.179 MB / 0.8829 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/2.406, allocations: 0 / 0.8829 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001298/2.406, allocations: 51.11 kB / 0.8829 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001605/2.406, allocations: 88.98 kB / 0.883 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/2.406, allocations: 4 kB / 0.883 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003915/2.406, allocations: 0.6254 MB / 0.8836 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/2.406, allocations: 4.031 kB / 0.8836 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005758/2.407, allocations: 0.5387 MB / 0.8842 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001056/2.407, allocations: 136.5 kB / 0.8843 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.838e-05/2.407, allocations: 9.266 kB / 0.8843 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00013/2.407, allocations: 12 kB / 0.8843 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.845e-05/2.407, allocations: 23.09 kB / 0.8843 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/2.407, allocations: 12 kB / 0.8844 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002/2.408, allocations: 219.1 kB / 0.8846 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/2.408, allocations: 0 / 0.8846 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.00485/2.412, allocations: 2.034 MB / 0.8865 GB, free: 4.133 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 Backend phase and start with SimCode phase: time 0.007364/2.42, allocations: 2.97 MB / 0.8894 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000779/2.421, allocations: 448.8 kB / 0.8899 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/2.421, allocations: 1.547 kB / 0.8899 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002679/2.421, allocations: 199.4 kB / 0.8901 GB, free: 0.8867 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001013/2.422, allocations: 206.1 kB / 0.8903 GB, free: 0.6953 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001304/2.423, allocations: 0.9036 MB / 0.8911 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003708/2.424, allocations: 0.8479 MB / 0.892 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.797e-05/2.424, allocations: 39.44 kB / 0.892 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of SimCode: time 2.11e-07/2.424, allocations: 0 / 0.892 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of Templates: time 0.05096/2.475, allocations: 41.38 MB / 0.9324 GB, free: 5.441 MB / 0.7637 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.pipe 2>&1)