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.0009622/0.0009622, allocations: 187.8 kB / 8.353 MB, free: 0.707 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.348/1.348, allocations: 194.3 MB / 203.1 MB, free: 9.316 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001952/0.001952, allocations: 116.8 kB / 248.1 MB, free: 6.34 MB / 203.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1639/0.1639, allocations: 37.92 MB / 330.9 MB, free: 7.32 MB / 283.1 MB Notification: Performance of FrontEnd - loaded program: time 1.964e-05/1.95e-05, allocations: 4 kB / 390.4 MB, free: 78.24 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1095, allocations: 53.24 MB / 443.6 MB, free: 25.11 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4111/0.5206, allocations: 97.47 MB / 0.5284 GB, free: 9.066 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002545/0.5209, allocations: 88.39 kB / 0.5285 GB, free: 9.055 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1635/0.6844, allocations: 66.21 MB / 0.5931 GB, free: 15.9 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.6844, allocations: 4 kB / 0.5931 GB, free: 15.89 MB / 411.1 MB Notification: Performance of Transformations before backend: time 7.767e-05/0.6845, allocations: 24 kB / 0.5932 GB, free: 15.87 MB / 411.1 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.003722/0.6882, allocations: 1.367 MB / 0.5945 GB, free: 14.45 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.6883, allocations: 12.03 kB / 0.5945 GB, free: 14.43 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004268/0.6926, allocations: 485.9 kB / 0.595 GB, free: 13.96 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001556/0.6942, allocations: 0.6718 MB / 0.5956 GB, free: 13.24 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.879e-05/0.6942, allocations: 35.94 kB / 0.5957 GB, free: 13.2 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003213/0.6946, allocations: 67.91 kB / 0.5957 GB, free: 13.14 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00223/0.6968, allocations: 1.144 MB / 0.5968 GB, free: 11.99 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002597/0.6994, allocations: 1.336 MB / 0.5981 GB, free: 10.6 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.13e-05/0.6995, allocations: 4 kB / 0.5981 GB, free: 10.6 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001111/0.6996, allocations: 0 / 0.5981 GB, free: 10.6 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003069/0.6999, allocations: 114.1 kB / 0.5983 GB, free: 10.48 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007485/0.7074, allocations: 4.519 MB / 0.6027 GB, free: 5.859 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001629/0.709, allocations: 1.164 MB / 0.6038 GB, free: 4.676 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009535/0.71, allocations: 0.6896 MB / 0.6045 GB, free: 3.98 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.412e-05/0.7101, allocations: 25.28 kB / 0.6045 GB, free: 3.957 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001118/0.7112, allocations: 0.7306 MB / 0.6052 GB, free: 3.203 MB / 411.1 MB Notification: Performance of pre-optimization done (n=125): time 2.555e-06/0.7113, allocations: 4 kB / 0.6052 GB, free: 3.199 MB / 411.1 MB Notification: Performance of matching and sorting (n=136): time 0.008249/0.7195, allocations: 4.446 MB / 0.6096 GB, free: 14.66 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.06e-05/0.7196, allocations: 124.1 kB / 0.6097 GB, free: 14.52 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005732/0.7202, allocations: 426.2 kB / 0.6101 GB, free: 14.09 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 8.173e-05/0.7203, allocations: 29.69 kB / 0.6101 GB, free: 14.05 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003935/0.7207, allocations: 468.2 kB / 0.6106 GB, free: 13.59 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005114/0.7212, allocations: 445.3 kB / 0.611 GB, free: 13.15 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.132e-05/0.7213, allocations: 0 / 0.611 GB, free: 13.15 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.7215, allocations: 402.7 kB / 0.6114 GB, free: 12.75 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007458/0.7222, allocations: 0.5102 MB / 0.6119 GB, free: 12.23 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008928/0.7231, allocations: 0.662 MB / 0.6125 GB, free: 11.54 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008781/0.724, allocations: 0.6075 MB / 0.6131 GB, free: 10.93 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.724, allocations: 0 / 0.6131 GB, free: 10.93 MB / 427.1 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.003873/0.7279, allocations: 1.938 MB / 0.615 GB, free: 8.984 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004372/0.7284, allocations: 0.998 MB / 0.616 GB, free: 7.91 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.7284, allocations: 4 kB / 0.616 GB, free: 7.906 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001927/0.7303, allocations: 0.6397 MB / 0.6166 GB, free: 7.258 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.7314, allocations: 227.7 kB / 0.6168 GB, free: 7.035 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002069/0.7335, allocations: 1.605 MB / 0.6184 GB, free: 5.402 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001095/0.7346, allocations: 79.92 kB / 0.6185 GB, free: 5.324 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001078/0.7347, allocations: 43.98 kB / 0.6185 GB, free: 5.281 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.7347, allocations: 4 kB / 0.6185 GB, free: 5.277 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003486/0.7382, allocations: 1.789 MB / 0.6203 GB, free: 3.484 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.7383, allocations: 3.984 kB / 0.6203 GB, free: 3.48 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001872/0.7401, allocations: 0.628 MB / 0.6209 GB, free: 2.848 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009661/0.7411, allocations: 223.6 kB / 0.6211 GB, free: 2.629 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008981/0.7501, allocations: 5.315 MB / 0.6263 GB, free: 13.15 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001499/0.7517, allocations: 79.92 kB / 0.6264 GB, free: 13.07 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003308/0.752, allocations: 47.92 kB / 0.6264 GB, free: 13.03 MB / 443.1 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.0005782/0.7526, allocations: 120 kB / 0.6265 GB, free: 12.91 MB / 443.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003398/0.753, allocations: 90.97 kB / 0.6266 GB, free: 12.82 MB / 443.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005445/0.7584, allocations: 1.895 MB / 0.6284 GB, free: 10.91 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.225e-05/0.7585, allocations: 12 kB / 0.6285 GB, free: 10.89 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.7585, allocations: 0 / 0.6285 GB, free: 10.89 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.711e-05/0.7586, allocations: 15.97 kB / 0.6285 GB, free: 10.88 MB / 443.1 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.009137/0.7677, allocations: 3.51 MB / 0.6319 GB, free: 7.262 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-05/0.7677, allocations: 0 / 0.6319 GB, free: 7.262 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001325/0.7691, allocations: 224 kB / 0.6321 GB, free: 7.043 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001978/0.7711, allocations: 481.3 kB / 0.6326 GB, free: 6.566 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001444/0.7712, allocations: 15.98 kB / 0.6326 GB, free: 6.551 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01194/0.7832, allocations: 6.328 MB / 0.6388 GB, free: 15.96 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.947e-06/0.7832, allocations: 3.938 kB / 0.6388 GB, free: 15.95 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007182/0.7904, allocations: 2.869 MB / 0.6416 GB, free: 12.98 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008387/0.7913, allocations: 279.9 kB / 0.6418 GB, free: 12.68 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002262/0.7915, allocations: 4 kB / 0.6418 GB, free: 12.68 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000902/0.7925, allocations: 79.89 kB / 0.6419 GB, free: 12.6 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003157/0.7928, allocations: 117.1 kB / 0.642 GB, free: 12.48 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.509e-05/0.7929, allocations: 39.94 kB / 0.6421 GB, free: 12.45 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.0004901/0.7934, allocations: 330.9 kB / 0.6424 GB, free: 12.12 MB / 459.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.7934, allocations: 0 / 0.6424 GB, free: 12.12 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.002424/0.7958, allocations: 0.5624 MB / 0.6429 GB, free: 11.56 MB / 459.1 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.0003778/0.7962, allocations: 135 kB / 0.6431 GB, free: 11.42 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.004686/0.8009, allocations: 2.622 MB / 0.6456 GB, free: 8.762 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.801, allocations: 4 kB / 0.6456 GB, free: 8.758 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002058/0.803, allocations: 1.169 MB / 0.6468 GB, free: 7.562 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009398/0.804, allocations: 119.5 kB / 0.6469 GB, free: 7.449 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004356/0.8084, allocations: 2.075 MB / 0.6489 GB, free: 5.316 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001256/0.8096, allocations: 1.264 MB / 0.6501 GB, free: 4.02 MB / 459.1 MB Notification: Performance of simCode: alias equations: time 0.001158/0.8108, allocations: 322.5 kB / 0.6505 GB, free: 3.699 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002606/0.8111, allocations: 67.42 kB / 0.6505 GB, free: 3.637 MB / 459.1 MB Notification: Performance of SimCode: time 9.42e-07/0.8111, allocations: 0 / 0.6505 GB, free: 3.637 MB / 459.1 MB Notification: Performance of Templates: time 0.2709/1.082, allocations: 20.05 MB / 0.6701 GB, free: 129 MB / 475.1 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)