Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled") translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002045/0.002046, allocations: 190.1 kB / 8.136 MB, free: 2.211 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.46/1.46, allocations: 194.2 MB / 202.8 MB, free: 8.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001664/0.001664, allocations: 118.8 kB / 247.8 MB, free: 6.414 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.2057/0.2057, allocations: 37.92 MB / 330.5 MB, free: 6.918 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 9.698e-06/9.728e-06, allocations: 0 / 389.8 MB, free: 78.1 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1009, allocations: 53.23 MB / 443 MB, free: 24.96 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2953/0.3962, allocations: 97.44 MB / 0.5278 GB, free: 8.902 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002208/0.3965, allocations: 84.61 kB / 0.5279 GB, free: 8.891 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.1542/0.5507, allocations: 65.91 MB / 0.5923 GB, free: 15.79 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.626e-05/0.5508, allocations: 24 kB / 0.5923 GB, free: 15.77 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: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.003859/0.5547, allocations: 1.395 MB / 0.5936 GB, free: 14.32 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.5548, allocations: 12.03 kB / 0.5937 GB, free: 14.31 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004562/0.5593, allocations: 493.7 kB / 0.5941 GB, free: 13.82 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001782/0.5611, allocations: 0.6678 MB / 0.5948 GB, free: 13.11 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.058e-05/0.5612, allocations: 36 kB / 0.5948 GB, free: 13.08 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004619/0.5617, allocations: 63.98 kB / 0.5949 GB, free: 13.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002516/0.5642, allocations: 1.187 MB / 0.596 GB, free: 11.82 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002794/0.567, allocations: 1.367 MB / 0.5974 GB, free: 10.41 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.017e-05/0.5671, allocations: 3.984 kB / 0.5974 GB, free: 10.4 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001279/0.5672, allocations: 4 kB / 0.5974 GB, free: 10.4 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000307/0.5675, allocations: 114.1 kB / 0.5975 GB, free: 10.29 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009205/0.5768, allocations: 4.577 MB / 0.6019 GB, free: 5.59 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001295/0.5781, allocations: 0.7417 MB / 0.6027 GB, free: 4.836 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001086/0.5792, allocations: 0.716 MB / 0.6034 GB, free: 4.113 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.655e-05/0.5793, allocations: 24.97 kB / 0.6034 GB, free: 4.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001176/0.5805, allocations: 0.7339 MB / 0.6041 GB, free: 3.332 MB / 410.7 MB Notification: Performance of pre-optimization done (n=125): time 3.908e-06/0.5805, allocations: 3.938 kB / 0.6041 GB, free: 3.328 MB / 410.7 MB Notification: Performance of matching and sorting (n=136): time 0.008778/0.5893, allocations: 4.513 MB / 0.6085 GB, free: 14.71 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/0.5895, allocations: 128.1 kB / 0.6086 GB, free: 14.57 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005507/0.59, allocations: 422.4 kB / 0.6091 GB, free: 14.14 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.32e-05/0.5901, allocations: 25.7 kB / 0.6091 GB, free: 14.11 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003263/0.5904, allocations: 376.2 kB / 0.6094 GB, free: 13.74 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004205/0.5909, allocations: 449.2 kB / 0.6099 GB, free: 13.29 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.398e-05/0.5909, allocations: 0 / 0.6099 GB, free: 13.29 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001995/0.5912, allocations: 402.7 kB / 0.6102 GB, free: 12.89 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008657/0.592, allocations: 0.5297 MB / 0.6108 GB, free: 12.36 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009295/0.593, allocations: 0.6776 MB / 0.6114 GB, free: 11.65 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009999/0.594, allocations: 0.6309 MB / 0.612 GB, free: 11.02 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.594, allocations: 0 / 0.612 GB, free: 11.02 MB / 426.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.004195/0.5982, allocations: 1.978 MB / 0.614 GB, free: 9.031 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005409/0.5987, allocations: 0.9613 MB / 0.6149 GB, free: 7.996 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.587e-05/0.5988, allocations: 4 kB / 0.6149 GB, free: 7.992 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00224/0.601, allocations: 0.6424 MB / 0.6155 GB, free: 7.344 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/0.6021, allocations: 227.5 kB / 0.6158 GB, free: 7.121 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002199/0.6044, allocations: 1.646 MB / 0.6174 GB, free: 5.453 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001178/0.6056, allocations: 67.92 kB / 0.6174 GB, free: 5.387 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001761/0.6057, allocations: 47.98 kB / 0.6175 GB, free: 5.34 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.6058, allocations: 4 kB / 0.6175 GB, free: 5.336 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003986/0.6098, allocations: 1.798 MB / 0.6192 GB, free: 3.531 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.6098, allocations: 7.906 kB / 0.6192 GB, free: 3.523 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002091/0.6119, allocations: 0.6348 MB / 0.6199 GB, free: 2.887 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001061/0.613, allocations: 215.7 kB / 0.6201 GB, free: 2.676 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009206/0.6222, allocations: 4.935 MB / 0.6249 GB, free: 13.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001225/0.6235, allocations: 63.83 kB / 0.625 GB, free: 13.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002655/0.6237, allocations: 47.98 kB / 0.625 GB, free: 13.51 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition2,$whenCondition1,$PRE.disturbance.T_start,disturbance.T_start,$PRE.disturbance.count,disturbance.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 97 * 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 {4 56} Notification: Performance of prepare postOptimizeDAE: time 0.0004024/0.6242, allocations: 116.8 kB / 0.6251 GB, free: 13.39 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002564/0.6244, allocations: 90.88 kB / 0.6252 GB, free: 13.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004151/0.6286, allocations: 1.928 MB / 0.6271 GB, free: 11.36 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-05/0.6286, allocations: 16 kB / 0.6271 GB, free: 11.34 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.6286, allocations: 0 / 0.6271 GB, free: 11.34 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.628e-05/0.6287, allocations: 7.969 kB / 0.6271 GB, free: 11.33 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007342/0.636, allocations: 3.613 MB / 0.6306 GB, free: 7.629 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.225e-06/0.6361, allocations: 4 kB / 0.6306 GB, free: 7.625 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.6371, allocations: 212 kB / 0.6308 GB, free: 7.418 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001575/0.6387, allocations: 493.3 kB / 0.6313 GB, free: 6.93 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001062/0.6388, allocations: 12 kB / 0.6313 GB, free: 6.918 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008303/0.6471, allocations: 5.989 MB / 0.6372 GB, free: 0.6875 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.436e-06/0.6471, allocations: 4 kB / 0.6372 GB, free: 0.6836 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005038/0.6522, allocations: 2.942 MB / 0.64 GB, free: 13.62 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006123/0.6528, allocations: 283.8 kB / 0.6403 GB, free: 13.33 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001575/0.653, allocations: 4 kB / 0.6403 GB, free: 13.32 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000869/0.6539, allocations: 59.92 kB / 0.6404 GB, free: 13.27 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002116/0.6541, allocations: 101.1 kB / 0.6405 GB, free: 13.17 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.963e-05/0.6542, allocations: 40 kB / 0.6405 GB, free: 13.13 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0004356/0.6546, allocations: 330.9 kB / 0.6408 GB, free: 12.8 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001727/0.6564, allocations: 0.5429 MB / 0.6414 GB, free: 12.26 MB / 458.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 (102): * Single equations (assignments): 97 * 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.0002493/0.6566, allocations: 127 kB / 0.6415 GB, free: 12.13 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004402/0.661, allocations: 2.53 MB / 0.6439 GB, free: 9.582 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.6611, allocations: 0 / 0.6439 GB, free: 9.582 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001858/0.6629, allocations: 1.103 MB / 0.645 GB, free: 8.457 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009361/0.6639, allocations: 131 kB / 0.6451 GB, free: 8.332 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004731/0.6686, allocations: 2.179 MB / 0.6473 GB, free: 6.09 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001176/0.6698, allocations: 1.3 MB / 0.6485 GB, free: 4.762 MB / 458.7 MB Notification: Performance of SimCode: time 6.01e-07/0.6698, allocations: 0 / 0.6485 GB, free: 4.762 MB / 458.7 MB Notification: Performance of Templates: time 0.2107/0.8806, allocations: 24.66 MB / 0.6726 GB, free: 176.8 MB / 474.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.makefile (rm -f PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.sim & ./PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1)