Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine2.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.TestStodolaTurbine2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine2") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8161/0.8161, allocations: 150.9 MB / 166 MB, free: 14.56 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002907/0.0002907, allocations: 15.97 kB / 204 MB, free: 10.08 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1536/0.1539, allocations: 31.33 MB / 235.4 MB, free: 5.691 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.TestStodolaTurbine2): time 1.631/1.785, allocations: 293.4 MB / 0.5163 GB, free: 13.34 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.514/2.299, allocations: 197.8 MB / 0.7095 GB, free: 3.598 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003344/2.299, allocations: 8.156 kB / 0.7095 GB, free: 3.598 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Machines/StodolaTurbine.mo:65:3-66:54:writable] Warning: Connector Ce 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/StodolaTurbine.mo:67:3-68:52:writable] Warning: Connector Cs 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/StodolaTurbine.mo:72:3-76: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/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.0004909/2.3, allocations: 146.4 kB / 0.7097 GB, free: 3.594 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003177/2.3, allocations: 160.1 kB / 0.7098 GB, free: 3.594 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03033/2.33, allocations: 10.71 MB / 0.7203 GB, free: 3.41 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001102/2.331, allocations: 0.5947 MB / 0.7208 GB, free: 3.41 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003658/2.332, allocations: 224 kB / 0.7211 GB, free: 3.383 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003221/2.332, allocations: 236.3 kB / 0.7213 GB, free: 3.383 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003061/2.332, allocations: 226.6 kB / 0.7215 GB, free: 3.383 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.223e-05/2.332, allocations: 30.72 kB / 0.7215 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0435/2.376, allocations: 25.51 MB / 0.7464 GB, free: 424 kB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001866/2.376, allocations: 84.86 kB / 0.7465 GB, free: 408 kB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004279/2.377, allocations: 249.6 kB / 0.7468 GB, free: 392 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03431/2.411, allocations: 12.48 MB / 0.7589 GB, free: 11.92 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/2.411, allocations: 3.562 kB / 0.7589 GB, free: 11.92 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.764e-06/2.411, allocations: 0 / 0.7589 GB, free: 11.92 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 7.825e-06/2.411, allocations: 0 / 0.7589 GB, free: 11.92 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: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.00739/2.418, allocations: 2.185 MB / 0.7611 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/2.418, allocations: 15.11 kB / 0.7611 GB, free: 10.54 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000123/2.419, allocations: 53.53 kB / 0.7611 GB, free: 10.52 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004292/2.419, allocations: 325.2 kB / 0.7615 GB, free: 10.25 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001593/2.419, allocations: 91.39 kB / 0.7615 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.447e-05/2.419, allocations: 37.72 kB / 0.7616 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008034/2.42, allocations: 0.5159 MB / 0.7621 GB, free: 9.988 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/2.42, allocations: 0 / 0.7621 GB, free: 9.988 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.758e-05/2.42, allocations: 18.5 kB / 0.7621 GB, free: 9.988 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.109e-05/2.42, allocations: 23.67 kB / 0.7621 GB, free: 9.98 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007199/2.421, allocations: 360.4 kB / 0.7625 GB, free: 9.934 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.07238/2.493, allocations: 33.17 MB / 0.7949 GB, free: 10.23 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005199/2.494, allocations: 207.2 kB / 0.7951 GB, free: 10.1 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002843/2.494, allocations: 149.5 kB / 0.7952 GB, free: 10.02 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.136/2.63, allocations: 80.45 MB / 0.8738 GB, free: 332 kB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.803e-05/2.63, allocations: 30.56 kB / 0.8738 GB, free: 292 kB / 0.7012 GB Notification: Performance of pre-optimization done (n=48): time 2.224e-06/2.63, allocations: 0 / 0.8738 GB, free: 292 kB / 0.7012 GB Notification: Performance of matching and sorting (n=48): time 0.003142/2.633, allocations: 1.092 MB / 0.8749 GB, free: 15.31 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.397e-05/2.633, allocations: 58.41 kB / 0.8749 GB, free: 15.24 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000383/2.634, allocations: 314.7 kB / 0.8752 GB, free: 14.98 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.801e-05/2.634, allocations: 28.83 kB / 0.8752 GB, free: 14.95 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001598/2.634, allocations: 247.8 kB / 0.8755 GB, free: 14.75 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001214/2.634, allocations: 156.7 kB / 0.8756 GB, free: 14.62 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001252/2.634, allocations: 85.08 kB / 0.8757 GB, free: 14.55 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001202/2.634, allocations: 349.8 kB / 0.876 GB, free: 14.22 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002815/2.635, allocations: 128.4 kB / 0.8762 GB, free: 14.14 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003489/2.635, allocations: 267 kB / 0.8764 GB, free: 13.89 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006615/2.636, allocations: 435.1 kB / 0.8768 GB, free: 13.54 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/2.636, allocations: 4 kB / 0.8768 GB, free: 13.54 MB / 0.7169 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001781/2.638, allocations: 0.6728 MB / 0.8775 GB, free: 13.04 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/2.638, allocations: 4 kB / 0.8775 GB, free: 13.04 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/2.638, allocations: 4 kB / 0.8775 GB, free: 13.03 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007908/2.638, allocations: 378.5 kB / 0.8779 GB, free: 12.7 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001844/2.639, allocations: 49.56 kB / 0.8779 GB, free: 12.66 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001509/2.64, allocations: 1.905 MB / 0.8798 GB, free: 10.83 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003209/2.64, allocations: 58.53 kB / 0.8798 GB, free: 10.78 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.448e-05/2.64, allocations: 19.81 kB / 0.8798 GB, free: 10.76 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 6 (sourceP.fluid1,sourceP.C.ftype,stodolaTurbine.fluid,puitsP.fluid,stodolaTurbine.Cs.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 (27): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(1,2), (1,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002128/2.641, allocations: 163.3 kB / 0.88 GB, free: 10.62 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.197e-05/2.641, allocations: 39.22 kB / 0.88 GB, free: 10.59 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001487/2.642, allocations: 0.8634 MB / 0.8809 GB, free: 10.01 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001173/2.643, allocations: 0.659 MB / 0.8815 GB, free: 9.527 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/2.643, allocations: 1.203 kB / 0.8815 GB, free: 9.527 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/2.643, allocations: 7.984 kB / 0.8815 GB, free: 9.52 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002933/2.646, allocations: 1.571 MB / 0.8831 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/2.646, allocations: 0 / 0.8831 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001686/2.647, allocations: 50.83 kB / 0.8831 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007043/2.647, allocations: 400.8 kB / 0.8835 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.036e-05/2.647, allocations: 12 kB / 0.8835 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001456/2.649, allocations: 1.941 MB / 0.8854 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/2.649, allocations: 3 kB / 0.8854 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001798/2.651, allocations: 0.8447 MB / 0.8862 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001428/2.651, allocations: 128.4 kB / 0.8864 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.068e-05/2.651, allocations: 8 kB / 0.8864 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002364/2.651, allocations: 27.92 kB / 0.8864 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.694e-05/2.651, allocations: 21.05 kB / 0.8864 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-05/2.651, allocations: 12 kB / 0.8864 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002354/2.651, allocations: 223.1 kB / 0.8866 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.61e-07/2.651, allocations: 0 / 0.8866 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.006465/2.658, allocations: 2.034 MB / 0.8886 GB, free: 2.113 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (35): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(1,2), (1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01269/2.671, allocations: 3.049 MB / 0.8916 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001435/2.672, allocations: 0.5703 MB / 0.8922 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/2.672, allocations: 0 / 0.8922 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0006352/2.673, allocations: 288.9 kB / 0.8924 GB, free: 14.6 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001293/2.674, allocations: 228.4 kB / 0.8927 GB, free: 14.38 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002769/2.677, allocations: 1.323 MB / 0.8939 GB, free: 13.05 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000517/2.677, allocations: 0.8726 MB / 0.8948 GB, free: 12.15 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0003041/2.678, allocations: 55.19 kB / 0.8948 GB, free: 12.09 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.476e-05/2.678, allocations: 43.44 kB / 0.8949 GB, free: 12.05 MB / 0.7325 GB Notification: Performance of SimCode: time 1.002e-06/2.678, allocations: 0 / 0.8949 GB, free: 12.05 MB / 0.7325 GB Notification: Performance of Templates: time 0.1025/2.78, allocations: 71.54 MB / 0.9648 GB, free: 4.629 MB / 0.795 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine2.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine2.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine2.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine2.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine2.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine2.pipe 2>&1)