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.001242/0.001242, allocations: 115 kB / 16.63 MB, free: 6.812 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.001216/0.001216, allocations: 186 kB / 17.55 MB, free: 5.934 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.363/1.363, allocations: 222.9 MB / 241.2 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1836/0.1836, allocations: 38.02 MB / 329.4 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001536, allocations: 56.2 kB / 398.3 MB, free: 34.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1433, allocations: 58.06 MB / 456.3 MB, free: 8.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.01157/0.1549, allocations: 9.885 MB / 466.2 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008282/0.1633, allocations: 5.487 MB / 471.7 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001003/0.1643, allocations: 35.81 kB / 471.7 MB, free: 8.895 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002757/0.1671, allocations: 1.05 MB / 472.8 MB, free: 7.844 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003517/0.1706, allocations: 1.277 MB / 474.1 MB, free: 6.562 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001685/0.1723, allocations: 0.5536 MB / 474.6 MB, free: 6.008 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002471/0.1748, allocations: 2.011 MB / 476.6 MB, free: 3.988 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001604/0.1764, allocations: 1.126 MB / 477.8 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001474/0.1779, allocations: 0.8442 MB / 478.6 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001219/0.1792, allocations: 0.981 MB / 479.6 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001593/0.1793, allocations: 108 kB / 479.7 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00264/0.182, allocations: 1.559 MB / 481.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005467/0.1825, allocations: 0.5845 MB / 481.8 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006642/0.1832, allocations: 0.6608 MB / 482.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002924/0.1861, allocations: 2.146 MB / 484.6 MB, free: 11.94 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.321e-06/0.1862, allocations: 0 / 484.6 MB, free: 11.94 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1862, allocations: 4 kB / 484.6 MB, free: 11.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.58e-05/0.1862, allocations: 4 kB / 484.6 MB, free: 11.93 MB / 366.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.002742/0.1889, allocations: 1.653 MB / 486.3 MB, free: 10.21 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.189, allocations: 11.89 kB / 486.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003506/0.1925, allocations: 478.7 kB / 486.8 MB, free: 9.734 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001033/0.1936, allocations: 0.6704 MB / 487.5 MB, free: 9.023 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.296e-05/0.1936, allocations: 78.55 kB / 487.5 MB, free: 8.945 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001916/0.1938, allocations: 112.4 kB / 487.6 MB, free: 8.836 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002585/0.1964, allocations: 1.6 MB / 489.2 MB, free: 7.176 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.945e-05/0.1965, allocations: 15.91 kB / 489.3 MB, free: 7.16 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001137/0.1966, allocations: 43.97 kB / 489.3 MB, free: 7.117 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001199/0.1967, allocations: 90.22 kB / 489.4 MB, free: 7.027 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00265/0.1994, allocations: 1.629 MB / 491 MB, free: 5.391 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007403/0.2068, allocations: 4.949 MB / 496 MB, free: 320 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002095/0.2089, allocations: 1.334 MB / 497.3 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001186/0.2101, allocations: 0.7939 MB / 498.1 MB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.689e-05/0.2102, allocations: 20.91 kB / 498.1 MB, free: 14.13 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001369/0.2116, allocations: 0.8338 MB / 498.9 MB, free: 13.28 MB / 382.1 MB Notification: Performance of pre-optimization done (n=126): time 4.068e-06/0.2116, allocations: 0 / 498.9 MB, free: 13.28 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01363/0.2252, allocations: 6.341 MB / 0.4934 GB, free: 6.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.343e-05/0.2254, allocations: 120.1 kB / 0.4936 GB, free: 6.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007292/0.2261, allocations: 0.5627 MB / 0.4941 GB, free: 6.105 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.898e-05/0.2262, allocations: 53.7 kB / 0.4942 GB, free: 6.047 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003903/0.2266, allocations: 480.2 kB / 0.4946 GB, free: 5.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003895/0.227, allocations: 469.2 kB / 0.4951 GB, free: 5.105 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003652/0.2274, allocations: 226.8 kB / 0.4953 GB, free: 4.879 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002057/0.2276, allocations: 402.7 kB / 0.4957 GB, free: 4.477 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001131/0.2287, allocations: 0.6228 MB / 0.4963 GB, free: 3.848 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001194/0.2299, allocations: 0.7715 MB / 0.497 GB, free: 3.035 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002367/0.2323, allocations: 1.498 MB / 0.4985 GB, free: 1.492 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.2323, allocations: 0 / 0.4985 GB, free: 1.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.2371/0.4694, allocations: 2.066 MB / 0.5005 GB, free: 55.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.314e-05/0.4695, allocations: 42.22 kB / 0.5005 GB, free: 55.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.559e-05/0.4695, allocations: 3 kB / 0.5005 GB, free: 55.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001438/0.471, allocations: 450 kB / 0.501 GB, free: 55.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001333/0.4723, allocations: 258.3 kB / 0.5012 GB, free: 55.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008451/0.4808, allocations: 6.765 MB / 0.5078 GB, free: 51.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001088/0.4819, allocations: 79.58 kB / 0.5079 GB, free: 51.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001153/0.482, allocations: 49.3 kB / 0.508 GB, free: 51.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001583/0.4836, allocations: 0.8764 MB / 0.5088 GB, free: 50.73 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001195/0.4848, allocations: 0.7652 MB / 0.5096 GB, free: 50.4 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002328/0.4872, allocations: 1.474 MB / 0.511 GB, free: 49.72 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.466e-06/0.4872, allocations: 3.625 kB / 0.511 GB, free: 49.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=162) (initialization_lambda0): time 0.005113/0.4923, allocations: 1.994 MB / 0.5129 GB, free: 49.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.435e-05/0.4924, allocations: 34.55 kB / 0.513 GB, free: 48.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.4924, allocations: 3.156 kB / 0.513 GB, free: 48.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001262/0.4937, allocations: 444.7 kB / 0.5134 GB, free: 48.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/0.4948, allocations: 254.4 kB / 0.5136 GB, free: 48.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008307/0.5031, allocations: 6.592 MB / 0.5201 GB, free: 44.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/0.5042, allocations: 74.61 kB / 0.5202 GB, free: 44.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.5043, allocations: 52.72 kB / 0.5202 GB, free: 44.29 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.0003752/0.5047, allocations: 245.3 kB / 0.5204 GB, free: 44.06 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001632/0.5049, allocations: 102.1 kB / 0.5205 GB, free: 44 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004256/0.5091, allocations: 2.162 MB / 0.5227 GB, free: 43.17 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-05/0.5092, allocations: 14.75 kB / 0.5227 GB, free: 43.17 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.5092, allocations: 2.5 kB / 0.5227 GB, free: 43.17 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.458e-05/0.5092, allocations: 7.5 kB / 0.5227 GB, free: 43.17 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.006121/0.5153, allocations: 3.946 MB / 0.5265 GB, free: 41.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-05/0.5154, allocations: 3.938 kB / 0.5265 GB, free: 41.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008606/0.5162, allocations: 204.6 kB / 0.5267 GB, free: 41.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001448/0.5177, allocations: 0.5086 MB / 0.5272 GB, free: 41.1 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.702e-05/0.5178, allocations: 35.8 kB / 0.5273 GB, free: 41.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0075/0.5253, allocations: 7.133 MB / 0.5342 GB, free: 35.53 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.668e-06/0.5253, allocations: 11.59 kB / 0.5342 GB, free: 35.52 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0045/0.5298, allocations: 3.074 MB / 0.5372 GB, free: 32.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005597/0.5304, allocations: 287.8 kB / 0.5375 GB, free: 32.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001379/0.5306, allocations: 32 kB / 0.5375 GB, free: 32.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007936/0.5314, allocations: 68.58 kB / 0.5376 GB, free: 32.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003435/0.5317, allocations: 125.1 kB / 0.5377 GB, free: 32.28 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.722e-05/0.5318, allocations: 43.98 kB / 0.5378 GB, free: 32.24 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005161/0.5324, allocations: 407 kB / 0.5382 GB, free: 31.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5324, allocations: 0 / 0.5382 GB, free: 31.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002284/0.5347, allocations: 0.6562 MB / 0.5388 GB, free: 31.18 MB / 382.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.0002309/0.5349, allocations: 143.7 kB / 0.5389 GB, free: 31.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005871/0.5408, allocations: 3.715 MB / 0.5426 GB, free: 27.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/0.5408, allocations: 4 kB / 0.5426 GB, free: 27.26 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001796/0.5426, allocations: 1.316 MB / 0.5439 GB, free: 25.92 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.5437, allocations: 200.4 kB / 0.544 GB, free: 25.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003959/0.5477, allocations: 3.213 MB / 0.5472 GB, free: 22.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006826/0.5484, allocations: 1.26 MB / 0.5484 GB, free: 21.2 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008114/0.5492, allocations: 302.1 kB / 0.5487 GB, free: 20.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002572/0.5494, allocations: 83.41 kB / 0.5488 GB, free: 20.82 MB / 382.1 MB Notification: Performance of SimCode: time 7.62e-07/0.5494, allocations: 0 / 0.5488 GB, free: 20.82 MB / 382.1 MB Notification: Performance of Templates: time 0.02798/0.5774, allocations: 22.48 MB / 0.5707 GB, free: 14.43 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 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1)