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.7437/0.7437, allocations: 150.9 MB / 167.1 MB, free: 14.54 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002445/0.0002445, allocations: 15.8 kB / 237.7 MB, free: 1.789 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05324/0.05349, allocations: 31.35 MB / 269.1 MB, free: 7.066 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.TestSteamEngine): time 1.449/1.503, allocations: 295 MB / 0.5508 GB, free: 12.3 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.444/1.947, allocations: 196.2 MB / 0.7424 GB, free: 15.11 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002804/1.947, allocations: 10 kB / 0.7425 GB, free: 15.11 MB / 0.6075 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.0004509/1.948, allocations: 190 kB / 0.7426 GB, free: 15.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002742/1.948, allocations: 166 kB / 0.7428 GB, free: 15.11 MB / 0.6075 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.02998/1.978, allocations: 14.33 MB / 0.7568 GB, free: 14.59 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005967/1.979, allocations: 0.5105 MB / 0.7573 GB, free: 14.47 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002294/1.979, allocations: 218.5 kB / 0.7575 GB, free: 14.43 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001991/1.979, allocations: 224.4 kB / 0.7577 GB, free: 14.41 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001767/1.979, allocations: 198.8 kB / 0.7579 GB, free: 14.41 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.634e-05/1.979, allocations: 34.47 kB / 0.7579 GB, free: 14.41 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03753/2.017, allocations: 25.62 MB / 0.783 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.000134/2.017, allocations: 86.73 kB / 0.783 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002542/2.017, allocations: 223.7 kB / 0.7833 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.02474/2.042, allocations: 12.26 MB / 0.7952 GB, free: 2.781 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/2.042, allocations: 0 / 0.7952 GB, free: 2.781 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.432e-06/2.042, allocations: 0 / 0.7952 GB, free: 2.781 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.888e-05/2.042, allocations: 0 / 0.7952 GB, free: 2.781 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: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.005511/2.048, allocations: 2.104 MB / 0.7973 GB, free: 1.449 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/2.048, allocations: 10.47 kB / 0.7973 GB, free: 1.449 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.028e-05/2.048, allocations: 49.22 kB / 0.7973 GB, free: 1.426 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003672/2.048, allocations: 314.1 kB / 0.7976 GB, free: 1.148 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.107e-05/2.048, allocations: 31.34 kB / 0.7977 GB, free: 1.145 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.15e-05/2.048, allocations: 36.09 kB / 0.7977 GB, free: 1.145 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005633/2.049, allocations: 429 kB / 0.7981 GB, free: 0.9883 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/2.049, allocations: 0 / 0.7981 GB, free: 0.9883 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.841e-05/2.049, allocations: 14.55 kB / 0.7981 GB, free: 0.9883 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.662e-05/2.049, allocations: 13.19 kB / 0.7981 GB, free: 0.9883 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004002/2.049, allocations: 280.9 kB / 0.7984 GB, free: 0.9453 MB / 0.6075 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.07452/2.124, allocations: 33.1 MB / 0.8307 GB, free: 13.53 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002059/2.124, allocations: 114.4 kB / 0.8308 GB, free: 13.41 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000109/2.124, allocations: 88.84 kB / 0.8309 GB, free: 13.32 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1407/2.265, allocations: 80.87 MB / 0.9099 GB, free: 1.699 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/2.265, allocations: 31.77 kB / 0.9099 GB, free: 1.66 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=34): time 2.205e-06/2.265, allocations: 0 / 0.9099 GB, free: 1.66 MB / 0.7325 GB Notification: Performance of matching and sorting (n=34): time 0.0008969/2.266, allocations: 418.9 kB / 0.9103 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/2.266, allocations: 63.41 kB / 0.9104 GB, free: 1.152 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003418/2.266, allocations: 299.2 kB / 0.9107 GB, free: 0.8516 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/2.266, allocations: 25.7 kB / 0.9107 GB, free: 0.8203 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/2.266, allocations: 234.9 kB / 0.9109 GB, free: 0.5898 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.788e-05/2.266, allocations: 112.6 kB / 0.911 GB, free: 492 kB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.409e-05/2.267, allocations: 70.69 kB / 0.9111 GB, free: 416 kB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001101/2.267, allocations: 342.8 kB / 0.9114 GB, free: 64 kB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001607/2.267, allocations: 76.45 kB / 0.9115 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002079/2.267, allocations: 196.2 kB / 0.9117 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000347/2.267, allocations: 293.3 kB / 0.912 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/2.267, allocations: 4 kB / 0.912 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006103/2.268, allocations: 366.7 kB / 0.9123 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/2.268, allocations: 5.562 kB / 0.9123 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/2.268, allocations: 4.469 kB / 0.9123 GB, free: 15.03 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002759/2.268, allocations: 118 kB / 0.9124 GB, free: 14.91 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001493/2.269, allocations: 39.92 kB / 0.9125 GB, free: 14.88 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004518/2.269, allocations: 0.6052 MB / 0.9131 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001982/2.269, allocations: 44.64 kB / 0.9131 GB, free: 14.2 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.592e-05/2.269, allocations: 21.48 kB / 0.9131 GB, free: 14.18 MB / 0.7481 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.0001608/2.269, allocations: 161.8 kB / 0.9133 GB, free: 14.02 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.428e-05/2.269, allocations: 31.56 kB / 0.9133 GB, free: 13.98 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007009/2.27, allocations: 0.5694 MB / 0.9139 GB, free: 13.4 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005293/2.271, allocations: 401.5 kB / 0.9142 GB, free: 13 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/2.271, allocations: 5.094 kB / 0.9142 GB, free: 13 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/2.271, allocations: 0 / 0.9142 GB, free: 13 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001434/2.272, allocations: 1.169 MB / 0.9154 GB, free: 11.77 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/2.272, allocations: 0.7188 kB / 0.9154 GB, free: 11.77 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001367/2.272, allocations: 55.91 kB / 0.9154 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001712/2.273, allocations: 87.59 kB / 0.9155 GB, free: 11.63 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/2.273, allocations: 8 kB / 0.9155 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003974/2.273, allocations: 0.6238 MB / 0.9161 GB, free: 10.97 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/2.273, allocations: 2.016 kB / 0.9161 GB, free: 10.97 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005955/2.274, allocations: 0.5367 MB / 0.9167 GB, free: 10.41 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001352/2.274, allocations: 148.2 kB / 0.9168 GB, free: 10.25 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.897e-05/2.274, allocations: 12 kB / 0.9168 GB, free: 10.24 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001379/2.274, allocations: 4 kB / 0.9168 GB, free: 10.23 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.803e-05/2.274, allocations: 27.91 kB / 0.9169 GB, free: 10.21 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/2.274, allocations: 8 kB / 0.9169 GB, free: 10.2 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002208/2.274, allocations: 219.1 kB / 0.9171 GB, free: 9.98 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.3e-07/2.274, allocations: 0 / 0.9171 GB, free: 9.98 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.005379/2.28, allocations: 2.037 MB / 0.9191 GB, free: 7.941 MB / 0.7481 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.009728/2.289, allocations: 2.958 MB / 0.9219 GB, free: 5.348 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0007647/2.29, allocations: 443.6 kB / 0.9224 GB, free: 4.895 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/2.29, allocations: 1.203 kB / 0.9224 GB, free: 4.895 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002797/2.29, allocations: 188.4 kB / 0.9226 GB, free: 4.711 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00107/2.291, allocations: 212.2 kB / 0.9228 GB, free: 4.527 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001462/2.293, allocations: 0.8862 MB / 0.9236 GB, free: 3.605 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003825/2.293, allocations: 0.8479 MB / 0.9244 GB, free: 2.727 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.147e-05/2.293, allocations: 36.53 kB / 0.9245 GB, free: 2.691 MB / 0.7481 GB Notification: Performance of SimCode: time 2.71e-07/2.293, allocations: 4 kB / 0.9245 GB, free: 2.688 MB / 0.7481 GB Notification: Performance of Templates: time 0.05325/2.347, allocations: 41.3 MB / 0.9648 GB, free: 9.371 MB / 0.795 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)