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.8162/0.8162, allocations: 150.9 MB / 167.1 MB, free: 14.54 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003186/0.0003187, allocations: 11.98 kB / 205.9 MB, free: 9.066 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1227, allocations: 31.33 MB / 237.3 MB, free: 5.941 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.552/1.674, allocations: 294.7 MB / 0.5195 GB, free: 13.25 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03314/1.707, allocations: 28.97 MB / 0.5478 GB, free: 444 kB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001802/1.708, allocations: 4 kB / 0.5478 GB, free: 440 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.0004863/1.708, allocations: 180.5 kB / 0.548 GB, free: 260 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002225/1.708, allocations: 127 kB / 0.5481 GB, free: 132 kB / 430.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.02179/1.73, allocations: 9.554 MB / 0.5574 GB, free: 6.578 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005276/1.731, allocations: 438.1 kB / 0.5579 GB, free: 6.148 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001904/1.731, allocations: 120.7 kB / 0.558 GB, free: 6.039 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001794/1.731, allocations: 175.2 kB / 0.5581 GB, free: 5.867 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001746/1.731, allocations: 143.3 kB / 0.5583 GB, free: 5.727 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.995e-05/1.731, allocations: 20 kB / 0.5583 GB, free: 5.707 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03021/1.762, allocations: 20.51 MB / 0.5783 GB, free: 1.172 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001006/1.762, allocations: 59.77 kB / 0.5784 GB, free: 1.113 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002005/1.762, allocations: 151.2 kB / 0.5785 GB, free: 0.9648 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01557/1.778, allocations: 8.58 MB / 0.5869 GB, free: 8.367 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/1.778, allocations: 4 kB / 0.5869 GB, free: 8.363 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.723e-06/1.778, allocations: 0 / 0.5869 GB, free: 8.363 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/1.778, allocations: 0 / 0.5869 GB, free: 8.363 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.003757/1.781, allocations: 1.404 MB / 0.5883 GB, free: 6.91 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/1.781, allocations: 12.03 kB / 0.5883 GB, free: 6.898 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.65e-05/1.781, allocations: 28.56 kB / 0.5883 GB, free: 6.871 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002062/1.782, allocations: 243.7 kB / 0.5885 GB, free: 6.594 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/1.782, allocations: 24.56 kB / 0.5886 GB, free: 6.57 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.839e-05/1.782, allocations: 20 kB / 0.5886 GB, free: 6.551 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004432/1.782, allocations: 349.1 kB / 0.5889 GB, free: 6.18 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/1.782, allocations: 0 / 0.5889 GB, free: 6.18 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.951e-05/1.782, allocations: 4.609 kB / 0.5889 GB, free: 6.176 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.823e-05/1.782, allocations: 27.97 kB / 0.589 GB, free: 6.148 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002798/1.783, allocations: 208.8 kB / 0.5892 GB, free: 5.945 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.01938/1.802, allocations: 9.934 MB / 0.5989 GB, free: 11 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000223/1.802, allocations: 150.9 kB / 0.599 GB, free: 10.84 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001371/1.802, allocations: 113.7 kB / 0.5991 GB, free: 10.73 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1129/1.915, allocations: 52.01 MB / 0.6499 GB, free: 1.777 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.089e-05/1.915, allocations: 46.5 kB / 0.6499 GB, free: 1.723 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=52): time 2.094e-06/1.915, allocations: 0 / 0.6499 GB, free: 1.723 MB / 0.5294 GB Notification: Performance of matching and sorting (n=52): time 0.001087/1.916, allocations: 0.5133 MB / 0.6504 GB, free: 1.188 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.972e-05/1.916, allocations: 51.41 kB / 0.6505 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002309/1.917, allocations: 233 kB / 0.6507 GB, free: 0.8867 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.215e-05/1.917, allocations: 25.7 kB / 0.6507 GB, free: 0.8555 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 8.964e-05/1.917, allocations: 152.9 kB / 0.6509 GB, free: 0.7031 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 9.851e-05/1.917, allocations: 165.5 kB / 0.651 GB, free: 0.5391 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.022e-05/1.917, allocations: 57.62 kB / 0.6511 GB, free: 488 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001097/1.917, allocations: 338.8 kB / 0.6514 GB, free: 140 kB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/1.917, allocations: 88.53 kB / 0.6515 GB, free: 52 kB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000176/1.917, allocations: 146.7 kB / 0.6516 GB, free: 15.89 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003095/1.918, allocations: 272.1 kB / 0.6519 GB, free: 15.6 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/1.918, allocations: 3.938 kB / 0.6519 GB, free: 15.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.000481/1.918, allocations: 335.3 kB / 0.6522 GB, free: 15.26 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/1.918, allocations: 11.98 kB / 0.6522 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/1.918, allocations: 0 / 0.6522 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000283/1.919, allocations: 108.8 kB / 0.6523 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.935e-05/1.919, allocations: 11.94 kB / 0.6524 GB, free: 15.13 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004459/1.919, allocations: 0.6123 MB / 0.653 GB, free: 14.49 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001199/1.919, allocations: 35.56 kB / 0.653 GB, free: 14.46 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.825e-05/1.919, allocations: 8 kB / 0.653 GB, free: 14.45 MB / 0.545 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.0001302/1.919, allocations: 141.8 kB / 0.6531 GB, free: 14.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.06e-05/1.919, allocations: 31.61 kB / 0.6532 GB, free: 14.27 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008618/1.92, allocations: 0.804 MB / 0.6539 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005043/1.921, allocations: 380.4 kB / 0.6543 GB, free: 13.05 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/1.921, allocations: 0 / 0.6543 GB, free: 13.05 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/1.921, allocations: 3.984 kB / 0.6543 GB, free: 13.04 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001642/1.923, allocations: 1.472 MB / 0.6557 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.104e-06/1.923, allocations: 4.656 kB / 0.6558 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000177/1.923, allocations: 75.84 kB / 0.6558 GB, free: 11.37 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001692/1.923, allocations: 96.8 kB / 0.6559 GB, free: 11.27 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.124e-05/1.923, allocations: 12 kB / 0.6559 GB, free: 11.26 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003977/1.923, allocations: 0.6311 MB / 0.6565 GB, free: 10.61 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/1.923, allocations: 4 kB / 0.6565 GB, free: 10.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006526/1.924, allocations: 0.6457 MB / 0.6572 GB, free: 9.875 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 8.158e-05/1.924, allocations: 128.5 kB / 0.6573 GB, free: 9.73 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.595e-05/1.924, allocations: 27.83 kB / 0.6573 GB, free: 9.703 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00018/1.924, allocations: 8 kB / 0.6573 GB, free: 9.695 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.038e-05/1.924, allocations: 43.84 kB / 0.6574 GB, free: 9.652 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.041e-05/1.924, allocations: 16 kB / 0.6574 GB, free: 9.637 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0003106/1.925, allocations: 295 kB / 0.6577 GB, free: 9.348 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/1.925, allocations: 0 / 0.6577 GB, free: 9.348 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003117/1.928, allocations: 1.327 MB / 0.659 GB, free: 8.02 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.005146/1.933, allocations: 1.642 MB / 0.6606 GB, free: 6.383 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0007032/1.934, allocations: 492.9 kB / 0.661 GB, free: 5.871 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/1.934, allocations: 4 kB / 0.661 GB, free: 5.867 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002893/1.934, allocations: 201.8 kB / 0.6612 GB, free: 5.672 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/1.935, allocations: 217.4 kB / 0.6614 GB, free: 5.457 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001276/1.936, allocations: 0.9183 MB / 0.6623 GB, free: 4.445 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003686/1.937, allocations: 0.8401 MB / 0.6632 GB, free: 3.578 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0001431/1.937, allocations: 46.95 kB / 0.6632 GB, free: 3.535 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.689e-05/1.937, allocations: 31.44 kB / 0.6632 GB, free: 3.504 MB / 0.545 GB Notification: Performance of SimCode: time 3.51e-07/1.937, allocations: 0 / 0.6632 GB, free: 3.504 MB / 0.545 GB Notification: Performance of Templates: time 0.2019/2.139, allocations: 53.47 MB / 0.7155 GB, free: 222.4 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 -s gbode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.pipe 2>&1)