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.7643/0.7643, allocations: 150.9 MB / 166.7 MB, free: 14.62 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002987/0.0002987, allocations: 15.97 kB / 204.8 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1531/0.1534, allocations: 31.33 MB / 236.1 MB, free: 5.469 MB / 190.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.51/1.664, allocations: 293.8 MB / 0.5175 GB, free: 13.52 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03288/1.697, allocations: 29.52 MB / 0.5463 GB, free: 168 kB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001965/1.697, allocations: 4 kB / 0.5463 GB, free: 164 kB / 430.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.0005067/1.698, allocations: 167.4 kB / 0.5465 GB, free: 15.99 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002038/1.698, allocations: 111.2 kB / 0.5466 GB, free: 15.89 MB / 446.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.02063/1.718, allocations: 8.397 MB / 0.5548 GB, free: 7.5 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000567/1.719, allocations: 430.1 kB / 0.5552 GB, free: 7.078 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001914/1.719, allocations: 129.4 kB / 0.5553 GB, free: 6.961 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001914/1.719, allocations: 171.3 kB / 0.5555 GB, free: 6.793 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001651/1.72, allocations: 143.3 kB / 0.5556 GB, free: 6.652 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.645e-05/1.72, allocations: 16 kB / 0.5557 GB, free: 6.637 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03063/1.75, allocations: 20.37 MB / 0.5755 GB, free: 2.242 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001167/1.75, allocations: 47.78 kB / 0.5756 GB, free: 2.195 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002147/1.751, allocations: 163.1 kB / 0.5757 GB, free: 2.035 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01172/1.762, allocations: 5.613 MB / 0.5812 GB, free: 12.41 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/1.762, allocations: 0 / 0.5812 GB, free: 12.41 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.964e-06/1.762, allocations: 0 / 0.5812 GB, free: 12.41 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/1.762, allocations: 0 / 0.5812 GB, free: 12.41 MB / 478.1 MB 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.004055/1.766, allocations: 1.412 MB / 0.5826 GB, free: 10.95 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/1.767, allocations: 12.03 kB / 0.5826 GB, free: 10.94 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.013e-05/1.767, allocations: 28.56 kB / 0.5826 GB, free: 10.91 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002082/1.767, allocations: 235.8 kB / 0.5829 GB, free: 10.64 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.857e-05/1.767, allocations: 20.56 kB / 0.5829 GB, free: 10.62 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.759e-05/1.767, allocations: 24 kB / 0.5829 GB, free: 10.6 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004381/1.767, allocations: 349.1 kB / 0.5832 GB, free: 10.23 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/1.767, allocations: 0 / 0.5832 GB, free: 10.23 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.824e-05/1.767, allocations: 8 kB / 0.5833 GB, free: 10.22 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.739e-05/1.767, allocations: 19.97 kB / 0.5833 GB, free: 10.2 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002553/1.768, allocations: 208.8 kB / 0.5835 GB, free: 9.996 MB / 478.1 MB 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.01763/1.785, allocations: 9.886 MB / 0.5931 GB, free: 15.1 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002142/1.786, allocations: 144.6 kB / 0.5933 GB, free: 14.95 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000124/1.786, allocations: 125.6 kB / 0.5934 GB, free: 14.82 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1017/1.887, allocations: 51.55 MB / 0.6437 GB, free: 6.332 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/1.887, allocations: 42.5 kB / 0.6438 GB, free: 6.281 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=52): time 2.034e-06/1.887, allocations: 0 / 0.6438 GB, free: 6.281 MB / 0.5294 GB Notification: Performance of matching and sorting (n=52): time 0.00103/1.889, allocations: 0.5171 MB / 0.6443 GB, free: 5.742 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.717e-05/1.889, allocations: 51.41 kB / 0.6443 GB, free: 5.68 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002221/1.889, allocations: 237 kB / 0.6445 GB, free: 5.438 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.674e-05/1.889, allocations: 25.7 kB / 0.6446 GB, free: 5.406 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 8.057e-05/1.889, allocations: 145 kB / 0.6447 GB, free: 5.262 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 9.081e-05/1.889, allocations: 169.4 kB / 0.6449 GB, free: 5.094 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.79e-05/1.889, allocations: 53.69 kB / 0.6449 GB, free: 5.035 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001019/1.889, allocations: 342.8 kB / 0.6452 GB, free: 4.691 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001241/1.889, allocations: 80.55 kB / 0.6453 GB, free: 4.609 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001439/1.889, allocations: 145.3 kB / 0.6455 GB, free: 4.449 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002813/1.89, allocations: 265.9 kB / 0.6457 GB, free: 4.168 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/1.89, allocations: 7.938 kB / 0.6457 GB, free: 4.16 MB / 0.5294 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0004476/1.89, allocations: 339.2 kB / 0.646 GB, free: 3.82 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/1.89, allocations: 9.25 kB / 0.6461 GB, free: 3.812 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/1.89, allocations: 0 / 0.6461 GB, free: 3.812 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002667/1.891, allocations: 112.8 kB / 0.6462 GB, free: 3.699 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.414e-05/1.891, allocations: 12.19 kB / 0.6462 GB, free: 3.688 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004202/1.891, allocations: 0.6185 MB / 0.6468 GB, free: 3.043 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001201/1.891, allocations: 35.56 kB / 0.6468 GB, free: 3.008 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.47e-05/1.891, allocations: 8 kB / 0.6468 GB, free: 3 MB / 0.5294 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.0001283/1.891, allocations: 142.4 kB / 0.647 GB, free: 2.852 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.521e-05/1.891, allocations: 31.69 kB / 0.647 GB, free: 2.82 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008015/1.892, allocations: 0.804 MB / 0.6478 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000454/1.893, allocations: 384.3 kB / 0.6481 GB, free: 1.598 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/1.893, allocations: 1.453 kB / 0.6481 GB, free: 1.598 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/1.893, allocations: 3.984 kB / 0.6481 GB, free: 1.594 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001553/1.894, allocations: 1.481 MB / 0.6496 GB, free: 15.99 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/1.894, allocations: 4 kB / 0.6496 GB, free: 15.98 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001616/1.894, allocations: 67.86 kB / 0.6497 GB, free: 15.92 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001553/1.895, allocations: 97.41 kB / 0.6498 GB, free: 15.82 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.068e-05/1.895, allocations: 12 kB / 0.6498 GB, free: 15.81 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003715/1.895, allocations: 0.6355 MB / 0.6504 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/1.895, allocations: 4 kB / 0.6504 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006104/1.896, allocations: 0.6405 MB / 0.651 GB, free: 14.42 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 8.515e-05/1.896, allocations: 128.5 kB / 0.6511 GB, free: 14.28 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.123e-05/1.896, allocations: 19.84 kB / 0.6512 GB, free: 14.26 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000169/1.896, allocations: 12 kB / 0.6512 GB, free: 14.25 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.859e-05/1.896, allocations: 51.83 kB / 0.6512 GB, free: 14.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.799e-05/1.896, allocations: 16 kB / 0.6512 GB, free: 14.18 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.000276/1.896, allocations: 287.1 kB / 0.6515 GB, free: 13.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/1.896, allocations: 3.938 kB / 0.6515 GB, free: 13.89 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004429/1.901, allocations: 1.335 MB / 0.6528 GB, free: 12.56 MB / 0.545 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.005921/1.907, allocations: 1.631 MB / 0.6544 GB, free: 10.93 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0007729/1.907, allocations: 496.8 kB / 0.6549 GB, free: 10.42 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/1.907, allocations: 384 / 0.6549 GB, free: 10.42 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002618/1.908, allocations: 212.4 kB / 0.6551 GB, free: 10.21 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/1.909, allocations: 226.7 kB / 0.6553 GB, free: 9.992 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001371/1.91, allocations: 1.121 MB / 0.6564 GB, free: 8.773 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003527/1.911, allocations: 0.8401 MB / 0.6572 GB, free: 7.906 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.613e-05/1.911, allocations: 31.44 kB / 0.6572 GB, free: 7.875 MB / 0.545 GB Notification: Performance of SimCode: time 5.41e-07/1.911, allocations: 0 / 0.6572 GB, free: 7.875 MB / 0.545 GB Notification: Performance of Templates: time 0.03742/1.948, allocations: 29.86 MB / 0.6864 GB, free: 10 MB / 0.5762 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)