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.001431/0.001431, allocations: 111.8 kB / 17.07 MB, free: 5.992 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.001626/0.001626, allocations: 194.9 kB / 18.01 MB, free: 5.074 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.647/1.647, 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.185/0.185, allocations: 38.04 MB / 329.9 MB, free: 8.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 63.89 kB / 458.1 MB, free: 6.824 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.418/0.4195, allocations: 58.06 MB / 0.5041 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.01015/0.4297, allocations: 9.499 MB / 0.5134 GB, free: 1.176 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009719/0.4395, allocations: 5.408 MB / 0.5187 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00156/0.4411, allocations: 25.78 kB / 0.5187 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003285/0.4444, allocations: 1.125 MB / 0.5198 GB, free: 12.67 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004623/0.449, allocations: 1.364 MB / 0.5211 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00207/0.4511, allocations: 0.6088 MB / 0.5217 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003349/0.4545, allocations: 2.024 MB / 0.5237 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001737/0.4562, allocations: 1.05 MB / 0.5247 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001855/0.4581, allocations: 0.834 MB / 0.5255 GB, free: 9.828 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001758/0.4599, allocations: 0.9163 MB / 0.5264 GB, free: 9.426 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002628/0.4601, allocations: 110.3 kB / 0.5265 GB, free: 9.426 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004134/0.4643, allocations: 1.553 MB / 0.528 GB, free: 8.809 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001012/0.4653, allocations: 0.5783 MB / 0.5286 GB, free: 8.598 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001305/0.4666, allocations: 0.664 MB / 0.5293 GB, free: 8.191 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005278/0.4719, allocations: 2.059 MB / 0.5313 GB, free: 7.211 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.472, allocations: 0 / 0.5313 GB, free: 7.211 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.472, allocations: 4 kB / 0.5313 GB, free: 7.207 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.371e-05/0.472, allocations: 0 / 0.5313 GB, free: 7.207 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.004454/0.4765, allocations: 1.693 MB / 0.5329 GB, free: 5.918 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/0.4766, allocations: 18.58 kB / 0.5329 GB, free: 5.91 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004147/0.4807, allocations: 480.2 kB / 0.5334 GB, free: 5.684 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001533/0.4823, allocations: 0.6995 MB / 0.5341 GB, free: 5.129 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.402e-05/0.4824, allocations: 82.94 kB / 0.5342 GB, free: 5.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002149/0.4826, allocations: 112.3 kB / 0.5343 GB, free: 5.051 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003023/0.4856, allocations: 1.604 MB / 0.5358 GB, free: 4.086 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.982e-05/0.4857, allocations: 2.469 kB / 0.5358 GB, free: 4.086 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000115/0.4858, allocations: 49.39 kB / 0.5359 GB, free: 4.047 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001271/0.4859, allocations: 92.64 kB / 0.536 GB, free: 4.02 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003152/0.4891, allocations: 1.628 MB / 0.5376 GB, free: 3.25 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009039/0.4981, allocations: 4.922 MB / 0.5424 GB, free: 15.8 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002585/0.5008, allocations: 1.32 MB / 0.5437 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001332/0.5021, allocations: 0.785 MB / 0.5444 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.54e-05/0.5023, allocations: 30.2 kB / 0.5445 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001439/0.5037, allocations: 0.8402 MB / 0.5453 GB, free: 14.02 MB / 414.1 MB Notification: Performance of pre-optimization done (n=126): time 3.146e-06/0.5037, allocations: 0 / 0.5453 GB, free: 14.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=137): time 0.01421/0.5179, allocations: 6.36 MB / 0.5515 GB, free: 7.543 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.371e-05/0.5181, allocations: 120.1 kB / 0.5516 GB, free: 7.402 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007356/0.5188, allocations: 0.5665 MB / 0.5522 GB, free: 6.824 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001083/0.5189, allocations: 57.73 kB / 0.5522 GB, free: 6.762 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003799/0.5193, allocations: 481.4 kB / 0.5527 GB, free: 6.285 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000438/0.5198, allocations: 495.8 kB / 0.5531 GB, free: 5.797 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003885/0.5202, allocations: 230.8 kB / 0.5534 GB, free: 5.566 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002008/0.5204, allocations: 402.7 kB / 0.5537 GB, free: 5.164 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001139/0.5215, allocations: 0.6189 MB / 0.5543 GB, free: 4.539 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001215/0.5227, allocations: 0.7793 MB / 0.5551 GB, free: 3.719 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002309/0.5251, allocations: 1.506 MB / 0.5566 GB, free: 2.164 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.5251, allocations: 0 / 0.5566 GB, free: 2.164 MB / 414.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.003806/0.5289, allocations: 2.068 MB / 0.5586 GB, free: 76 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.223e-05/0.529, allocations: 41.62 kB / 0.5586 GB, free: 28 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.529, allocations: 4.281 kB / 0.5586 GB, free: 24 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001316/0.5303, allocations: 449.4 kB / 0.5591 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/0.5315, allocations: 255.6 kB / 0.5593 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008608/0.5402, allocations: 6.757 MB / 0.5659 GB, free: 8.273 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001105/0.5413, allocations: 83.97 kB / 0.566 GB, free: 8.191 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002078/0.5415, allocations: 55.92 kB / 0.566 GB, free: 8.137 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001672/0.5432, allocations: 0.8733 MB / 0.5669 GB, free: 7.262 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001114/0.5443, allocations: 0.7598 MB / 0.5676 GB, free: 6.461 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00217/0.5465, allocations: 1.467 MB / 0.5691 GB, free: 4.949 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.23e-06/0.5465, allocations: 4 kB / 0.5691 GB, free: 4.945 MB / 430.1 MB Notification: Performance of matching and sorting (n=162) (initialization_lambda0): time 0.00367/0.5502, allocations: 2.006 MB / 0.571 GB, free: 2.918 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.203e-05/0.5503, allocations: 37.69 kB / 0.5711 GB, free: 2.875 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.739e-06/0.5503, allocations: 4 kB / 0.5711 GB, free: 2.871 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00127/0.5516, allocations: 438.1 kB / 0.5715 GB, free: 2.438 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/0.5528, allocations: 259.6 kB / 0.5717 GB, free: 2.184 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009131/0.5619, allocations: 6.607 MB / 0.5782 GB, free: 11.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001283/0.5632, allocations: 71.92 kB / 0.5783 GB, free: 11.22 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000225/0.5635, allocations: 51.98 kB / 0.5783 GB, free: 11.17 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.000441/0.5639, allocations: 252.1 kB / 0.5786 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002338/0.5642, allocations: 103.3 kB / 0.5787 GB, free: 10.81 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004794/0.569, allocations: 2.161 MB / 0.5808 GB, free: 8.633 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.301e-05/0.569, allocations: 16 kB / 0.5808 GB, free: 8.617 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.5691, allocations: 0 / 0.5808 GB, free: 8.617 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.077e-05/0.5691, allocations: 16.14 kB / 0.5808 GB, free: 8.602 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.00797/0.5771, allocations: 3.926 MB / 0.5846 GB, free: 4.559 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-05/0.5771, allocations: 3.938 kB / 0.5846 GB, free: 4.555 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001036/0.5782, allocations: 211.7 kB / 0.5848 GB, free: 4.348 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001852/0.58, allocations: 0.4973 MB / 0.5853 GB, free: 3.844 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001516/0.5802, allocations: 35.98 kB / 0.5854 GB, free: 3.809 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01012/0.5903, allocations: 7.134 MB / 0.5923 GB, free: 12.37 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.5904, allocations: 4 kB / 0.5923 GB, free: 12.36 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005998/0.5964, allocations: 3.092 MB / 0.5953 GB, free: 9.215 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007004/0.5971, allocations: 288.3 kB / 0.5956 GB, free: 8.914 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000253/0.5974, allocations: 31.98 kB / 0.5956 GB, free: 8.883 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009204/0.5983, allocations: 71.92 kB / 0.5957 GB, free: 8.812 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003351/0.5987, allocations: 132.9 kB / 0.5958 GB, free: 8.68 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001419/0.5988, allocations: 47.98 kB / 0.5959 GB, free: 8.633 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0005844/0.5994, allocations: 399 kB / 0.5963 GB, free: 8.25 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5994, allocations: 4 kB / 0.5963 GB, free: 8.246 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002366/0.6018, allocations: 0.6602 MB / 0.5969 GB, free: 7.586 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.0002334/0.602, allocations: 143.2 kB / 0.5971 GB, free: 7.438 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005802/0.6078, allocations: 3.343 MB / 0.6003 GB, free: 4.023 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/0.6079, allocations: 0 / 0.6003 GB, free: 4.023 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002322/0.6102, allocations: 1.324 MB / 0.6016 GB, free: 2.668 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001266/0.6115, allocations: 184.9 kB / 0.6018 GB, free: 2.492 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004961/0.6165, allocations: 2.696 MB / 0.6044 GB, free: 15.73 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001238/0.6177, allocations: 1.26 MB / 0.6057 GB, free: 14.45 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001046/0.6188, allocations: 299 kB / 0.6059 GB, free: 14.15 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003584/0.6192, allocations: 87.39 kB / 0.606 GB, free: 14.06 MB / 478.1 MB Notification: Performance of SimCode: time 1.042e-06/0.6192, allocations: 0 / 0.606 GB, free: 14.06 MB / 478.1 MB Notification: Performance of Templates: time 0.04/0.6592, allocations: 23.04 MB / 0.6285 GB, free: 7.078 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)