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.001105/0.001104, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.001204/0.001204, allocations: 192 kB / 18.63 MB, free: 4.375 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.596/1.596, allocations: 205.1 MB / 224.5 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1824/0.1824, allocations: 37.98 MB / 309.8 MB, free: 5.988 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.001464/0.001464, allocations: 63.91 kB / 376.8 MB, free: 2.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3255, allocations: 55.24 MB / 432 MB, free: 19.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.00831/0.3339, allocations: 9.534 MB / 441.6 MB, free: 9.945 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006522/0.3404, allocations: 5.449 MB / 447 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001116/0.3416, allocations: 27.88 kB / 447 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002502/0.3441, allocations: 1.126 MB / 448.2 MB, free: 3.316 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003402/0.3475, allocations: 1.366 MB / 449.5 MB, free: 1.945 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001592/0.3491, allocations: 0.6022 MB / 450.1 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002189/0.3513, allocations: 2.019 MB / 452.1 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001398/0.3528, allocations: 1.048 MB / 453.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001398/0.3542, allocations: 0.8403 MB / 454 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001101/0.3553, allocations: 0.9107 MB / 454.9 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001533/0.3554, allocations: 112 kB / 455.1 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003174/0.3586, allocations: 1.551 MB / 456.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006094/0.3593, allocations: 0.5806 MB / 457.2 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007324/0.36, allocations: 0.6685 MB / 457.9 MB, free: 9.574 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003162/0.3632, allocations: 2.049 MB / 459.9 MB, free: 7.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.588e-06/0.3632, allocations: 11.94 kB / 459.9 MB, free: 7.508 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3632, allocations: 0 / 459.9 MB, free: 7.508 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.922e-05/0.3632, allocations: 0 / 459.9 MB, free: 7.508 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.00325/0.3665, allocations: 1.665 MB / 461.6 MB, free: 5.781 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.3666, allocations: 11.89 kB / 461.6 MB, free: 5.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003567/0.3701, allocations: 474.7 kB / 462.1 MB, free: 5.305 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00136/0.3715, allocations: 0.7017 MB / 462.8 MB, free: 4.562 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.55e-05/0.3716, allocations: 78.55 kB / 462.8 MB, free: 4.484 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001943/0.3718, allocations: 112.3 kB / 462.9 MB, free: 4.375 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002751/0.3745, allocations: 1.604 MB / 464.5 MB, free: 2.711 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.438e-05/0.3746, allocations: 7.844 kB / 464.6 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001136/0.3747, allocations: 47.98 kB / 464.6 MB, free: 2.656 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001442/0.3749, allocations: 86.22 kB / 464.7 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00275/0.3776, allocations: 1.629 MB / 466.3 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007618/0.3853, allocations: 4.917 MB / 471.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00215/0.3874, allocations: 1.319 MB / 472.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001184/0.3887, allocations: 0.7976 MB / 473.3 MB, free: 9.746 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.667e-05/0.3887, allocations: 28.97 kB / 473.4 MB, free: 9.719 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001331/0.3901, allocations: 0.8299 MB / 474.2 MB, free: 8.867 MB / 350.1 MB Notification: Performance of pre-optimization done (n=126): time 2.775e-06/0.3901, allocations: 0 / 474.2 MB, free: 8.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=137): time 0.01356/0.4037, allocations: 6.337 MB / 480.5 MB, free: 2.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.059e-05/0.4038, allocations: 124.1 kB / 480.7 MB, free: 2.266 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007147/0.4045, allocations: 0.5704 MB / 481.2 MB, free: 1.684 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.336e-05/0.4046, allocations: 49.7 kB / 481.3 MB, free: 1.629 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003714/0.405, allocations: 476.3 kB / 481.7 MB, free: 1.156 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003906/0.4054, allocations: 469.2 kB / 482.2 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003557/0.4057, allocations: 230.8 kB / 482.4 MB, free: 468 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002092/0.406, allocations: 402.7 kB / 482.8 MB, free: 56 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001087/0.4071, allocations: 0.6227 MB / 483.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001185/0.4083, allocations: 0.7715 MB / 484.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002419/0.4107, allocations: 1.502 MB / 485.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.4107, allocations: 0 / 485.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.003935/0.4146, allocations: 2.068 MB / 487.8 MB, free: 10.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.359e-05/0.4147, allocations: 41.62 kB / 487.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.4147, allocations: 0 / 487.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001279/0.416, allocations: 465.5 kB / 488.3 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/0.4171, allocations: 251.6 kB / 488.5 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008667/0.4258, allocations: 6.751 MB / 495.3 MB, free: 3.188 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001005/0.4268, allocations: 79.91 kB / 495.4 MB, free: 3.109 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/0.4269, allocations: 52.05 kB / 495.4 MB, free: 3.059 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001625/0.4286, allocations: 0.8772 MB / 496.3 MB, free: 2.176 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001271/0.4298, allocations: 0.7597 MB / 497 MB, free: 1.379 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00258/0.4324, allocations: 1.467 MB / 498.5 MB, free: 15.86 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.734e-06/0.4325, allocations: 0 / 498.5 MB, free: 15.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=162) (initialization_lambda0): time 0.004099/0.4366, allocations: 2.001 MB / 0.4888 GB, free: 13.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.695e-05/0.4366, allocations: 41.59 kB / 0.4888 GB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.4367, allocations: 4 kB / 0.4888 GB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001218/0.4379, allocations: 442.1 kB / 0.4893 GB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/0.439, allocations: 259.6 kB / 0.4895 GB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009221/0.4482, allocations: 6.582 MB / 0.4959 GB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001067/0.4493, allocations: 79.86 kB / 0.496 GB, free: 6.152 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/0.4494, allocations: 51.98 kB / 0.4961 GB, free: 6.102 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.0003932/0.4498, allocations: 244.9 kB / 0.4963 GB, free: 5.855 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001776/0.45, allocations: 98.81 kB / 0.4964 GB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004327/0.4544, allocations: 2.161 MB / 0.4985 GB, free: 3.574 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.753e-05/0.4544, allocations: 16 kB / 0.4985 GB, free: 3.559 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.4544, allocations: 0 / 0.4985 GB, free: 3.559 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.424e-05/0.4545, allocations: 7.969 kB / 0.4985 GB, free: 3.551 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.00718/0.4616, allocations: 3.938 MB / 0.5024 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.317e-06/0.4617, allocations: 288 / 0.5024 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009224/0.4626, allocations: 207.7 kB / 0.5026 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001538/0.4642, allocations: 0.5051 MB / 0.5031 GB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000102/0.4643, allocations: 35.98 kB / 0.5031 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009263/0.4736, allocations: 7.128 MB / 0.51 GB, free: 7.309 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.4736, allocations: 4 kB / 0.51 GB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005647/0.4793, allocations: 3.087 MB / 0.5131 GB, free: 4.156 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000651/0.4799, allocations: 287.7 kB / 0.5133 GB, free: 3.855 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001382/0.4801, allocations: 28 kB / 0.5134 GB, free: 3.828 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007275/0.4808, allocations: 72.11 kB / 0.5134 GB, free: 3.758 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003232/0.4812, allocations: 129 kB / 0.5136 GB, free: 3.633 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.542e-05/0.4813, allocations: 51.92 kB / 0.5136 GB, free: 3.582 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004935/0.4818, allocations: 403 kB / 0.514 GB, free: 3.191 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4818, allocations: 0 / 0.514 GB, free: 3.191 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00195/0.4837, allocations: 0.6641 MB / 0.5146 GB, free: 2.527 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.0002081/0.4839, allocations: 131.4 kB / 0.5148 GB, free: 2.391 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.2139/0.6978, allocations: 3.337 MB / 0.518 GB, free: 86.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-05/0.6979, allocations: 1.75 kB / 0.518 GB, free: 86.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002403/0.7003, allocations: 1.316 MB / 0.5193 GB, free: 85.96 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001088/0.7014, allocations: 182.2 kB / 0.5195 GB, free: 85.96 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004649/0.7061, allocations: 2.67 MB / 0.5221 GB, free: 85.14 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008533/0.7069, allocations: 1.262 MB / 0.5233 GB, free: 84.43 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007909/0.7077, allocations: 301.5 kB / 0.5236 GB, free: 84.41 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002513/0.708, allocations: 82.3 kB / 0.5237 GB, free: 84.41 MB / 398.1 MB Notification: Performance of SimCode: time 2.595e-06/0.708, allocations: 7.688 kB / 0.5237 GB, free: 84.41 MB / 398.1 MB Notification: Performance of Templates: time 0.03369/0.7417, allocations: 22.63 MB / 0.5458 GB, free: 69.17 MB / 398.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 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1)