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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001571/0.001571, allocations: 182 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.986/1.986, allocations: 194.3 MB / 208.4 MB, free: 6.699 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.002264/0.002264, allocations: 122.2 kB / 253.5 MB, free: 9.566 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.2011/0.2011, allocations: 37.9 MB / 336.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.013e-05/4.015e-05, allocations: 0 / 397.5 MB, free: 1.039 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3117/0.3118, allocations: 53.22 MB / 450.8 MB, free: 13.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3964/0.7083, allocations: 98.14 MB / 0.536 GB, free: 32.71 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003061/0.7086, allocations: 87.36 kB / 0.5361 GB, free: 32.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1442/0.8528, allocations: 66.53 MB / 0.6011 GB, free: 13.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.8529, allocations: 0 / 0.6011 GB, free: 13.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.77e-05/0.8529, allocations: 27.25 kB / 0.6011 GB, free: 13.02 MB / 378.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.002529/0.8555, allocations: 1.372 MB / 0.6024 GB, free: 11.99 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.8555, allocations: 11.59 kB / 0.6025 GB, free: 11.99 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003419/0.859, allocations: 490.6 kB / 0.6029 GB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/0.86, allocations: 0.6641 MB / 0.6036 GB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.41e-05/0.8601, allocations: 92.55 kB / 0.6037 GB, free: 11.21 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001575/0.8602, allocations: 113.1 kB / 0.6038 GB, free: 11.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001994/0.8622, allocations: 1.462 MB / 0.6052 GB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.275e-05/0.8623, allocations: 3.938 kB / 0.6052 GB, free: 10.33 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001085/0.8624, allocations: 55.28 kB / 0.6053 GB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002574/0.8627, allocations: 118.8 kB / 0.6054 GB, free: 10.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00196/0.8646, allocations: 1.451 MB / 0.6068 GB, free: 9.383 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006309/0.8709, allocations: 4.722 MB / 0.6114 GB, free: 4.535 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001474/0.8725, allocations: 1.221 MB / 0.6126 GB, free: 3.297 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008299/0.8733, allocations: 0.7278 MB / 0.6133 GB, free: 2.562 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.135e-05/0.8734, allocations: 20.97 kB / 0.6133 GB, free: 2.539 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009903/0.8744, allocations: 0.7594 MB / 0.6141 GB, free: 1.766 MB / 378.7 MB Notification: Performance of pre-optimization done (n=125): time 3.016e-06/0.8744, allocations: 4 kB / 0.6141 GB, free: 1.762 MB / 378.7 MB Notification: Performance of matching and sorting (n=136): time 0.008241/0.8827, allocations: 4.727 MB / 0.6187 GB, free: 12.93 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001249/0.8828, allocations: 116.2 kB / 0.6188 GB, free: 12.79 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007151/0.8835, allocations: 476.9 kB / 0.6192 GB, free: 12.32 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001108/0.8837, allocations: 53.64 kB / 0.6193 GB, free: 12.27 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004428/0.8841, allocations: 464.3 kB / 0.6197 GB, free: 11.8 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004292/0.8846, allocations: 461.3 kB / 0.6202 GB, free: 11.35 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.099e-05/0.8846, allocations: 28 kB / 0.6202 GB, free: 11.32 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002533/0.8849, allocations: 402.7 kB / 0.6206 GB, free: 10.92 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009273/0.8858, allocations: 0.5376 MB / 0.6211 GB, free: 10.38 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00104/0.8869, allocations: 0.6802 MB / 0.6218 GB, free: 9.668 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001104/0.888, allocations: 0.6664 MB / 0.6224 GB, free: 8.996 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.888, allocations: 4 kB / 0.6224 GB, free: 8.992 MB / 394.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.004195/0.8922, allocations: 2.076 MB / 0.6245 GB, free: 6.898 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004312/0.8927, allocations: 0.998 MB / 0.6254 GB, free: 5.816 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.8927, allocations: 7.984 kB / 0.6254 GB, free: 5.809 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002014/0.8947, allocations: 0.7061 MB / 0.6261 GB, free: 5.094 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001033/0.8957, allocations: 227.7 kB / 0.6264 GB, free: 4.871 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002151/0.8979, allocations: 1.558 MB / 0.6279 GB, free: 3.285 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001072/0.899, allocations: 99.94 kB / 0.628 GB, free: 3.188 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001014/0.8991, allocations: 43.98 kB / 0.628 GB, free: 3.145 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.8991, allocations: 4 kB / 0.628 GB, free: 3.141 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003911/0.903, allocations: 1.955 MB / 0.6299 GB, free: 1.176 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.9031, allocations: 4 kB / 0.6299 GB, free: 1.172 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001981/0.9051, allocations: 0.6944 MB / 0.6306 GB, free: 484 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009347/0.906, allocations: 223.6 kB / 0.6308 GB, free: 260 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008965/0.915, allocations: 5.615 MB / 0.6363 GB, free: 10.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001264/0.9163, allocations: 95.89 kB / 0.6364 GB, free: 10.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000117/0.9164, allocations: 47.98 kB / 0.6364 GB, free: 10.34 MB / 410.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.0003665/0.9168, allocations: 172.5 kB / 0.6366 GB, free: 10.16 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001673/0.917, allocations: 94.83 kB / 0.6367 GB, free: 10.07 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003934/0.9209, allocations: 2.02 MB / 0.6387 GB, free: 8.035 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.51e-05/0.9209, allocations: 12 kB / 0.6387 GB, free: 8.023 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.921, allocations: 4 kB / 0.6387 GB, free: 8.02 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.441e-05/0.921, allocations: 11.94 kB / 0.6387 GB, free: 8.008 MB / 410.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006528/0.9275, allocations: 3.795 MB / 0.6424 GB, free: 4.094 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.9275, allocations: 4 kB / 0.6424 GB, free: 4.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009419/0.9285, allocations: 211.7 kB / 0.6426 GB, free: 3.883 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001429/0.9299, allocations: 0.4898 MB / 0.6431 GB, free: 3.387 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.689e-05/0.93, allocations: 39.88 kB / 0.6431 GB, free: 3.348 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009047/0.9391, allocations: 6.509 MB / 0.6495 GB, free: 12.54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.244e-06/0.9391, allocations: 7.984 kB / 0.6495 GB, free: 12.53 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005694/0.9448, allocations: 2.986 MB / 0.6524 GB, free: 9.426 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009462/0.9459, allocations: 283.8 kB / 0.6527 GB, free: 9.129 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001477/0.946, allocations: 32 kB / 0.6527 GB, free: 9.098 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008349/0.9469, allocations: 91.89 kB / 0.6528 GB, free: 9.008 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003689/0.9473, allocations: 121.1 kB / 0.6529 GB, free: 8.891 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.315e-05/0.9474, allocations: 39.98 kB / 0.6529 GB, free: 8.852 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006815/0.948, allocations: 369.5 kB / 0.6533 GB, free: 8.492 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.9481, allocations: 3.938 kB / 0.6533 GB, free: 8.488 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002122/0.9502, allocations: 0.6444 MB / 0.6539 GB, free: 7.844 MB / 426.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.000286/0.9505, allocations: 151 kB / 0.6541 GB, free: 7.684 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004844/0.9553, allocations: 2.748 MB / 0.6568 GB, free: 4.902 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.9554, allocations: 0 / 0.6568 GB, free: 4.902 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002232/0.9576, allocations: 1.246 MB / 0.658 GB, free: 3.633 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/0.9587, allocations: 135.2 kB / 0.6581 GB, free: 3.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004391/0.9632, allocations: 2.15 MB / 0.6602 GB, free: 1.289 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001038/0.9642, allocations: 1.264 MB / 0.6614 GB, free: 16 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001071/0.9653, allocations: 334.6 kB / 0.6618 GB, free: 15.66 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002586/0.9656, allocations: 63.42 kB / 0.6618 GB, free: 15.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.132e-06/0.9656, allocations: 0 / 0.6618 GB, free: 15.6 MB / 442.7 MB Notification: Performance of Templates: time 0.03536/1.001, allocations: 21.15 MB / 0.6825 GB, free: 10.41 MB / 458.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)