Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.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.PowerPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2") [: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.002564/0.002564, allocations: 183.8 kB / 7.803 MB, free: 2.488 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.846/1.846, 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.001356/0.001356, allocations: 87.66 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.2793/0.2793, allocations: 37.98 MB / 347.3 MB, free: 7.539 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.345e-06/8.376e-06, allocations: 0 / 409.3 MB, free: 47.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1083, allocations: 56.3 MB / 465.6 MB, free: 6.859 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3544/0.4627, allocations: 102.8 MB / 0.5551 GB, free: 8.043 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003385/0.4631, allocations: 83.94 kB / 0.5552 GB, free: 7.961 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.09589/0.559, allocations: 22.12 MB / 0.5768 GB, free: 1.672 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.874e-05/0.5592, allocations: 16 kB / 0.5768 GB, free: 1.656 MB / 410.7 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.002966/0.5621, allocations: 0.9677 MB / 0.5778 GB, free: 0.6406 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.5622, allocations: 8.031 kB / 0.5778 GB, free: 0.6328 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001821/0.564, allocations: 178.8 kB / 0.578 GB, free: 468 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001956/0.566, allocations: 0.5972 MB / 0.5785 GB, free: 15.82 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.761e-05/0.5661, allocations: 27.98 kB / 0.5786 GB, free: 15.79 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001645/0.5663, allocations: 40 kB / 0.5786 GB, free: 15.75 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001641/0.568, allocations: 470.5 kB / 0.579 GB, free: 15.29 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001738/0.5697, allocations: 0.6325 MB / 0.5797 GB, free: 14.62 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.469e-05/0.5698, allocations: 0 / 0.5797 GB, free: 14.62 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.646e-05/0.5699, allocations: 3.938 kB / 0.5797 GB, free: 14.61 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.75e-05/0.57, allocations: 37.3 kB / 0.5797 GB, free: 14.58 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007701/0.5777, allocations: 2.873 MB / 0.5825 GB, free: 11.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00199/0.5797, allocations: 0.6164 MB / 0.5831 GB, free: 10.94 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005753/0.5803, allocations: 187.1 kB / 0.5833 GB, free: 10.75 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.288e-05/0.5804, allocations: 12.44 kB / 0.5833 GB, free: 10.74 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.045e-05/0.5805, allocations: 38.91 kB / 0.5833 GB, free: 10.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=51): time 3.787e-06/0.5805, allocations: 4 kB / 0.5833 GB, free: 10.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=51): time 0.001387/0.5819, allocations: 436.4 kB / 0.5838 GB, free: 10.26 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.563e-05/0.582, allocations: 111.3 kB / 0.5839 GB, free: 10.13 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008055/0.5828, allocations: 402.3 kB / 0.5842 GB, free: 9.73 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.414e-05/0.5829, allocations: 25.7 kB / 0.5843 GB, free: 9.699 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002015/0.5831, allocations: 306.5 kB / 0.5846 GB, free: 9.395 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000217/0.5833, allocations: 169.5 kB / 0.5847 GB, free: 9.227 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.243e-05/0.5834, allocations: 3.938 kB / 0.5847 GB, free: 9.223 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.5835, allocations: 342.8 kB / 0.5851 GB, free: 8.879 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000572/0.5841, allocations: 161.3 kB / 0.5852 GB, free: 8.723 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006867/0.5848, allocations: 304.2 kB / 0.5855 GB, free: 8.375 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006266/0.5854, allocations: 201.5 kB / 0.5857 GB, free: 8.184 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.5855, allocations: 4 kB / 0.5857 GB, free: 8.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002247/0.5877, allocations: 0.6104 MB / 0.5863 GB, free: 7.559 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006233/0.5884, allocations: 1.392 MB / 0.5877 GB, free: 6.055 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.825e-05/0.5884, allocations: 7.906 kB / 0.5877 GB, free: 6.047 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005966/0.589, allocations: 104.8 kB / 0.5878 GB, free: 5.941 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00127/0.5903, allocations: 151.8 kB / 0.5879 GB, free: 5.793 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000989/0.5913, allocations: 0.7084 MB / 0.5886 GB, free: 5.055 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007359/0.5921, allocations: 63.56 kB / 0.5887 GB, free: 4.992 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-05/0.5921, allocations: 20 kB / 0.5887 GB, free: 4.973 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.999e-06/0.5922, allocations: 4 kB / 0.5887 GB, free: 4.969 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001781/0.594, allocations: 0.511 MB / 0.5892 GB, free: 4.453 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.594, allocations: 4 kB / 0.5892 GB, free: 4.449 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004609/0.5945, allocations: 97.27 kB / 0.5893 GB, free: 4.352 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.5956, allocations: 143.8 kB / 0.5894 GB, free: 4.211 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003185/0.5988, allocations: 1.888 MB / 0.5913 GB, free: 2.211 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000725/0.5996, allocations: 55.58 kB / 0.5913 GB, free: 2.156 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.244e-05/0.5997, allocations: 20.06 kB / 0.5913 GB, free: 2.137 MB / 426.7 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 (62): * Single equations (assignments): 61 * 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.000247/0.6, allocations: 49.5 kB / 0.5914 GB, free: 2.082 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002368/0.6002, allocations: 63.16 kB / 0.5914 GB, free: 2.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00149/0.6017, allocations: 469.5 kB / 0.5919 GB, free: 1.551 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.276e-05/0.6017, allocations: 11.94 kB / 0.5919 GB, free: 1.539 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.6018, allocations: 0 / 0.5919 GB, free: 1.539 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/0.6018, allocations: 3.984 kB / 0.5919 GB, free: 1.535 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002833/0.6046, allocations: 1.13 MB / 0.593 GB, free: 372 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.904e-06/0.6047, allocations: 4 kB / 0.593 GB, free: 368 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001318/0.606, allocations: 135.8 kB / 0.5931 GB, free: 232 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.078e-05/0.606, allocations: 0 / 0.5931 GB, free: 232 kB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.304e-05/0.6061, allocations: 8 kB / 0.5931 GB, free: 224 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/0.6061, allocations: 0 / 0.5931 GB, free: 224 kB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.6061, allocations: 4 kB / 0.5931 GB, free: 220 kB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002104/0.6083, allocations: 0.7972 MB / 0.5939 GB, free: 15.39 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004382/0.6087, allocations: 188.3 kB / 0.5941 GB, free: 15.19 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001342/0.6089, allocations: 3.984 kB / 0.5941 GB, free: 15.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008281/0.6097, allocations: 47.91 kB / 0.5942 GB, free: 15.14 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.6099, allocations: 36.38 kB / 0.5942 GB, free: 15.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.376e-05/0.6099, allocations: 16 kB / 0.5942 GB, free: 15.09 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0005932/0.6105, allocations: 306.9 kB / 0.5945 GB, free: 14.79 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001235/0.6118, allocations: 259.5 kB / 0.5947 GB, free: 14.54 MB / 442.7 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 (52): * Single equations (assignments): 51 * 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.0002618/0.6121, allocations: 123.1 kB / 0.5949 GB, free: 14.41 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00234/0.6144, allocations: 0.7858 MB / 0.5956 GB, free: 13.62 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.753e-06/0.6145, allocations: 4.219 kB / 0.5956 GB, free: 13.61 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006302/0.6151, allocations: 221.5 kB / 0.5958 GB, free: 13.39 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001162/0.6163, allocations: 120.5 kB / 0.596 GB, free: 13.28 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00451/0.6208, allocations: 1.201 MB / 0.5971 GB, free: 12.04 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001102/0.622, allocations: 1.011 MB / 0.5981 GB, free: 11 MB / 442.7 MB Notification: Performance of SimCode: time 9.32e-07/0.622, allocations: 0 / 0.5981 GB, free: 11 MB / 442.7 MB Notification: Performance of Templates: time 0.02116/0.6432, allocations: 9.394 MB / 0.6073 GB, free: 1.598 MB / 442.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2 --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1)