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.001322/0.001322, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.001271/0.001271, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.449/1.449, allocations: 222.9 MB / 241.1 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.2096/0.2096, allocations: 38.02 MB / 329.3 MB, free: 8.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 61.78 kB / 398.1 MB, free: 34.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1326, allocations: 58.07 MB / 456.1 MB, free: 8.496 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.01249/0.1451, allocations: 9.874 MB / 466 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009245/0.1544, allocations: 5.573 MB / 471.6 MB, free: 8.984 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001486/0.1559, allocations: 39.81 kB / 471.6 MB, free: 8.945 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003002/0.159, allocations: 1.039 MB / 472.7 MB, free: 7.902 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004012/0.163, allocations: 1.289 MB / 474 MB, free: 6.609 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002164/0.1652, allocations: 0.541 MB / 474.5 MB, free: 6.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003625/0.1688, allocations: 3.209 MB / 477.7 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001876/0.1707, allocations: 0.979 MB / 478.7 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001787/0.1725, allocations: 0.7116 MB / 479.4 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001798/0.1744, allocations: 0.9576 MB / 480.4 MB, free: 172 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003655/0.1747, allocations: 76 kB / 480.4 MB, free: 96 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00407/0.1788, allocations: 1.867 MB / 482.3 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001202/0.18, allocations: 0.5571 MB / 482.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002074/0.1821, allocations: 0.6256 MB / 483.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006129/0.1883, allocations: 2.103 MB / 485.6 MB, free: 10.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.1883, allocations: 4 kB / 485.6 MB, free: 10.92 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1883, allocations: 0 / 485.6 MB, free: 10.92 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.585e-05/0.1884, allocations: 0 / 485.6 MB, free: 10.92 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.004757/0.1932, allocations: 1.653 MB / 487.2 MB, free: 9.211 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/0.1932, allocations: 8.031 kB / 487.3 MB, free: 9.203 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004091/0.1973, allocations: 478.7 kB / 487.7 MB, free: 8.734 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001525/0.1989, allocations: 0.6704 MB / 488.4 MB, free: 8.023 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.964e-05/0.199, allocations: 86.47 kB / 488.5 MB, free: 7.938 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003218/0.1993, allocations: 116.4 kB / 488.6 MB, free: 7.824 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003332/0.2027, allocations: 1.6 MB / 490.2 MB, free: 6.164 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.066e-05/0.2027, allocations: 11.89 kB / 490.2 MB, free: 6.152 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001268/0.2029, allocations: 43.98 kB / 490.2 MB, free: 6.109 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001101/0.203, allocations: 86.22 kB / 490.3 MB, free: 6.023 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003035/0.206, allocations: 1.633 MB / 492 MB, free: 4.383 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009019/0.2151, allocations: 4.941 MB / 496.9 MB, free: 15.31 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002369/0.2175, allocations: 1.334 MB / 498.2 MB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001372/0.2189, allocations: 0.794 MB / 499 MB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.618e-05/0.219, allocations: 20.97 kB / 499.1 MB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001486/0.2205, allocations: 0.8377 MB / 499.9 MB, free: 12.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=126): time 3.747e-06/0.2205, allocations: 0 / 499.9 MB, free: 12.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01523/0.2357, allocations: 6.341 MB / 0.4944 GB, free: 5.812 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.98e-05/0.2358, allocations: 120.1 kB / 0.4945 GB, free: 5.672 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007499/0.2366, allocations: 0.5627 MB / 0.495 GB, free: 5.102 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001007/0.2367, allocations: 53.69 kB / 0.4951 GB, free: 5.043 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004079/0.2371, allocations: 472.2 kB / 0.4955 GB, free: 4.574 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000443/0.2376, allocations: 469.2 kB / 0.496 GB, free: 4.109 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004023/0.238, allocations: 230.8 kB / 0.4962 GB, free: 3.879 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002052/0.2382, allocations: 402.7 kB / 0.4966 GB, free: 3.477 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001222/0.2394, allocations: 0.6267 MB / 0.4972 GB, free: 2.844 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00137/0.2408, allocations: 0.7753 MB / 0.498 GB, free: 2.027 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002653/0.2435, allocations: 1.491 MB / 0.4994 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.795e-06/0.2435, allocations: 0 / 0.4994 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.2491/0.4926, allocations: 2.071 MB / 0.5014 GB, free: 55.53 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.515e-05/0.4927, allocations: 34.3 kB / 0.5015 GB, free: 55.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.723e-05/0.4928, allocations: 8.125 kB / 0.5015 GB, free: 55.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001561/0.4943, allocations: 445 kB / 0.5019 GB, free: 55.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001203/0.4955, allocations: 254.5 kB / 0.5021 GB, free: 55.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009607/0.5052, allocations: 6.222 MB / 0.5082 GB, free: 51.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009859/0.5062, allocations: 80.39 kB / 0.5083 GB, free: 51.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002203/0.5064, allocations: 51.8 kB / 0.5083 GB, free: 51.54 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001791/0.5082, allocations: 0.8731 MB / 0.5092 GB, free: 51.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001262/0.5095, allocations: 0.7688 MB / 0.5099 GB, free: 50.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00257/0.5121, allocations: 1.475 MB / 0.5114 GB, free: 50.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.72e-06/0.5121, allocations: 1.188 kB / 0.5114 GB, free: 50.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=162) (initialization_lambda0): time 0.004167/0.5163, allocations: 1.991 MB / 0.5133 GB, free: 49.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.098e-05/0.5163, allocations: 34.08 kB / 0.5134 GB, free: 49.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.5163, allocations: 3.531 kB / 0.5134 GB, free: 49.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00121/0.5176, allocations: 438.4 kB / 0.5138 GB, free: 49.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00111/0.5187, allocations: 259.1 kB / 0.514 GB, free: 49.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007531/0.5262, allocations: 6.054 MB / 0.5199 GB, free: 45.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009805/0.5272, allocations: 77.5 kB / 0.52 GB, free: 45.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001656/0.5274, allocations: 51.64 kB / 0.5201 GB, free: 45.11 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.0003447/0.5278, allocations: 249.1 kB / 0.5203 GB, free: 44.88 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001935/0.528, allocations: 103 kB / 0.5204 GB, free: 44.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004055/0.532, allocations: 2.162 MB / 0.5225 GB, free: 43.99 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.279e-05/0.5321, allocations: 12.94 kB / 0.5225 GB, free: 43.99 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.5321, allocations: 4.703 kB / 0.5225 GB, free: 43.99 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.296e-05/0.5321, allocations: 8.594 kB / 0.5225 GB, free: 43.99 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.006491/0.5386, allocations: 3.946 MB / 0.5264 GB, free: 42.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.698e-06/0.5386, allocations: 0 / 0.5264 GB, free: 42.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008307/0.5395, allocations: 208.5 kB / 0.5266 GB, free: 42.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00145/0.5409, allocations: 0.5083 MB / 0.5271 GB, free: 41.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001005/0.541, allocations: 31.86 kB / 0.5271 GB, free: 41.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007382/0.5484, allocations: 6.52 MB / 0.5335 GB, free: 36.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.5485, allocations: 4 kB / 0.5335 GB, free: 36.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004727/0.5532, allocations: 3.08 MB / 0.5365 GB, free: 33.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005132/0.5537, allocations: 284.6 kB / 0.5368 GB, free: 33.37 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001811/0.5539, allocations: 28 kB / 0.5368 GB, free: 33.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008065/0.5548, allocations: 75.91 kB / 0.5369 GB, free: 33.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003129/0.5551, allocations: 129 kB / 0.537 GB, free: 33.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.702e-05/0.5552, allocations: 43.98 kB / 0.537 GB, free: 33.1 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004958/0.5557, allocations: 395.1 kB / 0.5374 GB, free: 32.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5557, allocations: 0 / 0.5374 GB, free: 32.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002242/0.5579, allocations: 0.668 MB / 0.5381 GB, free: 32.04 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.0002237/0.5582, allocations: 140 kB / 0.5382 GB, free: 31.9 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004847/0.563, allocations: 3.326 MB / 0.5414 GB, free: 28.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.5631, allocations: 0 / 0.5414 GB, free: 28.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001875/0.5649, allocations: 1.315 MB / 0.5427 GB, free: 27.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001108/0.5661, allocations: 188.5 kB / 0.5429 GB, free: 26.99 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004204/0.5703, allocations: 3.224 MB / 0.5461 GB, free: 23.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007724/0.5711, allocations: 1.256 MB / 0.5473 GB, free: 22.44 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008892/0.572, allocations: 293.8 kB / 0.5476 GB, free: 22.15 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002843/0.5723, allocations: 83.39 kB / 0.5476 GB, free: 22.07 MB / 382.1 MB Notification: Performance of SimCode: time 9.12e-07/0.5723, allocations: 0 / 0.5476 GB, free: 22.07 MB / 382.1 MB Notification: Performance of Templates: time 0.02746/0.5997, allocations: 21.17 MB / 0.5683 GB, free: 0.9961 MB / 382.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)