Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002106/0.002106, allocations: 192.1 kB / 7.803 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.763/1.763, allocations: 205.2 MB / 213.4 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001225/0.001224, allocations: 90.5 kB / 261.4 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2809/0.2809, allocations: 37.98 MB / 347.3 MB, free: 7.547 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.606e-06/8.757e-06, allocations: 0 / 409.3 MB, free: 47.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1037, allocations: 56.32 MB / 465.6 MB, free: 6.855 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3638/0.4676, allocations: 104.7 MB / 0.5569 GB, free: 6.164 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003342/0.468, allocations: 87.88 kB / 0.557 GB, free: 6.078 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.1199/0.588, allocations: 27.76 MB / 0.5841 GB, free: 10.1 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.851e-05/0.5881, allocations: 31.92 kB / 0.5842 GB, free: 10.07 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.003121/0.5913, allocations: 1.018 MB / 0.5852 GB, free: 8.996 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.5913, allocations: 8.031 kB / 0.5852 GB, free: 8.988 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002467/0.5938, allocations: 210.6 kB / 0.5854 GB, free: 8.781 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002064/0.5959, allocations: 0.6283 MB / 0.586 GB, free: 8.109 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.801e-05/0.596, allocations: 20 kB / 0.586 GB, free: 8.09 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001741/0.5962, allocations: 44 kB / 0.586 GB, free: 8.047 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00194/0.5981, allocations: 0.5733 MB / 0.5866 GB, free: 7.477 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002065/0.6002, allocations: 0.7387 MB / 0.5873 GB, free: 6.695 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.964e-05/0.6003, allocations: 3.938 kB / 0.5873 GB, free: 6.691 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001043/0.6004, allocations: 4 kB / 0.5873 GB, free: 6.688 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001968/0.6006, allocations: 45.28 kB / 0.5874 GB, free: 6.645 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008762/0.6094, allocations: 3.153 MB / 0.5905 GB, free: 3.379 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001578/0.611, allocations: 482.2 kB / 0.5909 GB, free: 2.887 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006815/0.6117, allocations: 247.2 kB / 0.5912 GB, free: 2.641 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.144e-05/0.6118, allocations: 12.48 kB / 0.5912 GB, free: 2.629 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.001e-05/0.6119, allocations: 43.05 kB / 0.5912 GB, free: 2.578 MB / 426.7 MB Notification: Performance of pre-optimization done (n=59): time 3.777e-06/0.6119, allocations: 0 / 0.5912 GB, free: 2.578 MB / 426.7 MB Notification: Performance of matching and sorting (n=63): time 0.005595/0.6175, allocations: 1.853 MB / 0.593 GB, free: 0.6367 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.57e-05/0.6177, allocations: 107.3 kB / 0.5931 GB, free: 0.5078 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008738/0.6185, allocations: 414.3 kB / 0.5935 GB, free: 100 kB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001255/0.6187, allocations: 25.7 kB / 0.5935 GB, free: 68 kB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002677/0.619, allocations: 310.4 kB / 0.5938 GB, free: 15.76 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003038/0.6193, allocations: 216.8 kB / 0.594 GB, free: 15.54 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.888e-05/0.6193, allocations: 0 / 0.594 GB, free: 15.54 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.6195, allocations: 338.7 kB / 0.5944 GB, free: 15.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006784/0.6202, allocations: 217.5 kB / 0.5946 GB, free: 14.99 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008/0.621, allocations: 354.3 kB / 0.5949 GB, free: 14.59 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000788/0.6218, allocations: 267.1 kB / 0.5952 GB, free: 14.33 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/0.6219, allocations: 8 kB / 0.5952 GB, free: 14.32 MB / 442.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002117/0.624, allocations: 0.6563 MB / 0.5958 GB, free: 13.65 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007269/0.6247, allocations: 1.485 MB / 0.5973 GB, free: 12.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.675e-05/0.6248, allocations: 4 kB / 0.5973 GB, free: 12.05 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003943/0.6252, allocations: 68.8 kB / 0.5973 GB, free: 11.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001658/0.6268, allocations: 195.5 kB / 0.5975 GB, free: 11.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002362/0.6292, allocations: 1.528 MB / 0.599 GB, free: 10.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008084/0.6301, allocations: 36.08 kB / 0.599 GB, free: 10.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.582e-05/0.6302, allocations: 24 kB / 0.5991 GB, free: 10.08 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.072e-05/0.6302, allocations: 8 kB / 0.5991 GB, free: 10.07 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001955/0.6322, allocations: 0.5964 MB / 0.5997 GB, free: 9.473 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.635e-06/0.6322, allocations: 0.5 kB / 0.5997 GB, free: 9.473 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003368/0.6325, allocations: 64.81 kB / 0.5997 GB, free: 9.406 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001465/0.634, allocations: 171.8 kB / 0.5999 GB, free: 9.238 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002354/0.6364, allocations: 1.536 MB / 0.6014 GB, free: 7.582 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007703/0.6372, allocations: 28.02 kB / 0.6014 GB, free: 7.555 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.328e-05/0.6373, allocations: 28.06 kB / 0.6014 GB, free: 7.527 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002379/0.6376, allocations: 41.58 kB / 0.6015 GB, free: 7.48 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002415/0.6378, allocations: 67.16 kB / 0.6015 GB, free: 7.414 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002192/0.64, allocations: 0.6518 MB / 0.6022 GB, free: 6.758 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.6401, allocations: 8 kB / 0.6022 GB, free: 6.75 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.6401, allocations: 4 kB / 0.6022 GB, free: 6.746 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.6401, allocations: 3.984 kB / 0.6022 GB, free: 6.742 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006561/0.6467, allocations: 1.938 MB / 0.6041 GB, free: 4.676 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-05/0.6467, allocations: 8 kB / 0.6041 GB, free: 4.668 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001305/0.6481, allocations: 131.8 kB / 0.6042 GB, free: 4.539 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004039/0.6485, allocations: 60.84 kB / 0.6043 GB, free: 4.477 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001131/0.6486, allocations: 15.98 kB / 0.6043 GB, free: 4.461 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002223/0.6509, allocations: 1.503 MB / 0.6058 GB, free: 2.848 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.201e-05/0.6509, allocations: 4 kB / 0.6058 GB, free: 2.844 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003235/0.6542, allocations: 1.474 MB / 0.6072 GB, free: 1.117 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005514/0.6548, allocations: 200.2 kB / 0.6074 GB, free: 0.9023 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001513/0.6549, allocations: 8 kB / 0.6074 GB, free: 0.8945 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009612/0.6559, allocations: 47.95 kB / 0.6074 GB, free: 0.8477 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001859/0.6561, allocations: 63.69 kB / 0.6075 GB, free: 0.7852 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.09e-05/0.6562, allocations: 24 kB / 0.6075 GB, free: 0.7617 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0006566/0.6569, allocations: 314.9 kB / 0.6078 GB, free: 468 kB / 442.7 MB Notification: Performance of remove unused functions: time 0.001548/0.6584, allocations: 220 kB / 0.608 GB, free: 248 kB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 7 (powerPlant.evaporator.y,powerPlant.superheater1.y,powerPlant.superheater2.y,powerPlant.transferFunction.x_scaled[1],powerPlant.hotwellLevel.y,powerPlant.throttleDynamics.y,powerPlant.throttleCosts.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003052/0.6588, allocations: 119.1 kB / 0.6082 GB, free: 116 kB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003267/0.6621, allocations: 1.104 MB / 0.6092 GB, free: 15 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/0.6621, allocations: 0 / 0.6092 GB, free: 15 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001289/0.6634, allocations: 418 kB / 0.6096 GB, free: 14.58 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001407/0.6649, allocations: 124.4 kB / 0.6097 GB, free: 14.46 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004679/0.6696, allocations: 1.345 MB / 0.6111 GB, free: 12.99 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001422/0.6711, allocations: 1.065 MB / 0.6121 GB, free: 11.9 MB / 458.7 MB Notification: Performance of SimCode: time 1.473e-06/0.6711, allocations: 3.938 kB / 0.6121 GB, free: 11.89 MB / 458.7 MB Notification: Performance of Templates: time 0.0269/0.698, allocations: 11.97 MB / 0.6238 GB, free: 15.91 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3 --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe 2>&1)