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.8285/0.8285, allocations: 150.9 MB / 166.5 MB, free: 14.67 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003149/0.0003149, allocations: 19.55 kB / 237.1 MB, free: 1.684 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05082/0.05115, allocations: 31.35 MB / 268.4 MB, free: 7.043 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.593/1.644, allocations: 295 MB / 0.5502 GB, free: 13 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03537/1.68, allocations: 28.98 MB / 0.5785 GB, free: 15.92 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001702/1.68, allocations: 4 kB / 0.5785 GB, free: 15.91 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.0004877/1.681, allocations: 179.1 kB / 0.5787 GB, free: 15.74 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000236/1.681, allocations: 139 kB / 0.5788 GB, free: 15.6 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.02259/1.703, allocations: 9.562 MB / 0.5882 GB, free: 6.031 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005605/1.704, allocations: 426.1 kB / 0.5886 GB, free: 5.613 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001938/1.704, allocations: 124.6 kB / 0.5887 GB, free: 5.496 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001927/1.704, allocations: 171.2 kB / 0.5889 GB, free: 5.328 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001861/1.705, allocations: 139.4 kB / 0.589 GB, free: 5.191 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 3.069e-05/1.705, allocations: 16 kB / 0.589 GB, free: 5.176 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03576/1.74, allocations: 20.52 MB / 0.609 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001198/1.741, allocations: 47.78 kB / 0.6091 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002277/1.741, allocations: 159.2 kB / 0.6092 GB, free: 440 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01754/1.758, allocations: 8.59 MB / 0.6176 GB, free: 7.82 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/1.758, allocations: 0 / 0.6176 GB, free: 7.82 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.583e-06/1.758, allocations: 0 / 0.6176 GB, free: 7.82 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.297e-05/1.758, allocations: 0 / 0.6176 GB, free: 7.82 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.0038/1.762, allocations: 1.464 MB / 0.6191 GB, free: 6.301 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.487e-05/1.762, allocations: 12.03 kB / 0.6191 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.184e-05/1.762, allocations: 36.7 kB / 0.6191 GB, free: 6.254 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002159/1.762, allocations: 237.2 kB / 0.6193 GB, free: 5.984 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.04e-05/1.763, allocations: 24.55 kB / 0.6194 GB, free: 5.961 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.768e-05/1.763, allocations: 16 kB / 0.6194 GB, free: 5.945 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004959/1.763, allocations: 349.1 kB / 0.6197 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/1.763, allocations: 0 / 0.6197 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.175e-05/1.763, allocations: 15.94 kB / 0.6197 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.889e-05/1.763, allocations: 19.97 kB / 0.6197 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002935/1.763, allocations: 212.6 kB / 0.6199 GB, free: 5.336 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.02003/1.783, allocations: 9.946 MB / 0.6297 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002427/1.784, allocations: 147 kB / 0.6298 GB, free: 10.22 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000139/1.784, allocations: 113.7 kB / 0.6299 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1191/1.903, allocations: 52.01 MB / 0.6807 GB, free: 1.16 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.262e-05/1.903, allocations: 34.5 kB / 0.6807 GB, free: 1.117 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=52): time 2.134e-06/1.903, allocations: 4 kB / 0.6807 GB, free: 1.113 MB / 0.5606 GB Notification: Performance of matching and sorting (n=52): time 0.001203/1.904, allocations: 0.5173 MB / 0.6812 GB, free: 0.5664 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.828e-05/1.904, allocations: 59.41 kB / 0.6813 GB, free: 0.4961 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002923/1.905, allocations: 234 kB / 0.6815 GB, free: 260 kB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.042e-05/1.905, allocations: 29.7 kB / 0.6815 GB, free: 224 kB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.872e-05/1.905, allocations: 145.2 kB / 0.6817 GB, free: 72 kB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000138/1.905, allocations: 178.5 kB / 0.6819 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.441e-05/1.905, allocations: 53.66 kB / 0.6819 GB, free: 15.83 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001279/1.905, allocations: 342.8 kB / 0.6822 GB, free: 15.49 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/1.905, allocations: 88.53 kB / 0.6823 GB, free: 15.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001685/1.905, allocations: 145.3 kB / 0.6825 GB, free: 15.24 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003384/1.906, allocations: 270.6 kB / 0.6827 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/1.906, allocations: 7.875 kB / 0.6827 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005355/1.906, allocations: 341.9 kB / 0.683 GB, free: 14.61 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/1.906, allocations: 4 kB / 0.683 GB, free: 14.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/1.906, allocations: 4 kB / 0.6831 GB, free: 14.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002889/1.907, allocations: 112.8 kB / 0.6832 GB, free: 14.48 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.563e-05/1.907, allocations: 12.19 kB / 0.6832 GB, free: 14.47 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005018/1.907, allocations: 0.6108 MB / 0.6838 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001319/1.907, allocations: 31.67 kB / 0.6838 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.13e-05/1.907, allocations: 16 kB / 0.6838 GB, free: 13.79 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.0001481/1.908, allocations: 138.4 kB / 0.6839 GB, free: 13.64 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.51e-05/1.908, allocations: 31.83 kB / 0.684 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009143/1.909, allocations: 0.7965 MB / 0.6848 GB, free: 12.78 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005119/1.909, allocations: 392.3 kB / 0.6851 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.79e-06/1.909, allocations: 48 / 0.6851 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/1.909, allocations: 7.969 kB / 0.6851 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001887/1.911, allocations: 1.484 MB / 0.6866 GB, free: 10.77 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/1.911, allocations: 4 kB / 0.6866 GB, free: 10.76 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001889/1.911, allocations: 67.91 kB / 0.6867 GB, free: 10.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001801/1.911, allocations: 88.8 kB / 0.6867 GB, free: 10.61 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.537e-05/1.911, allocations: 16 kB / 0.6868 GB, free: 10.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004544/1.912, allocations: 0.6343 MB / 0.6874 GB, free: 9.93 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/1.912, allocations: 7.938 kB / 0.6874 GB, free: 9.922 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006959/1.913, allocations: 0.6483 MB / 0.688 GB, free: 9.191 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.978e-05/1.913, allocations: 120.7 kB / 0.6881 GB, free: 9.055 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.817e-05/1.913, allocations: 35.83 kB / 0.6882 GB, free: 9.02 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001857/1.913, allocations: 12 kB / 0.6882 GB, free: 9.008 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.586e-05/1.913, allocations: 35.84 kB / 0.6882 GB, free: 8.973 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.173e-05/1.913, allocations: 20 kB / 0.6882 GB, free: 8.953 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003019/1.913, allocations: 291 kB / 0.6885 GB, free: 8.672 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.51e-07/1.913, allocations: 4 kB / 0.6885 GB, free: 8.668 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003224/1.917, allocations: 1.341 MB / 0.6898 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.006434/1.923, allocations: 1.64 MB / 0.6914 GB, free: 5.672 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008327/1.924, allocations: 0.492 MB / 0.6919 GB, free: 5.152 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/1.924, allocations: 0 / 0.6919 GB, free: 5.152 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003856/1.924, allocations: 205.3 kB / 0.6921 GB, free: 4.953 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001234/1.926, allocations: 226.6 kB / 0.6923 GB, free: 4.734 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001355/1.927, allocations: 0.9347 MB / 0.6932 GB, free: 3.703 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003783/1.927, allocations: 0.8401 MB / 0.694 GB, free: 2.836 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001565/1.928, allocations: 42.95 kB / 0.6941 GB, free: 2.797 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.073e-05/1.928, allocations: 43.42 kB / 0.6941 GB, free: 2.754 MB / 0.5762 GB Notification: Performance of SimCode: time 2.41e-07/1.928, allocations: 0 / 0.6941 GB, free: 2.754 MB / 0.5762 GB Notification: Performance of Templates: time 0.2413/2.169, allocations: 53.6 MB / 0.7465 GB, free: 201.4 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)