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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008879/0.0008879, allocations: 95.67 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009721/0.0009722, allocations: 184.3 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.436/1.436, allocations: 205.4 MB / 223.4 MB, free: 5.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3182/0.3182, allocations: 38.06 MB / 309.7 MB, free: 9.02 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00052/0.00052, allocations: 16 kB / 376.5 MB, free: 15.28 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1264, allocations: 56.34 MB / 432.8 MB, free: 6.832 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.008961/0.1354, allocations: 8.445 MB / 441.3 MB, free: 14.36 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007751/0.1432, allocations: 5.036 MB / 446.3 MB, free: 9.301 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009809/0.1442, allocations: 35.81 kB / 446.3 MB, free: 9.266 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005113/0.1447, allocations: 198.7 kB / 446.5 MB, free: 9.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002621/0.1473, allocations: 0.8292 MB / 447.4 MB, free: 8.238 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001431/0.1488, allocations: 466.9 kB / 447.8 MB, free: 7.781 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001193/0.15, allocations: 0.9603 MB / 448.8 MB, free: 6.82 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002157/0.1521, allocations: 1.401 MB / 450.2 MB, free: 5.367 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007833/0.1529, allocations: 0.5564 MB / 450.7 MB, free: 4.809 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005728/0.1535, allocations: 0.5136 MB / 451.3 MB, free: 4.293 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001058/0.1536, allocations: 52 kB / 451.3 MB, free: 4.242 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00181/0.1555, allocations: 0.7991 MB / 452.1 MB, free: 3.441 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000386/0.1559, allocations: 478.8 kB / 452.6 MB, free: 2.973 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002122/0.1561, allocations: 241.1 kB / 452.8 MB, free: 2.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001487/0.1576, allocations: 1.446 MB / 454.3 MB, free: 1.281 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.1576, allocations: 0 / 454.3 MB, free: 1.281 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1576, allocations: 0 / 454.3 MB, free: 1.281 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.1576, allocations: 0 / 454.3 MB, free: 1.281 MB / 382.1 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.2699/0.4275, allocations: 1.455 MB / 455.7 MB, free: 50.56 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.35e-05/0.4276, allocations: 8.719 kB / 455.7 MB, free: 50.56 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004873/0.4325, allocations: 0.5183 MB / 456.2 MB, free: 50.49 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001632/0.4342, allocations: 0.6484 MB / 456.9 MB, free: 50.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.851e-05/0.4342, allocations: 84.38 kB / 457 MB, free: 50.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002011/0.4344, allocations: 115.1 kB / 457.1 MB, free: 50.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002613/0.4371, allocations: 1.598 MB / 458.7 MB, free: 50.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.606e-05/0.4371, allocations: 10.94 kB / 458.7 MB, free: 50.03 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001251/0.4373, allocations: 46.84 kB / 458.7 MB, free: 50.03 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001266/0.4374, allocations: 90.44 kB / 458.8 MB, free: 50.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002628/0.44, allocations: 1.649 MB / 460.5 MB, free: 50 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007645/0.4477, allocations: 4.985 MB / 465.5 MB, free: 48.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001897/0.4496, allocations: 1.357 MB / 466.8 MB, free: 47.76 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.279e-05/0.4497, allocations: 18.88 kB / 466.8 MB, free: 47.76 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001179/0.4509, allocations: 0.8475 MB / 467.7 MB, free: 47.45 MB / 382.1 MB Notification: Performance of pre-optimization done (n=126): time 3.727e-06/0.4509, allocations: 0 / 467.7 MB, free: 47.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01252/0.4634, allocations: 6.392 MB / 474.1 MB, free: 44.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.035e-05/0.4635, allocations: 119.7 kB / 474.2 MB, free: 44.64 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006601/0.4642, allocations: 0.5606 MB / 474.7 MB, free: 44.39 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.684e-05/0.4643, allocations: 51.67 kB / 474.8 MB, free: 44.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003262/0.4646, allocations: 486 kB / 475.3 MB, free: 43.97 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003111/0.465, allocations: 465 kB / 475.7 MB, free: 43.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.693e-05/0.465, allocations: 26.34 kB / 475.8 MB, free: 43.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.4652, allocations: 403 kB / 476.1 MB, free: 43.24 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009573/0.4661, allocations: 0.6288 MB / 476.8 MB, free: 43.04 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001437/0.4676, allocations: 0.7768 MB / 477.6 MB, free: 42.69 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001484/0.4691, allocations: 0.7545 MB / 478.3 MB, free: 42.37 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.728e-06/0.4691, allocations: 3.438 kB / 478.3 MB, free: 42.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.004377/0.4735, allocations: 2.108 MB / 480.4 MB, free: 41.6 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003407/0.4739, allocations: 1.171 MB / 481.6 MB, free: 40.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/0.4739, allocations: 2.719 kB / 481.6 MB, free: 40.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001306/0.4752, allocations: 478.4 kB / 482.1 MB, free: 40.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001045/0.4762, allocations: 263.5 kB / 482.3 MB, free: 40.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007421/0.4837, allocations: 6.42 MB / 488.7 MB, free: 35.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00108/0.4848, allocations: 92.3 kB / 488.8 MB, free: 35.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001287/0.4849, allocations: 51.8 kB / 488.9 MB, free: 35.91 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.4849, allocations: 4.281 kB / 488.9 MB, free: 35.91 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003868/0.4888, allocations: 1.918 MB / 490.8 MB, free: 35.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.4888, allocations: 6.547 kB / 490.8 MB, free: 35.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001184/0.49, allocations: 433.4 kB / 491.2 MB, free: 35.08 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001101/0.4912, allocations: 257.9 kB / 491.5 MB, free: 35.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007495/0.4987, allocations: 6.176 MB / 497.7 MB, free: 30.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001245/0.4999, allocations: 78.77 kB / 497.7 MB, free: 30.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001315/0.5001, allocations: 57.38 kB / 497.8 MB, free: 30.79 MB / 382.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 119 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,2 29} Notification: Performance of prepare postOptimizeDAE: time 0.0008987/0.501, allocations: 427.6 kB / 498.2 MB, free: 30.49 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001813/0.5012, allocations: 94.84 kB / 498.3 MB, free: 30.44 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004464/0.5057, allocations: 2.186 MB / 0.4888 GB, free: 29.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.889e-05/0.5057, allocations: 14.91 kB / 0.4888 GB, free: 29.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.5057, allocations: 1.031 kB / 0.4888 GB, free: 29.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.798e-05/0.5057, allocations: 8.672 kB / 0.4888 GB, free: 29.61 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.008347/0.5141, allocations: 3.975 MB / 0.4927 GB, free: 27.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.095e-05/0.5141, allocations: 3.156 kB / 0.4927 GB, free: 27.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009804/0.5151, allocations: 213.5 kB / 0.4929 GB, free: 27.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00181/0.5169, allocations: 0.5079 MB / 0.4934 GB, free: 27.75 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001156/0.5171, allocations: 35.73 kB / 0.4934 GB, free: 27.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01052/0.5276, allocations: 6.699 MB / 0.4999 GB, free: 23.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.436e-06/0.5277, allocations: 7.344 kB / 0.4999 GB, free: 23.22 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006579/0.5343, allocations: 3.226 MB / 0.5031 GB, free: 21.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009797/0.5353, allocations: 285 kB / 0.5034 GB, free: 21.56 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001619/0.5355, allocations: 35.72 kB / 0.5034 GB, free: 21.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007978/0.5363, allocations: 79.73 kB / 0.5035 GB, free: 21.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004573/0.5367, allocations: 122.2 kB / 0.5036 GB, free: 21.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001117/0.5369, allocations: 47.7 kB / 0.5036 GB, free: 21.49 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006589/0.5375, allocations: 400.5 kB / 0.504 GB, free: 21.31 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5375, allocations: 0 / 0.504 GB, free: 21.31 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002706/0.5403, allocations: 0.6593 MB / 0.5047 GB, free: 21.24 MB / 382.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) * Number of clocked states: 0 () * 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.000226/0.5405, allocations: 137 kB / 0.5048 GB, free: 21.12 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005638/0.5461, allocations: 3.35 MB / 0.5081 GB, free: 19.21 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.311e-06/0.5462, allocations: 0 / 0.5081 GB, free: 19.21 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002176/0.5483, allocations: 1.324 MB / 0.5094 GB, free: 18.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/0.5494, allocations: 154.7 kB / 0.5095 GB, free: 17.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004589/0.554, allocations: 3.182 MB / 0.5126 GB, free: 15 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008001/0.5548, allocations: 1.283 MB / 0.5139 GB, free: 13.74 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009179/0.5557, allocations: 303 kB / 0.5142 GB, free: 13.44 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002626/0.556, allocations: 83.39 kB / 0.5142 GB, free: 13.36 MB / 382.1 MB Notification: Performance of SimCode: time 2.715e-06/0.556, allocations: 0 / 0.5142 GB, free: 13.36 MB / 382.1 MB Notification: Performance of Templates: time 0.03158/0.5876, allocations: 20.13 MB / 0.5339 GB, free: 9.246 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: