Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.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.PowerPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1") [: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.00168/0.00168, allocations: 180.7 kB / 7.803 MB, free: 1.203 MB / 6.77 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.907/1.907, allocations: 205.2 MB / 213.4 MB, free: 8.531 MB / 178.8 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001229/0.001229, allocations: 91.05 kB / 261.4 MB, free: 5.184 MB / 210.8 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2964/0.2964, allocations: 37.98 MB / 347.3 MB, free: 0.9414 MB / 290.8 MB Notification: Performance of FrontEnd - loaded program: time 8.406e-06/8.887e-06, allocations: 0 / 409.3 MB, free: 74.87 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1008, allocations: 56.32 MB / 465.6 MB, free: 18.51 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3877/0.4885, allocations: 102.6 MB / 0.5549 GB, free: 10.16 MB / 370.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003164/0.4889, allocations: 90.78 kB / 0.555 GB, free: 10.11 MB / 370.8 MB Notification: Performance of FrontEnd: time 0.09423/0.5831, allocations: 21.91 MB / 0.5764 GB, free: 8.109 MB / 386.8 MB Notification: Performance of Transformations before backend: time 9.712e-05/0.5833, allocations: 20 kB / 0.5764 GB, free: 8.09 MB / 386.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.00283/0.5861, allocations: 0.9518 MB / 0.5774 GB, free: 7.133 MB / 386.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.5862, allocations: 8.031 kB / 0.5774 GB, free: 7.125 MB / 386.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001856/0.5881, allocations: 186.7 kB / 0.5775 GB, free: 6.941 MB / 386.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001883/0.59, allocations: 0.5817 MB / 0.5781 GB, free: 6.418 MB / 386.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.118e-05/0.5901, allocations: 23.38 kB / 0.5781 GB, free: 6.398 MB / 386.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001566/0.5903, allocations: 39.91 kB / 0.5782 GB, free: 6.359 MB / 386.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001523/0.5918, allocations: 469.1 kB / 0.5786 GB, free: 6.078 MB / 386.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001643/0.5935, allocations: 0.6248 MB / 0.5792 GB, free: 5.59 MB / 386.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.528e-05/0.5935, allocations: 4 kB / 0.5792 GB, free: 5.586 MB / 386.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.628e-05/0.5936, allocations: 0 / 0.5792 GB, free: 5.586 MB / 386.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.468e-05/0.5937, allocations: 37.23 kB / 0.5793 GB, free: 5.551 MB / 386.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007172/0.6009, allocations: 2.839 MB / 0.582 GB, free: 3.199 MB / 386.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001809/0.6028, allocations: 0.5977 MB / 0.5826 GB, free: 2.738 MB / 386.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000504/0.6033, allocations: 184 kB / 0.5828 GB, free: 2.621 MB / 386.8 MB Notification: Performance of preOpt evalFunc (simulation): time 6.547e-05/0.6034, allocations: 12.42 kB / 0.5828 GB, free: 2.609 MB / 386.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.3e-05/0.6034, allocations: 42.62 kB / 0.5828 GB, free: 2.562 MB / 386.8 MB Notification: Performance of pre-optimization done (n=50): time 3.446e-06/0.6035, allocations: 0 / 0.5828 GB, free: 2.562 MB / 386.8 MB Notification: Performance of matching and sorting (n=50): time 0.001422/0.6049, allocations: 427.5 kB / 0.5833 GB, free: 2.254 MB / 386.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.478e-05/0.605, allocations: 107.2 kB / 0.5834 GB, free: 2.125 MB / 386.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009104/0.6059, allocations: 393.7 kB / 0.5837 GB, free: 1.824 MB / 386.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001771/0.6061, allocations: 25.7 kB / 0.5838 GB, free: 1.793 MB / 386.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002148/0.6064, allocations: 307.8 kB / 0.5841 GB, free: 1.504 MB / 386.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002495/0.6066, allocations: 175.4 kB / 0.5842 GB, free: 1.352 MB / 386.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.098e-05/0.6067, allocations: 0 / 0.5842 GB, free: 1.352 MB / 386.8 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.6069, allocations: 332 kB / 0.5845 GB, free: 1.027 MB / 386.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005219/0.6074, allocations: 162 kB / 0.5847 GB, free: 0.9375 MB / 386.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006144/0.608, allocations: 294.6 kB / 0.585 GB, free: 0.6797 MB / 386.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005834/0.6086, allocations: 200.3 kB / 0.5852 GB, free: 0.5625 MB / 386.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.84e-06/0.6087, allocations: 0 / 0.5852 GB, free: 0.5625 MB / 386.8 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002142/0.6108, allocations: 0.6001 MB / 0.5857 GB, free: 108 kB / 386.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006572/0.6115, allocations: 1.399 MB / 0.5871 GB, free: 14.62 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.116e-05/0.6115, allocations: 15.94 kB / 0.5871 GB, free: 14.61 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005757/0.6121, allocations: 110.7 kB / 0.5872 GB, free: 14.53 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001158/0.6133, allocations: 131.2 kB / 0.5874 GB, free: 14.4 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009549/0.6143, allocations: 0.7059 MB / 0.588 GB, free: 13.76 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006085/0.6149, allocations: 51.56 kB / 0.5881 GB, free: 13.71 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.127e-05/0.615, allocations: 23.81 kB / 0.5881 GB, free: 13.69 MB / 402.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.615, allocations: 8 kB / 0.5881 GB, free: 13.68 MB / 402.8 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001632/0.6166, allocations: 0.5007 MB / 0.5886 GB, free: 13.32 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.6167, allocations: 8.203 kB / 0.5886 GB, free: 13.32 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004393/0.6171, allocations: 91.69 kB / 0.5887 GB, free: 13.25 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001119/0.6182, allocations: 135.5 kB / 0.5888 GB, free: 13.12 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003058/0.6213, allocations: 1.887 MB / 0.5907 GB, free: 11.42 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005879/0.6219, allocations: 35.67 kB / 0.5907 GB, free: 11.38 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.644e-05/0.622, allocations: 26.98 kB / 0.5907 GB, free: 11.36 MB / 402.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (61): * Single equations (assignments): 60 * 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 {1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0002115/0.6223, allocations: 49.06 kB / 0.5908 GB, free: 11.31 MB / 402.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002165/0.6225, allocations: 63.31 kB / 0.5909 GB, free: 11.25 MB / 402.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001384/0.6239, allocations: 462.6 kB / 0.5913 GB, free: 10.93 MB / 402.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.936e-06/0.6239, allocations: 4 kB / 0.5913 GB, free: 10.93 MB / 402.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.6239, allocations: 0 / 0.5913 GB, free: 10.93 MB / 402.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-05/0.6239, allocations: 7.984 kB / 0.5913 GB, free: 10.92 MB / 402.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002595/0.6265, allocations: 1.11 MB / 0.5924 GB, free: 10.07 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/0.6266, allocations: 0 / 0.5924 GB, free: 10.07 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001212/0.6278, allocations: 126.4 kB / 0.5925 GB, free: 9.957 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.127e-06/0.6278, allocations: 0 / 0.5925 GB, free: 9.957 MB / 402.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.137e-05/0.6279, allocations: 7.984 kB / 0.5925 GB, free: 9.949 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-06/0.6279, allocations: 0 / 0.5925 GB, free: 9.949 MB / 402.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.6279, allocations: 4 kB / 0.5925 GB, free: 9.945 MB / 402.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001818/0.6298, allocations: 0.7784 MB / 0.5933 GB, free: 9.363 MB / 402.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003765/0.6302, allocations: 188.6 kB / 0.5935 GB, free: 9.188 MB / 402.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001236/0.6303, allocations: 2.75 kB / 0.5935 GB, free: 9.188 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007422/0.6311, allocations: 39.88 kB / 0.5935 GB, free: 9.148 MB / 402.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.6312, allocations: 35.25 kB / 0.5935 GB, free: 9.117 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.155e-05/0.6313, allocations: 13.69 kB / 0.5935 GB, free: 9.109 MB / 402.8 MB Notification: Performance of sort global known variables: time 0.0005786/0.6319, allocations: 302.5 kB / 0.5938 GB, free: 8.887 MB / 402.8 MB Notification: Performance of remove unused functions: time 0.001245/0.6331, allocations: 259.2 kB / 0.5941 GB, free: 8.633 MB / 402.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (powerPlant.rotor.phi,powerPlant.rotor.w,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 (51): * Single equations (assignments): 50 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002327/0.6334, allocations: 118.8 kB / 0.5942 GB, free: 8.508 MB / 402.8 MB Notification: Performance of simCode: created initialization part: time 0.002182/0.6356, allocations: 0.7729 MB / 0.595 GB, free: 7.949 MB / 402.8 MB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/0.6356, allocations: 4.375 kB / 0.595 GB, free: 7.945 MB / 402.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0005588/0.6362, allocations: 221.3 kB / 0.5952 GB, free: 7.793 MB / 402.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001094/0.6373, allocations: 107.4 kB / 0.5953 GB, free: 7.715 MB / 402.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004357/0.6416, allocations: 1.184 MB / 0.5964 GB, free: 6.543 MB / 402.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001073/0.6427, allocations: 1.007 MB / 0.5974 GB, free: 5.508 MB / 402.8 MB Notification: Performance of SimCode: time 1.052e-06/0.6428, allocations: 0 / 0.5974 GB, free: 5.508 MB / 402.8 MB Notification: Performance of Templates: time 0.02104/0.6638, allocations: 9.215 MB / 0.6064 GB, free: 12.3 MB / 418.8 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1 --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1)