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.7326/0.7326, allocations: 150.9 MB / 167.2 MB, free: 14.49 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000293/0.0002931, allocations: 17.44 kB / 237.8 MB, free: 1.797 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04398/0.04429, allocations: 31.35 MB / 269.1 MB, free: 7.031 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.424/1.468, allocations: 294.8 MB / 0.5507 GB, free: 13.03 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03036/1.498, allocations: 28.98 MB / 0.579 GB, free: 15.95 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001401/1.499, allocations: 4 kB / 0.579 GB, free: 15.94 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.0004382/1.499, allocations: 183.1 kB / 0.5792 GB, free: 15.76 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002218/1.499, allocations: 131 kB / 0.5793 GB, free: 15.63 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.01923/1.519, allocations: 9.565 MB / 0.5886 GB, free: 6.059 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.000469/1.519, allocations: 430.1 kB / 0.589 GB, free: 5.637 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001839/1.519, allocations: 116.6 kB / 0.5891 GB, free: 5.527 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001886/1.519, allocations: 179.2 kB / 0.5893 GB, free: 5.352 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001682/1.52, allocations: 135.4 kB / 0.5894 GB, free: 5.219 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.803e-05/1.52, allocations: 20 kB / 0.5895 GB, free: 5.199 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02915/1.549, allocations: 20.51 MB / 0.6095 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.024e-05/1.549, allocations: 51.78 kB / 0.6096 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001699/1.549, allocations: 159.2 kB / 0.6097 GB, free: 464 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01289/1.562, allocations: 8.576 MB / 0.6181 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/1.562, allocations: 0 / 0.6181 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.153e-06/1.562, allocations: 0 / 0.6181 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.194e-06/1.562, allocations: 0 / 0.6181 GB, free: 7.859 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.00366/1.566, allocations: 1.413 MB / 0.6195 GB, free: 6.398 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/1.566, allocations: 8.031 kB / 0.6195 GB, free: 6.391 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.95e-05/1.566, allocations: 40.41 kB / 0.6195 GB, free: 6.352 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001982/1.566, allocations: 239.9 kB / 0.6197 GB, free: 6.078 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/1.566, allocations: 20.56 kB / 0.6198 GB, free: 6.059 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.574e-05/1.566, allocations: 16 kB / 0.6198 GB, free: 6.043 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004384/1.566, allocations: 345.1 kB / 0.6201 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/1.566, allocations: 4 kB / 0.6201 GB, free: 5.676 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.775e-05/1.566, allocations: 15.94 kB / 0.6201 GB, free: 5.66 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.811e-05/1.567, allocations: 15.98 kB / 0.6201 GB, free: 5.645 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002685/1.567, allocations: 216.6 kB / 0.6203 GB, free: 5.434 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.0181/1.585, allocations: 9.938 MB / 0.63 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001906/1.585, allocations: 147 kB / 0.6302 GB, free: 10.33 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001258/1.585, allocations: 113.7 kB / 0.6303 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1066/1.692, allocations: 52 MB / 0.6811 GB, free: 1.273 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.024e-05/1.692, allocations: 42.52 kB / 0.6811 GB, free: 1.223 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=52): time 1.764e-06/1.692, allocations: 0 / 0.6811 GB, free: 1.223 MB / 0.5606 GB Notification: Performance of matching and sorting (n=52): time 0.0009707/1.693, allocations: 0.5133 MB / 0.6816 GB, free: 0.6797 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.029e-05/1.693, allocations: 59.34 kB / 0.6817 GB, free: 0.6094 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002152/1.693, allocations: 237.9 kB / 0.6819 GB, free: 372 kB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.546e-05/1.693, allocations: 33.7 kB / 0.6819 GB, free: 332 kB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.783e-05/1.693, allocations: 145 kB / 0.6821 GB, free: 180 kB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.323e-05/1.693, allocations: 165.5 kB / 0.6822 GB, free: 12 kB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.223e-05/1.693, allocations: 57.7 kB / 0.6823 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001106/1.694, allocations: 342.8 kB / 0.6826 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001127/1.694, allocations: 80.55 kB / 0.6827 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001526/1.694, allocations: 157.3 kB / 0.6828 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002878/1.694, allocations: 258.6 kB / 0.6831 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/1.694, allocations: 7.875 kB / 0.6831 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.000465/1.695, allocations: 345.7 kB / 0.6834 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/1.695, allocations: 8 kB / 0.6834 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/1.695, allocations: 0 / 0.6834 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002426/1.695, allocations: 112.8 kB / 0.6835 GB, free: 14.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.59e-05/1.695, allocations: 8 kB / 0.6835 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004215/1.695, allocations: 0.6176 MB / 0.6841 GB, free: 13.95 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/1.696, allocations: 31.56 kB / 0.6842 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.554e-05/1.696, allocations: 8 kB / 0.6842 GB, free: 13.91 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.0001251/1.696, allocations: 142.4 kB / 0.6843 GB, free: 13.77 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.508e-05/1.696, allocations: 23.62 kB / 0.6843 GB, free: 13.74 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007929/1.697, allocations: 0.8003 MB / 0.6851 GB, free: 12.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004629/1.697, allocations: 392.3 kB / 0.6855 GB, free: 12.51 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/1.697, allocations: 0 / 0.6855 GB, free: 12.51 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/1.697, allocations: 3.984 kB / 0.6855 GB, free: 12.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001565/1.699, allocations: 1.475 MB / 0.6869 GB, free: 10.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/1.699, allocations: 4.656 kB / 0.6869 GB, free: 10.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001585/1.699, allocations: 71.91 kB / 0.687 GB, free: 10.83 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001607/1.699, allocations: 88.75 kB / 0.6871 GB, free: 10.74 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.023e-05/1.699, allocations: 15.98 kB / 0.6871 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003801/1.699, allocations: 0.6303 MB / 0.6877 GB, free: 10.07 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/1.699, allocations: 8.125 kB / 0.6877 GB, free: 10.06 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006095/1.7, allocations: 0.648 MB / 0.6884 GB, free: 9.332 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.627e-05/1.7, allocations: 128.5 kB / 0.6885 GB, free: 9.188 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.016e-05/1.7, allocations: 31.77 kB / 0.6885 GB, free: 9.156 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001621/1.7, allocations: 12 kB / 0.6885 GB, free: 9.145 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.952e-05/1.7, allocations: 39.84 kB / 0.6886 GB, free: 9.105 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.839e-05/1.7, allocations: 20 kB / 0.6886 GB, free: 9.086 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00026/1.701, allocations: 287 kB / 0.6889 GB, free: 8.809 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.11e-07/1.701, allocations: 0 / 0.6889 GB, free: 8.809 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002513/1.703, allocations: 1.331 MB / 0.6902 GB, free: 7.477 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.004835/1.708, allocations: 1.63 MB / 0.6918 GB, free: 5.836 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005954/1.709, allocations: 0.4927 MB / 0.6922 GB, free: 5.312 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/1.709, allocations: 0 / 0.6922 GB, free: 5.312 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002546/1.709, allocations: 200 kB / 0.6924 GB, free: 5.121 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/1.71, allocations: 217.3 kB / 0.6926 GB, free: 4.91 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001196/1.711, allocations: 0.9793 MB / 0.6936 GB, free: 3.832 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000349/1.712, allocations: 0.8362 MB / 0.6944 GB, free: 2.969 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.739e-05/1.712, allocations: 31.44 kB / 0.6944 GB, free: 2.938 MB / 0.5762 GB Notification: Performance of SimCode: time 2.11e-07/1.712, allocations: 0 / 0.6944 GB, free: 2.938 MB / 0.5762 GB Notification: Performance of Templates: time 0.1826/1.894, allocations: 29.8 MB / 0.7235 GB, free: 198.7 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)