Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine1.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.Examples.SimpleExamples.TestStodolaTurbine1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine1") translateModel(ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 1.039/1.039, allocations: 150.8 MB / 166.6 MB, free: 11.15 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003633/0.0003635, allocations: 15.97 kB / 204.7 MB, free: 6.152 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1954/0.1958, allocations: 31.33 MB / 236 MB, free: 3.879 MB / 186.7 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.Examples.SimpleExamples.TestStodolaTurbine1): time 1.564/1.76, allocations: 293.8 MB / 0.5174 GB, free: 8.164 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.05468/1.815, allocations: 48.98 MB / 0.5652 GB, free: 7.289 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004479/1.815, allocations: 8 kB / 0.5652 GB, free: 7.281 MB / 458.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/StodolaTurbine.mo:59:3-61:16:writable] Warning: Connector Ce is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/StodolaTurbine.mo:62:3-63:52:writable] Warning: Connector Cs is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/StodolaTurbine.mo:67:3-71:23:writable] Warning: Connector M is not balanced: The number of potential variables (2) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/DynamicCentrifugalPump.mo:71:3-75:23:writable] Warning: Connector M is not balanced: The number of potential variables (2) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/DynamicCentrifugalPump.mo:76:3-77:48:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/DynamicCentrifugalPump.mo:78:3-79:45:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/ElectroMechanics/Machines/Shaft.mo:13:3-15:47:writable] Warning: Connector C2 is not balanced: The number of potential variables (2) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/ElectroMechanics/Machines/Shaft.mo:16:3-18:49:writable] Warning: Connector C1 is not balanced: The number of potential variables (2) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0005654/1.816, allocations: 173.5 kB / 0.5654 GB, free: 7.113 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004513/1.816, allocations: 230.2 kB / 0.5656 GB, free: 6.887 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02687/1.843, allocations: 9.676 MB / 0.5751 GB, free: 13.21 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.001071/1.844, allocations: 0.9612 MB / 0.576 GB, free: 12.25 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003461/1.845, allocations: 297.6 kB / 0.5763 GB, free: 11.95 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003906/1.845, allocations: 350.4 kB / 0.5766 GB, free: 11.61 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003216/1.845, allocations: 334.3 kB / 0.5769 GB, free: 11.28 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 5.866e-05/1.845, allocations: 36 kB / 0.577 GB, free: 11.24 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03577/1.881, allocations: 23.82 MB / 0.6002 GB, free: 3.395 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001616/1.881, allocations: 123.3 kB / 0.6003 GB, free: 3.273 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004361/1.882, allocations: 366 kB / 0.6007 GB, free: 2.914 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02568/1.907, allocations: 11.57 MB / 0.612 GB, free: 7.316 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/1.907, allocations: 4 kB / 0.612 GB, free: 7.312 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.673e-06/1.907, allocations: 0 / 0.612 GB, free: 7.312 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.129e-05/1.907, allocations: 0 / 0.612 GB, free: 7.312 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.005571/1.913, allocations: 2.265 MB / 0.6142 GB, free: 4.996 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/1.913, allocations: 12.03 kB / 0.6142 GB, free: 4.984 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001186/1.913, allocations: 82.95 kB / 0.6143 GB, free: 4.902 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003729/1.914, allocations: 361.5 kB / 0.6146 GB, free: 4.512 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/1.914, allocations: 104.6 kB / 0.6147 GB, free: 4.395 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.212e-05/1.914, allocations: 48 kB / 0.6148 GB, free: 4.348 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/1.915, allocations: 0.7776 MB / 0.6155 GB, free: 3.52 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.017e-05/1.915, allocations: 0 / 0.6155 GB, free: 3.52 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.45e-05/1.915, allocations: 27.94 kB / 0.6156 GB, free: 3.492 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.796e-05/1.915, allocations: 31.97 kB / 0.6156 GB, free: 3.461 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001014/1.916, allocations: 0.5553 MB / 0.6161 GB, free: 2.91 MB / 0.4948 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.03911/1.955, allocations: 19.67 MB / 0.6354 GB, free: 13.28 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001103/1.956, allocations: 0.5158 MB / 0.6359 GB, free: 12.76 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005131/1.957, allocations: 330.7 kB / 0.6362 GB, free: 12.43 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3482/2.305, allocations: 109.2 MB / 0.7428 GB, free: 176.9 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.622e-05/2.305, allocations: 42.06 kB / 0.7428 GB, free: 176.8 MB / 0.573 GB Notification: Performance of pre-optimization done (n=116): time 3.687e-06/2.305, allocations: 1.125 kB / 0.7428 GB, free: 176.8 MB / 0.573 GB Notification: Performance of matching and sorting (n=116): time 0.00292/2.308, allocations: 1.573 MB / 0.7444 GB, free: 176.4 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.188e-05/2.308, allocations: 58.94 kB / 0.7444 GB, free: 176.3 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003549/2.309, allocations: 422 kB / 0.7448 GB, free: 176.2 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 2.48e-05/2.309, allocations: 28.52 kB / 0.7448 GB, free: 176.2 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/2.309, allocations: 246.8 kB / 0.7451 GB, free: 176.1 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/2.309, allocations: 379.5 kB / 0.7454 GB, free: 175.8 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001643/2.309, allocations: 143.6 kB / 0.7456 GB, free: 175.8 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 7.633e-05/2.309, allocations: 375.8 kB / 0.7459 GB, free: 175.5 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004375/2.31, allocations: 265 kB / 0.7462 GB, free: 175.5 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004817/2.31, allocations: 390 kB / 0.7466 GB, free: 175.4 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009698/2.311, allocations: 0.6907 MB / 0.7472 GB, free: 175.3 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/2.311, allocations: 0 / 0.7472 GB, free: 175.3 MB / 0.573 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.003219/2.314, allocations: 1.256 MB / 0.7485 GB, free: 175 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/2.314, allocations: 9.031 kB / 0.7485 GB, free: 175 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/2.314, allocations: 3.969 kB / 0.7485 GB, free: 175 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001539/2.316, allocations: 0.5792 MB / 0.749 GB, free: 174.8 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001911/2.316, allocations: 48.36 kB / 0.7491 GB, free: 174.8 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001601/2.318, allocations: 2.155 MB / 0.7512 GB, free: 173.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003959/2.318, allocations: 105.3 kB / 0.7513 GB, free: 173.1 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.084e-05/2.318, allocations: 23.64 kB / 0.7513 GB, free: 173.1 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (sourceP1.C.b,puitsP1.C.a,DynamicCentrifugalPump1.C2.b,DynamicCentrifugalPump1.C1.a,sourceP.C.b,puitsP.C.a,stodolaTurbine.Cs.b,stodolaTurbine.Ce.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(6,15), (1,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002146/2.318, allocations: 184.2 kB / 0.7515 GB, free: 173 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.663e-05/2.318, allocations: 64.12 kB / 0.7515 GB, free: 172.9 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00207/2.321, allocations: 1.699 MB / 0.7532 GB, free: 172.4 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001487/2.322, allocations: 0.9702 MB / 0.7542 GB, free: 172.2 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/2.322, allocations: 3.188 kB / 0.7542 GB, free: 172.2 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.854e-06/2.322, allocations: 4.547 kB / 0.7542 GB, free: 172.2 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003281/2.325, allocations: 2.694 MB / 0.7568 GB, free: 171 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/2.325, allocations: 6.188 kB / 0.7568 GB, free: 171 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007368/2.326, allocations: 193.4 kB / 0.757 GB, free: 171 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005793/2.327, allocations: 323.7 kB / 0.7573 GB, free: 170.9 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.3e-05/2.327, allocations: 30.56 kB / 0.7573 GB, free: 170.9 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002568/2.329, allocations: 5.302 MB / 0.7625 GB, free: 165.5 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/2.329, allocations: 11 kB / 0.7625 GB, free: 165.5 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04681/2.376, allocations: 22.39 MB / 0.7844 GB, free: 143.6 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002168/2.376, allocations: 215.8 kB / 0.7846 GB, free: 143.4 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.794e-05/2.376, allocations: 47.7 kB / 0.7846 GB, free: 143.3 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004168/2.377, allocations: 39.89 kB / 0.7847 GB, free: 143.3 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/2.377, allocations: 78.56 kB / 0.7847 GB, free: 143.2 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.682e-05/2.377, allocations: 36 kB / 0.7848 GB, free: 143.2 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0003807/2.377, allocations: 461.7 kB / 0.7852 GB, free: 142.7 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.1e-07/2.377, allocations: 0 / 0.7852 GB, free: 142.7 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.005723/2.383, allocations: 3.06 MB / 0.7882 GB, free: 139.9 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 3 (DynamicCentrifugalPump1.w,DynamicCentrifugalPump1.h,Shaft1.delta) * 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 (84): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009947/2.393, allocations: 3.621 MB / 0.7917 GB, free: 136.9 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001941/2.395, allocations: 1.153 MB / 0.7929 GB, free: 135.8 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 4.758e-06/2.395, allocations: 0 / 0.7929 GB, free: 135.8 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001199/2.396, allocations: 0.748 MB / 0.7936 GB, free: 135 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001938/2.398, allocations: 370.7 kB / 0.7939 GB, free: 134.7 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003115/2.401, allocations: 3.573 MB / 0.7974 GB, free: 131 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003474/2.402, allocations: 1.065 MB / 0.7985 GB, free: 129.9 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0003877/2.402, allocations: 95.42 kB / 0.7986 GB, free: 129.8 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001698/2.402, allocations: 67.42 kB / 0.7986 GB, free: 129.7 MB / 0.573 GB Notification: Performance of SimCode: time 4.51e-07/2.402, allocations: 0 / 0.7986 GB, free: 129.7 MB / 0.573 GB Notification: Performance of Templates: time 0.09395/2.496, allocations: 99.19 MB / 0.8955 GB, free: 31.34 MB / 0.573 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine1.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine1.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine1.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine1.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine1.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine1.pipe 2>&1)