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.0008304/0.0008304, allocations: 89.61 kB / 16.65 MB, free: 6.598 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.0008816, allocations: 182.6 kB / 17.56 MB, free: 6.203 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.606/1.606, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1797/0.1797, allocations: 38.05 MB / 310.1 MB, free: 5.922 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.0005661/0.0005665, allocations: 12.56 kB / 377.2 MB, free: 2.734 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2771/0.2777, allocations: 56.33 MB / 433.5 MB, free: 18.94 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.007571/0.2853, allocations: 9.391 MB / 442.9 MB, free: 9.516 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007043/0.2924, allocations: 5.536 MB / 448.4 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001331/0.2937, allocations: 35.81 kB / 448.5 MB, free: 3.922 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007821/0.2946, allocations: 182.6 kB / 448.6 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003258/0.2978, allocations: 1.289 MB / 449.9 MB, free: 2.449 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001661/0.2995, allocations: 0.5419 MB / 450.5 MB, free: 1.906 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003284/0.3028, allocations: 3.201 MB / 453.7 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003138/0.306, allocations: 1.555 MB / 455.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001628/0.3076, allocations: 0.6569 MB / 455.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001701/0.3093, allocations: 0.8795 MB / 456.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002814/0.3096, allocations: 52 kB / 456.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00381/0.3134, allocations: 1.839 MB / 458.6 MB, free: 9.648 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009561/0.3144, allocations: 0.5181 MB / 459.2 MB, free: 9.129 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001699/0.3161, allocations: 0.5999 MB / 459.8 MB, free: 8.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005721/0.3219, allocations: 2.06 MB / 461.8 MB, free: 6.453 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.3219, allocations: 7.938 kB / 461.8 MB, free: 6.445 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3219, allocations: 0 / 461.8 MB, free: 6.445 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.711e-05/0.322, allocations: 0 / 461.8 MB, free: 6.445 MB / 334.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.004599/0.3266, allocations: 1.443 MB / 463.3 MB, free: 4.945 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.527e-05/0.3267, allocations: 8.031 kB / 463.3 MB, free: 4.938 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004188/0.3309, allocations: 486.7 kB / 463.8 MB, free: 4.461 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001965/0.3329, allocations: 0.6743 MB / 464.4 MB, free: 3.746 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001077/0.333, allocations: 82.53 kB / 464.5 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004531/0.3335, allocations: 116.3 kB / 464.6 MB, free: 3.551 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003546/0.337, allocations: 1.62 MB / 466.2 MB, free: 1.871 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.388e-05/0.3371, allocations: 11.92 kB / 466.3 MB, free: 1.859 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001288/0.3372, allocations: 47.98 kB / 466.3 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001192/0.3373, allocations: 86.22 kB / 466.4 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003467/0.3408, allocations: 1.668 MB / 468.1 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009671/0.3505, allocations: 4.984 MB / 473 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002425/0.353, allocations: 1.358 MB / 474.4 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001358/0.3544, allocations: 0.8171 MB / 475.2 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.758e-05/0.3545, allocations: 20.98 kB / 475.2 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001503/0.356, allocations: 0.8451 MB / 476.1 MB, free: 7.852 MB / 350.1 MB Notification: Performance of pre-optimization done (n=126): time 3.596e-06/0.356, allocations: 0 / 476.1 MB, free: 7.852 MB / 350.1 MB Notification: Performance of matching and sorting (n=137): time 0.01421/0.3702, allocations: 6.455 MB / 482.5 MB, free: 1.277 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.958e-05/0.3704, allocations: 120.1 kB / 482.7 MB, free: 1.137 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008378/0.3712, allocations: 0.5743 MB / 483.2 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001168/0.3713, allocations: 53.64 kB / 483.3 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004285/0.3718, allocations: 480.2 kB / 483.7 MB, free: 20 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004452/0.3722, allocations: 465.2 kB / 484.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001599/0.3724, allocations: 109.7 kB / 484.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.3726, allocations: 410.8 kB / 484.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001104/0.3737, allocations: 0.6272 MB / 485.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001225/0.3749, allocations: 0.791 MB / 486.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002551/0.3775, allocations: 1.526 MB / 487.7 MB, free: 12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.369e-06/0.3775, allocations: 0 / 487.7 MB, free: 12 MB / 366.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.004177/0.3817, allocations: 2.134 MB / 489.8 MB, free: 9.848 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001776/0.3819, allocations: 210.4 kB / 490 MB, free: 9.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.3819, allocations: 4 kB / 490 MB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001304/0.3832, allocations: 449.3 kB / 490.4 MB, free: 9.141 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00108/0.3843, allocations: 271.6 kB / 490.7 MB, free: 8.875 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008892/0.3932, allocations: 6.281 MB / 497 MB, free: 2.316 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001218/0.3945, allocations: 91.91 kB / 497.1 MB, free: 2.227 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003035/0.3948, allocations: 47.98 kB / 497.1 MB, free: 2.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.3948, allocations: 4 kB / 497.1 MB, free: 2.176 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004026/0.3989, allocations: 1.935 MB / 499.1 MB, free: 232 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.3989, allocations: 4 kB / 499.1 MB, free: 228 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001175/0.4001, allocations: 438.4 kB / 499.5 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001065/0.4012, allocations: 267.6 kB / 499.8 MB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00818/0.4094, allocations: 6.059 MB / 0.494 GB, free: 9.191 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001481/0.4109, allocations: 87.92 kB / 0.494 GB, free: 9.105 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003926/0.4113, allocations: 51.97 kB / 0.4941 GB, free: 9.055 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,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.001161/0.4125, allocations: 420.8 kB / 0.4945 GB, free: 8.633 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003412/0.4129, allocations: 102.8 kB / 0.4946 GB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004724/0.4176, allocations: 2.196 MB / 0.4967 GB, free: 6.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.832e-05/0.4176, allocations: 23.94 kB / 0.4968 GB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.4176, allocations: 0 / 0.4968 GB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.7e-05/0.4177, allocations: 7.969 kB / 0.4968 GB, free: 6.289 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.007716/0.4254, allocations: 3.978 MB / 0.5006 GB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/0.4254, allocations: 4.281 kB / 0.5007 GB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/0.4265, allocations: 215.7 kB / 0.5009 GB, free: 1.977 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001731/0.4282, allocations: 0.509 MB / 0.5014 GB, free: 1.461 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001597/0.4284, allocations: 35.98 kB / 0.5014 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01/0.4384, allocations: 6.544 MB / 0.5078 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.4385, allocations: 11.94 kB / 0.5078 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006057/0.4445, allocations: 3.129 MB / 0.5108 GB, free: 7.375 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006796/0.4452, allocations: 283.8 kB / 0.5111 GB, free: 7.078 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002066/0.4455, allocations: 31.98 kB / 0.5111 GB, free: 7.047 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009321/0.4464, allocations: 79.92 kB / 0.5112 GB, free: 6.969 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003439/0.4468, allocations: 125.1 kB / 0.5113 GB, free: 6.848 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/0.4469, allocations: 43.98 kB / 0.5114 GB, free: 6.805 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000657/0.4475, allocations: 407 kB / 0.5118 GB, free: 6.414 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.643e-06/0.4476, allocations: 0 / 0.5118 GB, free: 6.414 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002329/0.4499, allocations: 0.6601 MB / 0.5124 GB, free: 5.754 MB / 398.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.0002415/0.4501, allocations: 143 kB / 0.5126 GB, free: 5.602 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00605/0.4562, allocations: 3.362 MB / 0.5158 GB, free: 2.168 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.4562, allocations: 192 / 0.5158 GB, free: 2.168 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002471/0.4587, allocations: 1.331 MB / 0.5171 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001492/0.4602, allocations: 183.9 kB / 0.5173 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2135/0.6737, allocations: 3.291 MB / 0.5205 GB, free: 83.57 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009186/0.6747, allocations: 1.263 MB / 0.5218 GB, free: 82.85 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001028/0.6757, allocations: 300.7 kB / 0.522 GB, free: 82.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002994/0.676, allocations: 82.41 kB / 0.5221 GB, free: 82.84 MB / 398.1 MB Notification: Performance of SimCode: time 8.12e-07/0.676, allocations: 0 / 0.5221 GB, free: 82.84 MB / 398.1 MB Notification: Performance of Templates: time 0.03292/0.709, allocations: 20.74 MB / 0.5424 GB, free: 71.68 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: