Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled") translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009498/0.0009498, allocations: 174.1 kB / 16.07 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.202/1.202, allocations: 205.4 MB / 222.2 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006816/0.0006817, allocations: 91.55 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1692/0.1692, allocations: 38.07 MB / 356.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000321/0.000321, allocations: 12 kB / 423.3 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.22/0.2204, allocations: 56.33 MB / 479.6 MB, free: 9.234 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.007322/0.2277, allocations: 8.891 MB / 488.5 MB, free: 3.168 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006406/0.2342, allocations: 5.209 MB / 493.7 MB, free: 15.48 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000909/0.2351, allocations: 34.84 kB / 493.8 MB, free: 15.47 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005429/0.2357, allocations: 199.8 kB / 494 MB, free: 15.36 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003101/0.2388, allocations: 1.232 MB / 495.2 MB, free: 14.76 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001552/0.2404, allocations: 0.5149 MB / 495.7 MB, free: 14.5 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003317/0.2437, allocations: 2.487 MB / 498.2 MB, free: 13.61 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002719/0.2465, allocations: 1.532 MB / 499.7 MB, free: 12.75 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001375/0.2479, allocations: 0.6619 MB / 0.4887 GB, free: 12.48 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001371/0.2492, allocations: 0.8561 MB / 0.4895 GB, free: 12.07 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001354/0.2494, allocations: 50.78 kB / 0.4895 GB, free: 12.07 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003193/0.2526, allocations: 1.749 MB / 0.4912 GB, free: 11.07 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005948/0.2532, allocations: 0.5226 MB / 0.4918 GB, free: 10.75 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006527/0.2539, allocations: 0.5703 MB / 0.4923 GB, free: 10.37 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002089/0.256, allocations: 1.508 MB / 0.4938 GB, free: 9.449 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.256, allocations: 0 / 0.4938 GB, free: 9.449 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.256, allocations: 1.219 kB / 0.4938 GB, free: 9.449 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.293e-05/0.256, allocations: 0 / 0.4938 GB, free: 9.449 MB / 330.7 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.002647/0.2587, allocations: 1.441 MB / 0.4952 GB, free: 8.352 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.2587, allocations: 8.562 kB / 0.4952 GB, free: 8.352 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003335/0.2621, allocations: 486 kB / 0.4957 GB, free: 8.125 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001132/0.2632, allocations: 0.6702 MB / 0.4963 GB, free: 7.59 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.555e-05/0.2633, allocations: 86.7 kB / 0.4964 GB, free: 7.547 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000212/0.2635, allocations: 117.9 kB / 0.4965 GB, free: 7.504 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002775/0.2663, allocations: 1.609 MB / 0.4981 GB, free: 6.539 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.227e-05/0.2664, allocations: 9.344 kB / 0.4981 GB, free: 6.531 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001185/0.2665, allocations: 41.8 kB / 0.4981 GB, free: 6.5 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001127/0.2666, allocations: 89.88 kB / 0.4982 GB, free: 6.477 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003005/0.2697, allocations: 1.659 MB / 0.4998 GB, free: 5.695 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007712/0.2774, allocations: 4.986 MB / 0.5047 GB, free: 0.832 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002111/0.2795, allocations: 1.35 MB / 0.506 GB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001236/0.2808, allocations: 0.8093 MB / 0.5068 GB, free: 14.64 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.127e-05/0.2809, allocations: 20.89 kB / 0.5068 GB, free: 14.63 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001317/0.2822, allocations: 0.8451 MB / 0.5077 GB, free: 13.77 MB / 346.7 MB Notification: Performance of pre-optimization done (n=126): time 3.266e-06/0.2822, allocations: 0 / 0.5077 GB, free: 13.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=137): time 0.01334/0.2956, allocations: 6.436 MB / 0.514 GB, free: 7.211 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.962e-05/0.2956, allocations: 124.1 kB / 0.5141 GB, free: 7.066 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006498/0.2963, allocations: 0.5665 MB / 0.5146 GB, free: 6.492 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.137e-05/0.2964, allocations: 45.7 kB / 0.5147 GB, free: 6.441 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003408/0.2968, allocations: 484.2 kB / 0.5151 GB, free: 5.961 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003746/0.2971, allocations: 469.2 kB / 0.5156 GB, free: 5.496 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.729e-05/0.2972, allocations: 24 kB / 0.5156 GB, free: 5.473 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.2974, allocations: 402.7 kB / 0.516 GB, free: 5.07 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001076/0.2985, allocations: 0.6272 MB / 0.5166 GB, free: 4.441 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001172/0.2997, allocations: 0.7949 MB / 0.5174 GB, free: 3.602 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00236/0.302, allocations: 1.518 MB / 0.5189 GB, free: 2.043 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3021, allocations: 0 / 0.5189 GB, free: 2.043 MB / 346.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.003841/0.3059, allocations: 2.115 MB / 0.5209 GB, free: 15.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001258/0.3061, allocations: 216.8 kB / 0.5211 GB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.3061, allocations: 0 / 0.5211 GB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001268/0.3073, allocations: 469.3 kB / 0.5216 GB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/0.3084, allocations: 255.6 kB / 0.5218 GB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008091/0.3166, allocations: 6.269 MB / 0.5279 GB, free: 8.375 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009603/0.3175, allocations: 83.92 kB / 0.528 GB, free: 8.293 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001166/0.3177, allocations: 55.97 kB / 0.5281 GB, free: 8.238 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.025e-06/0.3177, allocations: 8.062 kB / 0.5281 GB, free: 8.23 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003469/0.3212, allocations: 1.919 MB / 0.53 GB, free: 6.297 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.3212, allocations: 4 kB / 0.53 GB, free: 6.293 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001102/0.3223, allocations: 438.7 kB / 0.5304 GB, free: 5.859 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001064/0.3234, allocations: 259.6 kB / 0.5306 GB, free: 5.605 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007277/0.3307, allocations: 6.058 MB / 0.5365 GB, free: 15.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009536/0.3316, allocations: 83.86 kB / 0.5366 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001131/0.3318, allocations: 47.98 kB / 0.5367 GB, free: 15.13 MB / 378.7 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,$whenCondition2,$whenCondition1,$PRE.disturbance.T_start,disturbance.T_start,$PRE.disturbance.count,disturbance.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,2 29} Notification: Performance of prepare postOptimizeDAE: time 0.0006654/0.3324, allocations: 424.8 kB / 0.5371 GB, free: 14.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000157/0.3326, allocations: 102.8 kB / 0.5372 GB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004223/0.3368, allocations: 2.188 MB / 0.5393 GB, free: 12.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.611e-05/0.3369, allocations: 19.94 kB / 0.5393 GB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.3369, allocations: 0 / 0.5393 GB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.648e-05/0.3369, allocations: 3.984 kB / 0.5393 GB, free: 12.38 MB / 378.7 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.006762/0.3437, allocations: 3.974 MB / 0.5432 GB, free: 8.285 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.625e-06/0.3437, allocations: 4 kB / 0.5432 GB, free: 8.281 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000907/0.3446, allocations: 215.7 kB / 0.5434 GB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001585/0.3462, allocations: 0.5013 MB / 0.5439 GB, free: 7.562 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.938e-05/0.3463, allocations: 35.98 kB / 0.5439 GB, free: 7.527 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008443/0.3548, allocations: 6.544 MB / 0.5503 GB, free: 0.6758 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.239e-06/0.3548, allocations: 7.984 kB / 0.5503 GB, free: 0.668 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00547/0.3603, allocations: 3.109 MB / 0.5534 GB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000579/0.3609, allocations: 287.8 kB / 0.5537 GB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001463/0.3611, allocations: 28 kB / 0.5537 GB, free: 13.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007215/0.3618, allocations: 83.92 kB / 0.5538 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002739/0.3621, allocations: 125 kB / 0.5539 GB, free: 12.97 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.697e-05/0.3622, allocations: 44.17 kB / 0.5539 GB, free: 12.93 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004795/0.3627, allocations: 399 kB / 0.5543 GB, free: 12.55 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3627, allocations: 7.875 kB / 0.5543 GB, free: 12.54 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001938/0.3646, allocations: 0.6641 MB / 0.555 GB, free: 11.88 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 40,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002123/0.3648, allocations: 139 kB / 0.5551 GB, free: 11.73 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005258/0.3701, allocations: 3.347 MB / 0.5584 GB, free: 8.309 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/0.3701, allocations: 4 kB / 0.5584 GB, free: 8.305 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002207/0.3724, allocations: 1.315 MB / 0.5596 GB, free: 6.965 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001283/0.3737, allocations: 175.9 kB / 0.5598 GB, free: 6.789 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004624/0.3783, allocations: 3.254 MB / 0.563 GB, free: 3.477 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009087/0.3792, allocations: 1.264 MB / 0.5642 GB, free: 2.18 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003962/0.3796, allocations: 91.39 kB / 0.5643 GB, free: 2.09 MB / 394.7 MB Notification: Performance of SimCode: time 1.934e-06/0.3796, allocations: 0 / 0.5643 GB, free: 2.09 MB / 394.7 MB Notification: Performance of Templates: time 0.02745/0.4071, allocations: 23.28 MB / 0.587 GB, free: 10.76 MB / 426.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.sim & ./PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1)