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.8171/0.8171, allocations: 150.9 MB / 166.5 MB, free: 14.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003325/0.0003325, allocations: 19.08 kB / 237.1 MB, free: 1.934 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04962/0.04997, allocations: 31.36 MB / 268.4 MB, free: 7.168 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.614/1.664, allocations: 295 MB / 0.5502 GB, free: 13.06 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03622/1.701, allocations: 28.98 MB / 0.5785 GB, free: 15.97 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002021/1.701, allocations: 0 / 0.5785 GB, free: 15.97 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.0006153/1.701, allocations: 239.1 kB / 0.5787 GB, free: 15.74 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000334/1.702, allocations: 155 kB / 0.5789 GB, free: 15.59 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.02629/1.728, allocations: 9.684 MB / 0.5883 GB, free: 5.895 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006801/1.729, allocations: 426.1 kB / 0.5887 GB, free: 5.477 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000234/1.729, allocations: 120.6 kB / 0.5889 GB, free: 5.363 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000253/1.729, allocations: 179.2 kB / 0.589 GB, free: 5.188 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002038/1.73, allocations: 135.4 kB / 0.5892 GB, free: 5.055 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 3.536e-05/1.73, allocations: 16 kB / 0.5892 GB, free: 5.039 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03617/1.766, allocations: 20.51 MB / 0.6092 GB, free: 0.5 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001211/1.766, allocations: 55.77 kB / 0.6093 GB, free: 456 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002318/1.766, allocations: 155.2 kB / 0.6094 GB, free: 300 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01891/1.785, allocations: 8.576 MB / 0.6178 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/1.785, allocations: 0 / 0.6178 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.553e-06/1.785, allocations: 0 / 0.6178 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.933e-05/1.785, allocations: 0 / 0.6178 GB, free: 7.699 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.004279/1.789, allocations: 1.416 MB / 0.6192 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/1.789, allocations: 8.031 kB / 0.6192 GB, free: 6.227 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.144e-05/1.79, allocations: 36.47 kB / 0.6192 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002727/1.79, allocations: 237.2 kB / 0.6194 GB, free: 5.922 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.176e-05/1.79, allocations: 20.55 kB / 0.6194 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.09e-05/1.79, allocations: 24 kB / 0.6195 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004992/1.79, allocations: 349.1 kB / 0.6198 GB, free: 5.512 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/1.79, allocations: 0 / 0.6198 GB, free: 5.512 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.104e-05/1.79, allocations: 8 kB / 0.6198 GB, free: 5.504 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.093e-05/1.79, allocations: 19.98 kB / 0.6198 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003091/1.791, allocations: 216.6 kB / 0.62 GB, free: 5.273 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.02151/1.812, allocations: 9.938 MB / 0.6297 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002333/1.813, allocations: 150.9 kB / 0.6299 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001475/1.813, allocations: 109.7 kB / 0.63 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1265/1.939, allocations: 52 MB / 0.6808 GB, free: 1.113 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.558e-05/1.939, allocations: 46.48 kB / 0.6808 GB, free: 1.059 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=52): time 2.425e-06/1.939, allocations: 0 / 0.6808 GB, free: 1.059 MB / 0.5606 GB Notification: Performance of matching and sorting (n=52): time 0.001212/1.941, allocations: 0.5133 MB / 0.6813 GB, free: 0.5156 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.127e-05/1.941, allocations: 51.41 kB / 0.6814 GB, free: 464 kB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002885/1.941, allocations: 238 kB / 0.6816 GB, free: 212 kB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.946e-05/1.941, allocations: 25.7 kB / 0.6816 GB, free: 180 kB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/1.941, allocations: 148.9 kB / 0.6818 GB, free: 24 kB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/1.941, allocations: 169.6 kB / 0.6819 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.1e-05/1.941, allocations: 53.7 kB / 0.682 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000119/1.941, allocations: 342.8 kB / 0.6823 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001421/1.942, allocations: 88.53 kB / 0.6824 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001684/1.942, allocations: 142.5 kB / 0.6825 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003262/1.942, allocations: 262.6 kB / 0.6828 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/1.942, allocations: 3.938 kB / 0.6828 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005324/1.943, allocations: 353.7 kB / 0.6831 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/1.943, allocations: 4 kB / 0.6831 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/1.943, allocations: 4 kB / 0.6831 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003296/1.943, allocations: 113 kB / 0.6832 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.227e-05/1.943, allocations: 11.94 kB / 0.6832 GB, free: 14.44 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000518/1.944, allocations: 0.6108 MB / 0.6838 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001486/1.944, allocations: 39.53 kB / 0.6839 GB, free: 13.76 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.858e-05/1.944, allocations: 8 kB / 0.6839 GB, free: 13.75 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.0001837/1.944, allocations: 142.4 kB / 0.684 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.207e-05/1.944, allocations: 27.62 kB / 0.684 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009333/1.945, allocations: 0.7963 MB / 0.6848 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005496/1.946, allocations: 380.5 kB / 0.6852 GB, free: 12.36 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/1.946, allocations: 7.984 kB / 0.6852 GB, free: 12.35 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/1.946, allocations: 3.984 kB / 0.6852 GB, free: 12.35 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002225/1.948, allocations: 1.472 MB / 0.6866 GB, free: 10.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/1.948, allocations: 8 kB / 0.6866 GB, free: 10.74 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002113/1.948, allocations: 71.84 kB / 0.6867 GB, free: 10.67 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001811/1.948, allocations: 92.73 kB / 0.6868 GB, free: 10.58 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.575e-05/1.948, allocations: 12 kB / 0.6868 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004193/1.949, allocations: 0.6384 MB / 0.6874 GB, free: 9.902 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/1.949, allocations: 8 kB / 0.6874 GB, free: 9.895 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007753/1.95, allocations: 0.6441 MB / 0.6881 GB, free: 9.168 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001022/1.95, allocations: 124.5 kB / 0.6882 GB, free: 9.027 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.248e-05/1.95, allocations: 31.77 kB / 0.6882 GB, free: 8.996 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001879/1.95, allocations: 12 kB / 0.6882 GB, free: 8.984 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.556e-05/1.95, allocations: 39.84 kB / 0.6883 GB, free: 8.945 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.896e-05/1.95, allocations: 20 kB / 0.6883 GB, free: 8.926 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002964/1.95, allocations: 291 kB / 0.6886 GB, free: 8.645 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/1.95, allocations: 0 / 0.6886 GB, free: 8.645 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003767/1.954, allocations: 1.327 MB / 0.6899 GB, free: 7.316 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.007322/1.961, allocations: 1.638 MB / 0.6915 GB, free: 5.668 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008209/1.962, allocations: 0.492 MB / 0.6919 GB, free: 5.148 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/1.962, allocations: 0 / 0.6919 GB, free: 5.148 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000332/1.963, allocations: 197 kB / 0.6921 GB, free: 4.957 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001294/1.964, allocations: 223.8 kB / 0.6923 GB, free: 4.742 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0015/1.965, allocations: 0.9238 MB / 0.6932 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004809/1.966, allocations: 0.8401 MB / 0.6941 GB, free: 2.855 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001761/1.966, allocations: 42.95 kB / 0.6941 GB, free: 2.816 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.865e-05/1.966, allocations: 35.44 kB / 0.6941 GB, free: 2.781 MB / 0.5762 GB Notification: Performance of SimCode: time 1.774e-06/1.966, allocations: 0 / 0.6941 GB, free: 2.781 MB / 0.5762 GB Notification: Performance of Templates: time 0.2526/2.219, allocations: 53.6 MB / 0.7465 GB, free: 201.9 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)