Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.SimpleExamples.TestSteamEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine") translateModel(ThermoSysPro.Examples.SimpleExamples.TestSteamEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7569/0.7569, allocations: 150.9 MB / 167.2 MB, free: 14.54 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002995/0.0002995, allocations: 17.48 kB / 237.8 MB, free: 1.906 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04421/0.04452, allocations: 31.35 MB / 269.1 MB, free: 7.164 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.Examples.SimpleExamples.TestSteamEngine): time 1.468/1.513, allocations: 294.9 MB / 0.5508 GB, free: 12.88 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0306/1.543, allocations: 28.97 MB / 0.5791 GB, free: 15.8 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001435/1.544, allocations: 0 / 0.5791 GB, free: 15.8 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/SteamEngine.mo:35:3-37:17: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/SteamEngine.mo:38:3-39:44: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/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.0004394/1.544, allocations: 185.6 kB / 0.5793 GB, free: 15.62 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002268/1.544, allocations: 135 kB / 0.5794 GB, free: 15.49 MB / 478.1 MB [/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/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. Notification: Performance of NFTyping.typeClassSections: time 0.01884/1.563, allocations: 9.562 MB / 0.5887 GB, free: 5.918 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004435/1.564, allocations: 434 kB / 0.5892 GB, free: 5.492 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000175/1.564, allocations: 116.6 kB / 0.5893 GB, free: 5.383 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001927/1.564, allocations: 175.2 kB / 0.5894 GB, free: 5.211 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001697/1.564, allocations: 139.4 kB / 0.5896 GB, free: 5.074 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.732e-05/1.564, allocations: 20 kB / 0.5896 GB, free: 5.055 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02772/1.592, allocations: 20.51 MB / 0.6096 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.206e-05/1.592, allocations: 47.78 kB / 0.6097 GB, free: 480 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001622/1.592, allocations: 159.2 kB / 0.6098 GB, free: 320 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01178/1.604, allocations: 8.576 MB / 0.6182 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/1.604, allocations: 0 / 0.6182 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.523e-06/1.604, allocations: 4 kB / 0.6182 GB, free: 7.715 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.204e-06/1.604, allocations: 0 / 0.6182 GB, free: 7.715 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.003487/1.607, allocations: 1.408 MB / 0.6196 GB, free: 6.258 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.074e-05/1.607, allocations: 8.031 kB / 0.6196 GB, free: 6.25 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.384e-05/1.608, allocations: 40.47 kB / 0.6196 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002078/1.608, allocations: 233.2 kB / 0.6198 GB, free: 5.945 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/1.608, allocations: 20.56 kB / 0.6199 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.63e-05/1.608, allocations: 24 kB / 0.6199 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004251/1.608, allocations: 345.1 kB / 0.6202 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/1.608, allocations: 0 / 0.6202 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.975e-05/1.608, allocations: 12 kB / 0.6202 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.432e-05/1.608, allocations: 19.97 kB / 0.6202 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002563/1.609, allocations: 212.7 kB / 0.6204 GB, free: 5.301 MB / 0.4981 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.01872/1.627, allocations: 9.942 MB / 0.6301 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001957/1.628, allocations: 151 kB / 0.6303 GB, free: 10.19 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001297/1.628, allocations: 113.7 kB / 0.6304 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1117/1.739, allocations: 52 MB / 0.6812 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.024e-05/1.739, allocations: 38.5 kB / 0.6812 GB, free: 1.082 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=52): time 1.964e-06/1.739, allocations: 0 / 0.6812 GB, free: 1.082 MB / 0.5606 GB Notification: Performance of matching and sorting (n=52): time 0.001006/1.74, allocations: 0.5172 MB / 0.6817 GB, free: 0.5352 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.772e-05/1.74, allocations: 51.41 kB / 0.6818 GB, free: 484 kB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002189/1.741, allocations: 238 kB / 0.682 GB, free: 232 kB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.642e-05/1.741, allocations: 25.7 kB / 0.682 GB, free: 200 kB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.349e-05/1.741, allocations: 152.9 kB / 0.6822 GB, free: 40 kB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/1.741, allocations: 165.6 kB / 0.6823 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.13e-05/1.741, allocations: 57.64 kB / 0.6824 GB, free: 15.81 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001067/1.741, allocations: 342.8 kB / 0.6827 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/1.741, allocations: 84.53 kB / 0.6828 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001436/1.741, allocations: 149.3 kB / 0.6829 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002968/1.742, allocations: 262.7 kB / 0.6832 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/1.742, allocations: 7.938 kB / 0.6832 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0004574/1.742, allocations: 349.9 kB / 0.6835 GB, free: 14.58 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/1.742, allocations: 4 kB / 0.6835 GB, free: 14.58 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.385e-06/1.742, allocations: 7.984 kB / 0.6835 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002578/1.742, allocations: 108.8 kB / 0.6836 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.033e-05/1.743, allocations: 8 kB / 0.6837 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004209/1.743, allocations: 0.6186 MB / 0.6843 GB, free: 13.81 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001198/1.743, allocations: 35.59 kB / 0.6843 GB, free: 13.77 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.63e-05/1.743, allocations: 8 kB / 0.6843 GB, free: 13.77 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 4 (sourceP.C.b,puitsP.C.a,steamEngine1.C2.b,steamEngine1.C1.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.000119/1.743, allocations: 138.4 kB / 0.6844 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.765e-05/1.743, allocations: 27.62 kB / 0.6845 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008034/1.744, allocations: 0.7924 MB / 0.6852 GB, free: 12.76 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004633/1.745, allocations: 392.3 kB / 0.6856 GB, free: 12.37 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/1.745, allocations: 4 kB / 0.6856 GB, free: 12.36 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/1.745, allocations: 3.984 kB / 0.6856 GB, free: 12.36 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001578/1.746, allocations: 1.464 MB / 0.687 GB, free: 10.77 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.832e-06/1.746, allocations: 8 kB / 0.687 GB, free: 10.76 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001595/1.746, allocations: 71.84 kB / 0.6871 GB, free: 10.69 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001585/1.747, allocations: 93.39 kB / 0.6872 GB, free: 10.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.038e-05/1.747, allocations: 16 kB / 0.6872 GB, free: 10.58 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003754/1.747, allocations: 0.6302 MB / 0.6878 GB, free: 9.926 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/1.747, allocations: 11.94 kB / 0.6878 GB, free: 9.914 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006125/1.748, allocations: 0.6403 MB / 0.6885 GB, free: 9.191 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.546e-05/1.748, allocations: 124.5 kB / 0.6886 GB, free: 9.051 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.361e-05/1.748, allocations: 31.83 kB / 0.6886 GB, free: 9.02 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001642/1.748, allocations: 12 kB / 0.6886 GB, free: 9.008 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.084e-05/1.748, allocations: 39.84 kB / 0.6887 GB, free: 8.969 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.448e-05/1.748, allocations: 20 kB / 0.6887 GB, free: 8.949 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002691/1.748, allocations: 295.1 kB / 0.689 GB, free: 8.664 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.232e-06/1.748, allocations: 3.938 kB / 0.689 GB, free: 8.66 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00268/1.751, allocations: 1.335 MB / 0.6903 GB, free: 7.324 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * 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 (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.005041/1.756, allocations: 1.619 MB / 0.6919 GB, free: 5.695 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005933/1.757, allocations: 496.7 kB / 0.6923 GB, free: 5.18 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/1.757, allocations: 4.062 kB / 0.6923 GB, free: 5.176 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000272/1.757, allocations: 198.5 kB / 0.6925 GB, free: 4.984 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/1.758, allocations: 228.9 kB / 0.6927 GB, free: 4.766 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001164/1.759, allocations: 0.969 MB / 0.6937 GB, free: 3.695 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003445/1.76, allocations: 0.844 MB / 0.6945 GB, free: 2.824 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.834e-05/1.76, allocations: 35.44 kB / 0.6945 GB, free: 2.789 MB / 0.5762 GB Notification: Performance of SimCode: time 2.31e-07/1.76, allocations: 0 / 0.6945 GB, free: 2.789 MB / 0.5762 GB Notification: Performance of Templates: time 0.1807/1.94, allocations: 29.83 MB / 0.7237 GB, free: 198.6 MB / 0.5919 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.pipe 2>&1)