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.0008711/0.0008711, allocations: 89.27 kB / 16.31 MB, free: 6.461 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.0008814/0.0008814, allocations: 185 kB / 17.21 MB, free: 6.328 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.332/1.332, allocations: 205.4 MB / 223.4 MB, free: 5.801 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3078/0.3078, allocations: 38.05 MB / 309.7 MB, free: 8.836 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.0005252/0.0005253, allocations: 12 kB / 376.5 MB, free: 15.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.106, allocations: 56.33 MB / 432.8 MB, free: 6.84 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.008983/0.115, allocations: 8.82 MB / 441.7 MB, free: 13.99 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006834/0.1219, allocations: 5.195 MB / 446.9 MB, free: 8.773 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009233/0.1228, allocations: 35.81 kB / 446.9 MB, free: 8.738 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006433/0.1235, allocations: 198.4 kB / 447.1 MB, free: 8.543 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002617/0.1261, allocations: 1.027 MB / 448.1 MB, free: 7.512 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001523/0.1277, allocations: 454.8 kB / 448.6 MB, free: 7.066 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003465/0.1311, allocations: 2.471 MB / 451 MB, free: 4.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003176/0.1343, allocations: 1.409 MB / 452.4 MB, free: 3.129 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001441/0.1358, allocations: 0.6609 MB / 453.1 MB, free: 2.465 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001372/0.1372, allocations: 0.8602 MB / 454 MB, free: 1.602 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002795/0.1375, allocations: 48 kB / 454 MB, free: 1.555 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001978/0.1395, allocations: 0.8454 MB / 454.9 MB, free: 0.707 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006054/0.1401, allocations: 0.5181 MB / 455.4 MB, free: 192 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1944/0.3345, allocations: 246.5 kB / 455.6 MB, free: 34.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002504/0.337, allocations: 1.437 MB / 457 MB, free: 34.63 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.3371, allocations: 0 / 457 MB, free: 34.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.3371, allocations: 5.469 kB / 457.1 MB, free: 34.63 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.282e-05/0.3371, allocations: 0 / 457.1 MB, free: 34.63 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.002325/0.3395, allocations: 1.458 MB / 458.5 MB, free: 33.8 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.3395, allocations: 9.5 kB / 458.5 MB, free: 33.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003325/0.3428, allocations: 488.8 kB / 459 MB, free: 33.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001077/0.3439, allocations: 0.6486 MB / 459.6 MB, free: 33.44 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.624e-05/0.344, allocations: 89.55 kB / 459.7 MB, free: 33.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002449/0.3443, allocations: 114.5 kB / 459.8 MB, free: 33.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002468/0.3468, allocations: 1.607 MB / 461.5 MB, free: 33.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.518e-05/0.3468, allocations: 6.75 kB / 461.5 MB, free: 33.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001164/0.347, allocations: 45.41 kB / 461.5 MB, free: 33.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001147/0.3471, allocations: 92.56 kB / 461.6 MB, free: 33.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002577/0.3497, allocations: 1.652 MB / 463.2 MB, free: 33.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006785/0.3565, allocations: 4.984 MB / 468.2 MB, free: 31.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001822/0.3583, allocations: 1.355 MB / 469.6 MB, free: 31.88 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001074/0.3594, allocations: 0.8083 MB / 470.4 MB, free: 31.85 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.883e-05/0.3595, allocations: 21.94 kB / 470.4 MB, free: 31.85 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001183/0.3607, allocations: 0.8522 MB / 471.3 MB, free: 31.76 MB / 382.1 MB Notification: Performance of pre-optimization done (n=126): time 3.747e-06/0.3607, allocations: 0 / 471.3 MB, free: 31.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01221/0.373, allocations: 6.38 MB / 477.6 MB, free: 30.67 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.462e-05/0.3731, allocations: 124.8 kB / 477.8 MB, free: 30.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005736/0.3736, allocations: 0.5661 MB / 478.3 MB, free: 30.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001188/0.3738, allocations: 48.89 kB / 478.4 MB, free: 30.38 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003557/0.3741, allocations: 485 kB / 478.9 MB, free: 30.14 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003689/0.3745, allocations: 467.1 kB / 479.3 MB, free: 29.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.066e-05/0.3746, allocations: 25.53 kB / 479.3 MB, free: 29.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.3747, allocations: 402.5 kB / 479.7 MB, free: 29.53 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00103/0.3758, allocations: 0.6251 MB / 480.4 MB, free: 29.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001038/0.3768, allocations: 0.7864 MB / 481.1 MB, free: 29.39 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001081/0.3779, allocations: 0.7436 MB / 481.9 MB, free: 29.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.3779, allocations: 0 / 481.9 MB, free: 29.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.003448/0.3814, allocations: 2.118 MB / 484 MB, free: 29.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000102/0.3815, allocations: 213.3 kB / 484.2 MB, free: 28.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.3815, allocations: 3.281 kB / 484.2 MB, free: 28.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001153/0.3827, allocations: 470.6 kB / 484.7 MB, free: 28.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001072/0.3838, allocations: 262.7 kB / 484.9 MB, free: 28.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007729/0.3915, allocations: 6.274 MB / 491.2 MB, free: 24.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/0.3926, allocations: 91.48 kB / 491.3 MB, free: 24.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/0.3927, allocations: 47 kB / 491.3 MB, free: 24.51 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.859e-06/0.3927, allocations: 6.531 kB / 491.3 MB, free: 24.51 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003337/0.3961, allocations: 1.922 MB / 493.3 MB, free: 23.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.3961, allocations: 4.828 kB / 493.3 MB, free: 23.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001092/0.3972, allocations: 441.5 kB / 493.7 MB, free: 23.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001096/0.3983, allocations: 265.7 kB / 494 MB, free: 23.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006599/0.4049, allocations: 6.025 MB / 500 MB, free: 19.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001052/0.406, allocations: 79.75 kB / 0.4883 GB, free: 19.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001419/0.4062, allocations: 61.03 kB / 0.4884 GB, free: 19.53 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.000744/0.4069, allocations: 427.5 kB / 0.4888 GB, free: 19.24 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001704/0.4071, allocations: 99.91 kB / 0.4889 GB, free: 19.19 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00435/0.4115, allocations: 2.187 MB / 0.491 GB, free: 18.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.875e-05/0.4115, allocations: 15.81 kB / 0.4911 GB, free: 18.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.4115, allocations: 7.578 kB / 0.4911 GB, free: 18.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.205e-05/0.4115, allocations: 13 kB / 0.4911 GB, free: 18.38 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.007508/0.4191, allocations: 3.964 MB / 0.4949 GB, free: 16.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.205e-05/0.4191, allocations: 2.531 kB / 0.495 GB, free: 16.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009403/0.4201, allocations: 218.7 kB / 0.4952 GB, free: 16.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001613/0.4217, allocations: 0.507 MB / 0.4957 GB, free: 16.58 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001545/0.4219, allocations: 36.02 kB / 0.4957 GB, free: 16.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007912/0.4298, allocations: 6.521 MB / 0.5021 GB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.927e-06/0.4298, allocations: 14.08 kB / 0.5021 GB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005046/0.4349, allocations: 3.111 MB / 0.5051 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004856/0.4354, allocations: 286.7 kB / 0.5054 GB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001287/0.4355, allocations: 30.92 kB / 0.5054 GB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006363/0.4362, allocations: 77.92 kB / 0.5055 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002497/0.4364, allocations: 131.2 kB / 0.5056 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.709e-05/0.4365, allocations: 45.81 kB / 0.5057 GB, free: 10.62 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004042/0.437, allocations: 403.8 kB / 0.506 GB, free: 10.44 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.437, allocations: 0 / 0.506 GB, free: 10.44 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001714/0.4387, allocations: 0.6597 MB / 0.5067 GB, free: 10.37 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.000196/0.4389, allocations: 139 kB / 0.5068 GB, free: 10.26 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00432/0.4432, allocations: 3.344 MB / 0.5101 GB, free: 8.762 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.4432, allocations: 0 / 0.5101 GB, free: 8.762 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00189/0.4451, allocations: 1.327 MB / 0.5114 GB, free: 8.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009606/0.4461, allocations: 179.8 kB / 0.5115 GB, free: 8.078 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003812/0.4499, allocations: 3.166 MB / 0.5146 GB, free: 5.402 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007497/0.4507, allocations: 1.257 MB / 0.5159 GB, free: 4.305 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009147/0.4516, allocations: 308.1 kB / 0.5162 GB, free: 4.086 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002609/0.4519, allocations: 81.7 kB / 0.5162 GB, free: 4.016 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4519, allocations: 0 / 0.5162 GB, free: 4.016 MB / 382.1 MB Notification: Performance of Templates: time 0.03058/0.4825, allocations: 20.17 MB / 0.5359 GB, free: 0.5586 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: