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.8221/0.8221, allocations: 150.9 MB / 166.5 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000302/0.000302, allocations: 16.16 kB / 237.1 MB, free: 1.789 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05115/0.05147, allocations: 31.35 MB / 268.4 MB, free: 7.051 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.631/1.683, allocations: 294.9 MB / 0.5501 GB, free: 12.85 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03667/1.719, allocations: 28.97 MB / 0.5784 GB, free: 15.77 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002111/1.72, allocations: 7.938 kB / 0.5784 GB, free: 15.76 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.0005754/1.72, allocations: 183.1 kB / 0.5786 GB, free: 15.58 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002984/1.721, allocations: 131 kB / 0.5787 GB, free: 15.45 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.02411/1.745, allocations: 9.562 MB / 0.5881 GB, free: 5.887 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006109/1.745, allocations: 434 kB / 0.5885 GB, free: 5.461 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002322/1.746, allocations: 120.6 kB / 0.5886 GB, free: 5.348 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002504/1.746, allocations: 175.2 kB / 0.5888 GB, free: 5.176 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002233/1.746, allocations: 135.4 kB / 0.5889 GB, free: 5.043 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 3.901e-05/1.746, allocations: 20 kB / 0.5889 GB, free: 5.023 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03396/1.78, allocations: 20.52 MB / 0.609 GB, free: 492 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000108/1.78, allocations: 51.78 kB / 0.609 GB, free: 440 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002041/1.78, allocations: 151.2 kB / 0.6091 GB, free: 288 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01743/1.798, allocations: 8.58 MB / 0.6175 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/1.798, allocations: 0 / 0.6175 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.375e-06/1.798, allocations: 0 / 0.6175 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.14e-05/1.798, allocations: 0 / 0.6175 GB, free: 7.684 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.004313/1.802, allocations: 1.412 MB / 0.6189 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/1.802, allocations: 8.031 kB / 0.6189 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.98e-05/1.802, allocations: 36.47 kB / 0.6189 GB, free: 6.18 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002618/1.803, allocations: 241 kB / 0.6192 GB, free: 5.906 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/1.803, allocations: 16.56 kB / 0.6192 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.989e-05/1.803, allocations: 20 kB / 0.6192 GB, free: 5.871 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005023/1.803, allocations: 349.1 kB / 0.6195 GB, free: 5.504 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/1.803, allocations: 7.938 kB / 0.6196 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.277e-05/1.803, allocations: 8 kB / 0.6196 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.02e-05/1.803, allocations: 15.98 kB / 0.6196 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003028/1.804, allocations: 216.6 kB / 0.6198 GB, free: 5.262 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.02115/1.825, allocations: 9.942 MB / 0.6295 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002343/1.825, allocations: 151 kB / 0.6296 GB, free: 10.15 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001453/1.825, allocations: 109.7 kB / 0.6297 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1224/1.948, allocations: 52.01 MB / 0.6805 GB, free: 1.086 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/1.948, allocations: 42.53 kB / 0.6806 GB, free: 1.035 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=52): time 2.104e-06/1.948, allocations: 0 / 0.6806 GB, free: 1.035 MB / 0.5606 GB Notification: Performance of matching and sorting (n=52): time 0.001144/1.949, allocations: 0.5133 MB / 0.6811 GB, free: 0.4922 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.118e-05/1.949, allocations: 59.41 kB / 0.6811 GB, free: 432 kB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002624/1.949, allocations: 237.9 kB / 0.6814 GB, free: 180 kB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/1.949, allocations: 29.7 kB / 0.6814 GB, free: 144 kB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/1.949, allocations: 145 kB / 0.6815 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/1.949, allocations: 161.4 kB / 0.6817 GB, free: 15.83 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.015e-05/1.949, allocations: 53.69 kB / 0.6817 GB, free: 15.77 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001308/1.95, allocations: 342.8 kB / 0.6821 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001288/1.95, allocations: 80.55 kB / 0.6821 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001735/1.95, allocations: 149.3 kB / 0.6823 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003489/1.95, allocations: 274.6 kB / 0.6825 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/1.95, allocations: 3.938 kB / 0.6825 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005388/1.951, allocations: 345.7 kB / 0.6829 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/1.951, allocations: 8 kB / 0.6829 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/1.951, allocations: 0 / 0.6829 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002872/1.951, allocations: 113.1 kB / 0.683 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.832e-05/1.951, allocations: 15.94 kB / 0.683 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004661/1.952, allocations: 0.6106 MB / 0.6836 GB, free: 13.77 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001321/1.952, allocations: 35.56 kB / 0.6836 GB, free: 13.74 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.794e-05/1.952, allocations: 8 kB / 0.6836 GB, free: 13.73 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.0001431/1.952, allocations: 142.4 kB / 0.6838 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.386e-05/1.952, allocations: 23.62 kB / 0.6838 GB, free: 13.56 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008821/1.953, allocations: 0.7963 MB / 0.6846 GB, free: 12.72 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005079/1.954, allocations: 388.3 kB / 0.6849 GB, free: 12.33 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/1.954, allocations: 0 / 0.6849 GB, free: 12.33 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/1.954, allocations: 3.984 kB / 0.6849 GB, free: 12.33 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001794/1.955, allocations: 1.48 MB / 0.6864 GB, free: 10.72 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/1.955, allocations: 4 kB / 0.6864 GB, free: 10.72 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001793/1.956, allocations: 67.91 kB / 0.6865 GB, free: 10.65 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001685/1.956, allocations: 84.81 kB / 0.6865 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.146e-05/1.956, allocations: 12 kB / 0.6866 GB, free: 10.55 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004137/1.956, allocations: 0.6409 MB / 0.6872 GB, free: 9.891 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/1.956, allocations: 7.938 kB / 0.6872 GB, free: 9.883 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006723/1.957, allocations: 0.6364 MB / 0.6878 GB, free: 9.164 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.426e-05/1.957, allocations: 128.5 kB / 0.6879 GB, free: 9.02 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.709e-05/1.957, allocations: 23.84 kB / 0.688 GB, free: 8.996 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001931/1.957, allocations: 20 kB / 0.688 GB, free: 8.977 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.824e-05/1.957, allocations: 43.77 kB / 0.688 GB, free: 8.934 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.983e-05/1.957, allocations: 20 kB / 0.688 GB, free: 8.914 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002927/1.958, allocations: 291 kB / 0.6883 GB, free: 8.633 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/1.958, allocations: 0 / 0.6883 GB, free: 8.633 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003314/1.961, allocations: 1.331 MB / 0.6896 GB, free: 7.301 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.006392/1.967, allocations: 1.623 MB / 0.6912 GB, free: 5.672 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007641/1.968, allocations: 0.5004 MB / 0.6917 GB, free: 5.141 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/1.968, allocations: 4 kB / 0.6917 GB, free: 5.137 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003155/1.968, allocations: 196.2 kB / 0.6919 GB, free: 4.949 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/1.97, allocations: 215 kB / 0.6921 GB, free: 4.742 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/1.971, allocations: 0.9355 MB / 0.693 GB, free: 3.711 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004115/1.972, allocations: 0.8362 MB / 0.6938 GB, free: 2.848 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001702/1.972, allocations: 42.97 kB / 0.6938 GB, free: 2.809 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.087e-05/1.972, allocations: 35.44 kB / 0.6939 GB, free: 2.773 MB / 0.5762 GB Notification: Performance of SimCode: time 5.81e-07/1.972, allocations: 0 / 0.6939 GB, free: 2.773 MB / 0.5762 GB Notification: Performance of Templates: time 0.2308/2.203, allocations: 53.6 MB / 0.7462 GB, free: 201.2 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)