Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled") translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001089/0.001089, allocations: 174.6 kB / 15.77 MB, free: 6.324 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.73/1.73, allocations: 205.4 MB / 221.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008106/0.0008107, allocations: 86.3 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1821/0.1821, allocations: 38.06 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003626/0.0003626, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1072, allocations: 56.33 MB / 479.1 MB, free: 2.035 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.009172/0.1164, allocations: 8.827 MB / 487.9 MB, free: 9.176 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.007448/0.1239, allocations: 5.18 MB / 493.1 MB, free: 3.977 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001015/0.125, allocations: 35.81 kB / 493.1 MB, free: 3.941 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005264/0.1255, allocations: 194.5 kB / 493.3 MB, free: 3.75 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002971/0.1285, allocations: 1.031 MB / 494.3 MB, free: 2.715 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00145/0.13, allocations: 443 kB / 494.8 MB, free: 2.281 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002784/0.1328, allocations: 2.483 MB / 497.2 MB, free: 15.79 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002466/0.1353, allocations: 1.412 MB / 498.7 MB, free: 14.33 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001404/0.1367, allocations: 0.6687 MB / 499.3 MB, free: 13.66 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001071/0.1377, allocations: 0.8563 MB / 0.4885 GB, free: 12.8 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001414/0.1379, allocations: 52 kB / 0.4885 GB, free: 12.75 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001896/0.1398, allocations: 0.8415 MB / 0.4893 GB, free: 11.91 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004814/0.1403, allocations: 0.5181 MB / 0.4898 GB, free: 11.39 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002857/0.1406, allocations: 249 kB / 0.4901 GB, free: 11.14 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00171/0.1423, allocations: 1.442 MB / 0.4915 GB, free: 9.691 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.1423, allocations: 4 kB / 0.4915 GB, free: 9.688 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.1423, allocations: 0 / 0.4915 GB, free: 9.688 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.529e-05/0.1424, allocations: 0 / 0.4915 GB, free: 9.688 MB / 346.7 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.002548/0.1449, allocations: 1.447 MB / 0.4929 GB, free: 8.18 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.145, allocations: 12.03 kB / 0.4929 GB, free: 8.168 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003274/0.1482, allocations: 485.7 kB / 0.4934 GB, free: 7.691 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001198/0.1495, allocations: 0.6541 MB / 0.494 GB, free: 6.996 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.393e-05/0.1495, allocations: 82.16 kB / 0.4941 GB, free: 6.914 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000191/0.1497, allocations: 119.9 kB / 0.4942 GB, free: 6.797 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002753/0.1525, allocations: 1.6 MB / 0.4958 GB, free: 5.137 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.983e-05/0.1526, allocations: 11.95 kB / 0.4958 GB, free: 5.125 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001141/0.1527, allocations: 43.97 kB / 0.4958 GB, free: 5.082 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001185/0.1528, allocations: 94.22 kB / 0.4959 GB, free: 4.988 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002865/0.1557, allocations: 1.656 MB / 0.4975 GB, free: 3.324 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008016/0.1637, allocations: 4.984 MB / 0.5024 GB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002263/0.166, allocations: 1.358 MB / 0.5037 GB, free: 12.83 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001246/0.1673, allocations: 0.8093 MB / 0.5045 GB, free: 12.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.924e-05/0.1674, allocations: 16.98 kB / 0.5045 GB, free: 12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001394/0.1688, allocations: 0.8451 MB / 0.5053 GB, free: 11.14 MB / 362.7 MB Notification: Performance of pre-optimization done (n=126): time 3.256e-06/0.1688, allocations: 0 / 0.5053 GB, free: 11.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=137): time 0.01397/0.1828, allocations: 6.4 MB / 0.5116 GB, free: 4.617 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.888e-05/0.1829, allocations: 120.1 kB / 0.5117 GB, free: 4.473 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007139/0.1836, allocations: 0.5666 MB / 0.5123 GB, free: 3.898 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.581e-05/0.1837, allocations: 49.7 kB / 0.5123 GB, free: 3.844 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003975/0.1841, allocations: 484.2 kB / 0.5128 GB, free: 3.363 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003909/0.1845, allocations: 461.2 kB / 0.5132 GB, free: 2.906 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.66e-05/0.1846, allocations: 28 kB / 0.5132 GB, free: 2.879 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002091/0.1848, allocations: 410.8 kB / 0.5136 GB, free: 2.469 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001132/0.1859, allocations: 0.6194 MB / 0.5142 GB, free: 1.852 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001234/0.1872, allocations: 0.7832 MB / 0.515 GB, free: 1.023 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001277/0.1885, allocations: 0.742 MB / 0.5157 GB, free: 284 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.1885, allocations: 8 kB / 0.5157 GB, free: 276 kB / 362.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.193/0.3815, allocations: 2.117 MB / 0.5178 GB, free: 51.65 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.3817, allocations: 206.6 kB / 0.518 GB, free: 51.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.3817, allocations: 6.656 kB / 0.518 GB, free: 51.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001406/0.3831, allocations: 468.6 kB / 0.5185 GB, free: 51.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/0.3842, allocations: 263.8 kB / 0.5187 GB, free: 51.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007298/0.3915, allocations: 6.268 MB / 0.5248 GB, free: 47.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009027/0.3924, allocations: 89.77 kB / 0.5249 GB, free: 47.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.581e-05/0.3926, allocations: 52.55 kB / 0.525 GB, free: 47.31 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.524e-06/0.3926, allocations: 4.062 kB / 0.525 GB, free: 47.31 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003397/0.396, allocations: 1.92 MB / 0.5268 GB, free: 46.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.396, allocations: 3.359 kB / 0.5268 GB, free: 46.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001316/0.3973, allocations: 434.2 kB / 0.5273 GB, free: 46.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/0.3984, allocations: 264 kB / 0.5275 GB, free: 46.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006557/0.4049, allocations: 6.041 MB / 0.5334 GB, free: 42.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008202/0.4058, allocations: 89.62 kB / 0.5335 GB, free: 42.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.925e-05/0.4059, allocations: 51.05 kB / 0.5335 GB, free: 42.29 MB / 362.7 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.0005374/0.4064, allocations: 430.7 kB / 0.534 GB, free: 41.98 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001266/0.4066, allocations: 94.47 kB / 0.534 GB, free: 41.94 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003825/0.4104, allocations: 2.187 MB / 0.5362 GB, free: 41.1 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/0.4104, allocations: 15.47 kB / 0.5362 GB, free: 41.1 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.4104, allocations: 5.312 kB / 0.5362 GB, free: 41.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/0.4105, allocations: 6.328 kB / 0.5362 GB, free: 41.09 MB / 362.7 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.005673/0.4161, allocations: 3.975 MB / 0.5401 GB, free: 39.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.553e-06/0.4162, allocations: 3.656 kB / 0.5401 GB, free: 39.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008084/0.417, allocations: 221.9 kB / 0.5403 GB, free: 39.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00144/0.4184, allocations: 0.5053 MB / 0.5408 GB, free: 38.78 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.213e-05/0.4185, allocations: 35.48 kB / 0.5408 GB, free: 38.76 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006492/0.425, allocations: 6.525 MB / 0.5472 GB, free: 32.88 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.425, allocations: 8.234 kB / 0.5472 GB, free: 32.87 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004435/0.4295, allocations: 3.109 MB / 0.5502 GB, free: 29.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004058/0.4299, allocations: 285.6 kB / 0.5505 GB, free: 29.41 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001163/0.43, allocations: 31.98 kB / 0.5505 GB, free: 29.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006888/0.4307, allocations: 79.88 kB / 0.5506 GB, free: 29.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001961/0.4309, allocations: 121.1 kB / 0.5507 GB, free: 29.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.886e-05/0.431, allocations: 56.44 kB / 0.5508 GB, free: 29.12 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003558/0.4314, allocations: 391.1 kB / 0.5512 GB, free: 28.74 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4314, allocations: 3.172 kB / 0.5512 GB, free: 28.74 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001597/0.433, allocations: 0.6602 MB / 0.5518 GB, free: 28.08 MB / 362.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) * 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.0001629/0.4332, allocations: 148.5 kB / 0.552 GB, free: 27.93 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00411/0.4373, allocations: 3.349 MB / 0.5552 GB, free: 24.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4373, allocations: 4.062 kB / 0.5552 GB, free: 24.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001682/0.439, allocations: 1.307 MB / 0.5565 GB, free: 23.17 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008691/0.4399, allocations: 196.1 kB / 0.5567 GB, free: 22.98 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003467/0.4433, allocations: 3.258 MB / 0.5599 GB, free: 19.66 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005818/0.4439, allocations: 1.26 MB / 0.5611 GB, free: 18.38 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003009/0.4443, allocations: 91.39 kB / 0.5612 GB, free: 18.29 MB / 362.7 MB Notification: Performance of SimCode: time 5.21e-07/0.4443, allocations: 0 / 0.5612 GB, free: 18.29 MB / 362.7 MB Notification: Performance of Templates: time 0.02108/0.4654, allocations: 23.32 MB / 0.584 GB, free: 10.9 MB / 378.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.sim & ./PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1)