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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001516/0.001516, allocations: 113.1 kB / 17.06 MB, free: 6 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.00181/0.00181, allocations: 200 kB / 18 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.18/0.18, allocations: 38.03 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 63.91 kB / 458.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3371/0.3385, allocations: 58.06 MB / 0.5041 GB, free: 8.156 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.01037/0.3489, allocations: 9.504 MB / 0.5134 GB, free: 1.473 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008023/0.3569, allocations: 5.402 MB / 0.5187 GB, free: 13.66 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00109/0.3581, allocations: 30.66 kB / 0.5187 GB, free: 13.66 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002845/0.3609, allocations: 1.125 MB / 0.5198 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003594/0.3645, allocations: 1.384 MB / 0.5211 GB, free: 12.22 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001627/0.3662, allocations: 0.6066 MB / 0.5217 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002286/0.3685, allocations: 2.027 MB / 0.5237 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001315/0.3698, allocations: 1.049 MB / 0.5247 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001259/0.3711, allocations: 0.8515 MB / 0.5256 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001071/0.3721, allocations: 0.9158 MB / 0.5265 GB, free: 9.707 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001507/0.3723, allocations: 114.6 kB / 0.5266 GB, free: 9.703 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002736/0.3751, allocations: 1.552 MB / 0.5281 GB, free: 9.086 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006007/0.3757, allocations: 0.5746 MB / 0.5286 GB, free: 8.879 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006996/0.3764, allocations: 0.6683 MB / 0.5293 GB, free: 8.469 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002808/0.3792, allocations: 2.049 MB / 0.5313 GB, free: 7.453 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3792, allocations: 0 / 0.5313 GB, free: 7.453 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3792, allocations: 3.938 kB / 0.5313 GB, free: 7.449 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.055e-05/0.3793, allocations: 0 / 0.5313 GB, free: 7.449 MB / 398.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.002962/0.3822, allocations: 1.65 MB / 0.5329 GB, free: 6.207 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.3823, allocations: 17.27 kB / 0.5329 GB, free: 6.199 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003825/0.3861, allocations: 484.8 kB / 0.5334 GB, free: 5.969 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001129/0.3872, allocations: 0.6942 MB / 0.5341 GB, free: 5.418 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.613e-05/0.3873, allocations: 82.78 kB / 0.5341 GB, free: 5.379 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002034/0.3875, allocations: 113 kB / 0.5343 GB, free: 5.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002746/0.3903, allocations: 1.599 MB / 0.5358 GB, free: 4.379 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.112e-05/0.3903, allocations: 6.219 kB / 0.5358 GB, free: 4.375 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/0.3905, allocations: 45.52 kB / 0.5359 GB, free: 4.34 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001133/0.3906, allocations: 89.66 kB / 0.536 GB, free: 4.316 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002988/0.3936, allocations: 1.635 MB / 0.5375 GB, free: 3.539 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008102/0.4017, allocations: 4.906 MB / 0.5423 GB, free: 108 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002293/0.404, allocations: 1.327 MB / 0.5436 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001377/0.4054, allocations: 0.7897 MB / 0.5444 GB, free: 14.99 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.842e-05/0.4055, allocations: 22.58 kB / 0.5444 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001526/0.4071, allocations: 0.8298 MB / 0.5452 GB, free: 14.27 MB / 414.1 MB Notification: Performance of pre-optimization done (n=126): time 3.166e-06/0.4071, allocations: 0 / 0.5452 GB, free: 14.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=137): time 0.01413/0.4212, allocations: 6.341 MB / 0.5514 GB, free: 7.809 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.118e-05/0.4213, allocations: 124.1 kB / 0.5515 GB, free: 7.664 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006853/0.422, allocations: 0.5665 MB / 0.5521 GB, free: 7.086 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.465e-05/0.4221, allocations: 49.7 kB / 0.5521 GB, free: 7.031 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003949/0.4225, allocations: 480.2 kB / 0.5526 GB, free: 6.555 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004015/0.4229, allocations: 461.3 kB / 0.553 GB, free: 6.098 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003632/0.4233, allocations: 230.8 kB / 0.5533 GB, free: 5.867 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.4235, allocations: 402.7 kB / 0.5537 GB, free: 5.465 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001137/0.4246, allocations: 0.6189 MB / 0.5543 GB, free: 4.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001218/0.4258, allocations: 0.7715 MB / 0.555 GB, free: 4.027 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00252/0.4284, allocations: 1.502 MB / 0.5565 GB, free: 2.477 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.4284, allocations: 4 kB / 0.5565 GB, free: 2.473 MB / 414.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.004128/0.4325, allocations: 2.068 MB / 0.5585 GB, free: 392 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.033e-05/0.4326, allocations: 41.64 kB / 0.5585 GB, free: 344 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.4326, allocations: 0 / 0.5585 GB, free: 344 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001293/0.4339, allocations: 461.5 kB / 0.559 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001167/0.4351, allocations: 251.6 kB / 0.5592 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009023/0.4441, allocations: 6.756 MB / 0.5658 GB, free: 8.578 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001065/0.4452, allocations: 79.91 kB / 0.5659 GB, free: 8.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001134/0.4453, allocations: 52.05 kB / 0.5659 GB, free: 8.449 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001592/0.4469, allocations: 0.8772 MB / 0.5668 GB, free: 7.57 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001192/0.4481, allocations: 0.7637 MB / 0.5675 GB, free: 6.766 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002399/0.4505, allocations: 1.471 MB / 0.569 GB, free: 5.25 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.617e-06/0.4506, allocations: 0 / 0.569 GB, free: 5.25 MB / 430.1 MB Notification: Performance of matching and sorting (n=162) (initialization_lambda0): time 0.003721/0.4543, allocations: 1.998 MB / 0.5709 GB, free: 3.23 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.384e-05/0.4544, allocations: 33.7 kB / 0.571 GB, free: 3.191 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.4544, allocations: 0 / 0.571 GB, free: 3.191 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001187/0.4556, allocations: 450.3 kB / 0.5714 GB, free: 2.746 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/0.4567, allocations: 255.6 kB / 0.5716 GB, free: 2.496 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008123/0.4648, allocations: 6.581 MB / 0.5781 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001129/0.4659, allocations: 91.81 kB / 0.5782 GB, free: 11.53 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001011/0.4661, allocations: 47.98 kB / 0.5782 GB, free: 11.48 MB / 446.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,disturbance.count,$PRE.disturbance.count,disturbance.T_start,$PRE.disturbance.T_start,$whenCondition1,$whenCondition2,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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,9), (2,29)} Notification: Performance of prepare postOptimizeDAE: time 0.0003596/0.4664, allocations: 244.1 kB / 0.5784 GB, free: 11.24 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001652/0.4666, allocations: 98.81 kB / 0.5785 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004642/0.4712, allocations: 2.161 MB / 0.5806 GB, free: 8.961 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.657e-05/0.4713, allocations: 19.98 kB / 0.5807 GB, free: 8.941 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.4713, allocations: 0 / 0.5807 GB, free: 8.941 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.419e-05/0.4713, allocations: 3.984 kB / 0.5807 GB, free: 8.938 MB / 446.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.007093/0.4784, allocations: 3.934 MB / 0.5845 GB, free: 4.887 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.4784, allocations: 4 kB / 0.5845 GB, free: 4.883 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009165/0.4793, allocations: 215.9 kB / 0.5847 GB, free: 4.672 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001589/0.4809, allocations: 0.5051 MB / 0.5852 GB, free: 4.16 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.835e-05/0.481, allocations: 31.98 kB / 0.5852 GB, free: 4.129 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009494/0.4906, allocations: 7.121 MB / 0.5922 GB, free: 12.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.4906, allocations: 240 / 0.5922 GB, free: 12.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005621/0.4962, allocations: 3.083 MB / 0.5952 GB, free: 9.559 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005312/0.4968, allocations: 283.8 kB / 0.5955 GB, free: 9.262 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001568/0.4969, allocations: 28 kB / 0.5955 GB, free: 9.234 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000824/0.4977, allocations: 75.91 kB / 0.5956 GB, free: 9.16 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002902/0.498, allocations: 128.9 kB / 0.5957 GB, free: 9.031 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.716e-05/0.4982, allocations: 52.17 kB / 0.5957 GB, free: 8.98 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0005534/0.4987, allocations: 395.1 kB / 0.5961 GB, free: 8.602 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4987, allocations: 3.938 kB / 0.5961 GB, free: 8.598 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00219/0.5009, allocations: 0.6641 MB / 0.5968 GB, free: 7.934 MB / 462.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,40), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002347/0.5012, allocations: 139 kB / 0.5969 GB, free: 7.789 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005723/0.5069, allocations: 3.335 MB / 0.6002 GB, free: 4.383 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.5069, allocations: 0 / 0.6002 GB, free: 4.383 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002524/0.5094, allocations: 1.319 MB / 0.6014 GB, free: 3.031 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001143/0.5106, allocations: 192.7 kB / 0.6016 GB, free: 2.852 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004828/0.5154, allocations: 2.656 MB / 0.6042 GB, free: 140 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001025/0.5165, allocations: 1.26 MB / 0.6055 GB, free: 14.85 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0009353/0.5174, allocations: 295 kB / 0.6057 GB, free: 14.55 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003251/0.5178, allocations: 87.41 kB / 0.6058 GB, free: 14.47 MB / 478.1 MB Notification: Performance of SimCode: time 6.21e-07/0.5178, allocations: 0 / 0.6058 GB, free: 14.47 MB / 478.1 MB Notification: Performance of Templates: time 0.03692/0.5547, allocations: 23.04 MB / 0.6283 GB, free: 7.488 MB / 494.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)