Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.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.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled") translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled") [: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.001653/0.001653, allocations: 186.9 kB / 7.805 MB, free: 2.5 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.673/1.673, allocations: 205.2 MB / 213.4 MB, free: 13.91 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.001299/0.001299, allocations: 92.14 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.3105/0.3105, allocations: 37.97 MB / 347.3 MB, free: 7.543 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.634e-06/7.725e-06, allocations: 0 / 409.3 MB, free: 47.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09793/0.09797, allocations: 56.32 MB / 465.6 MB, free: 6.836 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3475/0.4455, allocations: 103.5 MB / 0.5558 GB, free: 7.32 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000326/0.4459, allocations: 83.95 kB / 0.5559 GB, free: 7.238 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.2703/0.7162, allocations: 66.64 MB / 0.621 GB, free: 3.883 MB / 458.7 MB Notification: Performance of Transformations before backend: time 9.072e-05/0.7164, allocations: 24 kB / 0.621 GB, free: 3.859 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 299 * Number of variables: 299 Notification: Performance of Generate backend data structure: time 0.005061/0.7214, allocations: 1.43 MB / 0.6224 GB, free: 2.371 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.909e-05/0.7215, allocations: 12.03 kB / 0.6224 GB, free: 2.359 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006776/0.7283, allocations: 493.7 kB / 0.6229 GB, free: 1.875 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002579/0.7309, allocations: 0.6952 MB / 0.6235 GB, free: 1.133 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.864e-05/0.7311, allocations: 35.94 kB / 0.6236 GB, free: 1.098 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003571/0.7314, allocations: 71.91 kB / 0.6236 GB, free: 1.027 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00417/0.7356, allocations: 1.191 MB / 0.6248 GB, free: 15.83 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004581/0.7402, allocations: 1.393 MB / 0.6262 GB, free: 14.38 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.592e-05/0.7404, allocations: 7.984 kB / 0.6262 GB, free: 14.37 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001725/0.7406, allocations: 4 kB / 0.6262 GB, free: 14.37 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005379/0.7411, allocations: 114.2 kB / 0.6263 GB, free: 14.25 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01539/0.7565, allocations: 4.797 MB / 0.631 GB, free: 9.344 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002065/0.7586, allocations: 0.7573 MB / 0.6317 GB, free: 8.574 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002043/0.7607, allocations: 0.724 MB / 0.6324 GB, free: 7.844 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001431/0.7609, allocations: 24.92 kB / 0.6324 GB, free: 7.82 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002/0.7629, allocations: 0.7418 MB / 0.6332 GB, free: 7.055 MB / 474.7 MB Notification: Performance of pre-optimization done (n=126): time 7.264e-06/0.763, allocations: 0 / 0.6332 GB, free: 7.055 MB / 474.7 MB Notification: Performance of matching and sorting (n=137): time 0.01601/0.779, allocations: 4.533 MB / 0.6376 GB, free: 2.422 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.822e-05/0.7791, allocations: 120.1 kB / 0.6377 GB, free: 2.277 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001036/0.7802, allocations: 454.4 kB / 0.6381 GB, free: 1.832 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003129/0.7805, allocations: 29.7 kB / 0.6382 GB, free: 1.797 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000424/0.7809, allocations: 406.8 kB / 0.6386 GB, free: 1.395 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000866/0.7818, allocations: 449.2 kB / 0.639 GB, free: 0.9492 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/0.782, allocations: 3.938 kB / 0.639 GB, free: 0.9453 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002151/0.7822, allocations: 366.7 kB / 0.6393 GB, free: 0.5781 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001713/0.7839, allocations: 0.5375 MB / 0.6399 GB, free: 44 kB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1603/0.9442, allocations: 0.6854 MB / 0.6405 GB, free: 171.5 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001711/0.946, allocations: 0.6373 MB / 0.6412 GB, free: 171.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.946, allocations: 0 / 0.6412 GB, free: 171.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.006882/0.9529, allocations: 1.961 MB / 0.6431 GB, free: 171.4 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002523/0.9532, allocations: 1.144 MB / 0.6442 GB, free: 170.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/0.9533, allocations: 3.781 kB / 0.6442 GB, free: 170.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003443/0.9567, allocations: 0.5957 MB / 0.6448 GB, free: 170.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001976/0.9587, allocations: 222.3 kB / 0.645 GB, free: 170.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003223/0.962, allocations: 1.664 MB / 0.6466 GB, free: 169.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001701/0.9637, allocations: 63.84 kB / 0.6467 GB, free: 169.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000181/0.964, allocations: 48.42 kB / 0.6467 GB, free: 169.7 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.964, allocations: 3.625 kB / 0.6467 GB, free: 169.7 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006323/0.9703, allocations: 1.83 MB / 0.6485 GB, free: 169.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/0.9704, allocations: 7.188 kB / 0.6485 GB, free: 169.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00322/0.9736, allocations: 0.5857 MB / 0.6491 GB, free: 169.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001967/0.9756, allocations: 222.7 kB / 0.6493 GB, free: 169.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0124/0.9881, allocations: 5.049 MB / 0.6542 GB, free: 168.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001626/0.9898, allocations: 57.58 kB / 0.6543 GB, free: 168.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001558/0.9899, allocations: 46.61 kB / 0.6543 GB, free: 168.4 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,$whenCondition2,$whenCondition1,$PRE.disturbance.T_start,disturbance.T_start,$PRE.disturbance.count,disturbance.count,frequencyPowerControl.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 1 * 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 {6 55} Notification: Performance of prepare postOptimizeDAE: time 0.0003529/0.9903, allocations: 48.73 kB / 0.6544 GB, free: 168.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002837/0.9906, allocations: 97.12 kB / 0.6545 GB, free: 168.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006154/0.9968, allocations: 1.932 MB / 0.6564 GB, free: 168.2 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.492e-05/0.9968, allocations: 16.56 kB / 0.6564 GB, free: 168.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.565e-06/0.9969, allocations: 7.797 kB / 0.6564 GB, free: 168.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.114e-05/0.9969, allocations: 3.891 kB / 0.6564 GB, free: 168.2 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01076/1.008, allocations: 3.616 MB / 0.6599 GB, free: 167.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.638e-05/1.008, allocations: 4.438 kB / 0.6599 GB, free: 167.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001959/1.01, allocations: 216.9 kB / 0.6601 GB, free: 167.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002629/1.012, allocations: 496.9 kB / 0.6606 GB, free: 167.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002724/1.013, allocations: 13.56 kB / 0.6606 GB, free: 167.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01295/1.026, allocations: 5.992 MB / 0.6665 GB, free: 164.9 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.548e-06/1.026, allocations: 7.531 kB / 0.6665 GB, free: 164.9 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008177/1.034, allocations: 2.956 MB / 0.6694 GB, free: 164.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001032/1.035, allocations: 286.4 kB / 0.6696 GB, free: 164.3 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003209/1.035, allocations: 3.469 kB / 0.6696 GB, free: 164.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001797/1.037, allocations: 71.09 kB / 0.6697 GB, free: 164.3 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003822/1.038, allocations: 98.86 kB / 0.6698 GB, free: 164.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001294/1.038, allocations: 35.66 kB / 0.6698 GB, free: 164.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0006137/1.038, allocations: 346.5 kB / 0.6702 GB, free: 164.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002921/1.041, allocations: 0.5465 MB / 0.6707 GB, free: 164.2 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 4 (inertia1.phi,inertia1.w,frequencyPowerControl.I.y,system.theta) * Number of discrete variables: 5 (system.initime,$whenCondition2,$whenCondition1,disturbance.T_start,disturbance.count) * Number of discrete states: 1 (disturbance.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 40,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004838/1.042, allocations: 136.5 kB / 0.6708 GB, free: 164.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007634/1.049, allocations: 2.517 MB / 0.6733 GB, free: 163.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/1.05, allocations: 3.812 kB / 0.6733 GB, free: 163.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00332/1.053, allocations: 1.095 MB / 0.6744 GB, free: 163.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001583/1.054, allocations: 128.2 kB / 0.6745 GB, free: 163.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008246/1.063, allocations: 2.292 MB / 0.6767 GB, free: 163.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001808/1.065, allocations: 1.354 MB / 0.678 GB, free: 162.3 MB / 474.7 MB Notification: Performance of SimCode: time 2.325e-06/1.065, allocations: 0 / 0.678 GB, free: 162.3 MB / 474.7 MB Notification: Performance of Templates: time 0.0499/1.115, allocations: 20.54 MB / 0.6981 GB, free: 160.8 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.sim & ./PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1)