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: "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkControlled,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkControlled,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 107.7 kB / 16.92 MB, free: 5.695 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.001107/0.001107, allocations: 192.7 kB / 17.85 MB, free: 5.195 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.172/1.172, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1574/0.1574, allocations: 38.03 MB / 329.7 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 63.09 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08357/0.08497, allocations: 58.06 MB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.009033/0.09404, allocations: 9.505 MB / 466.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006224/0.1003, allocations: 5.405 MB / 471.9 MB, free: 8.988 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003454/0.1006, allocations: 27.88 kB / 471.9 MB, free: 8.961 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002241/0.1029, allocations: 1.128 MB / 473 MB, free: 7.832 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002104/0.105, allocations: 1.374 MB / 474.4 MB, free: 6.453 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001028/0.106, allocations: 0.5992 MB / 475 MB, free: 5.855 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001499/0.1076, allocations: 2.011 MB / 477 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001067/0.1086, allocations: 1.048 MB / 478.1 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007405/0.1094, allocations: 0.8325 MB / 478.9 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000818/0.1102, allocations: 0.9147 MB / 479.8 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001335/0.1104, allocations: 108 kB / 479.9 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001928/0.1123, allocations: 1.555 MB / 481.5 MB, free: 15.35 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004306/0.1127, allocations: 0.5766 MB / 482 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005249/0.1133, allocations: 0.6686 MB / 482.7 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001756/0.115, allocations: 2.025 MB / 484.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.115, allocations: 0 / 484.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.115, allocations: 7.938 kB / 484.7 MB, free: 12.06 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.143e-05/0.1151, allocations: 0 / 484.7 MB, free: 12.06 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.002247/0.1173, allocations: 1.649 MB / 486.4 MB, free: 10.35 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.978e-05/0.1174, allocations: 11.89 kB / 486.4 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001712/0.1175, allocations: 181.6 kB / 486.6 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003249/0.1208, allocations: 478.7 kB / 487 MB, free: 9.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008281/0.1216, allocations: 0.6705 MB / 487.7 MB, free: 8.969 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.208e-05/0.1217, allocations: 82.53 kB / 487.8 MB, free: 8.887 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001651/0.1219, allocations: 116.3 kB / 487.9 MB, free: 8.773 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002187/0.124, allocations: 1.608 MB / 489.5 MB, free: 7.105 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.901e-05/0.1241, allocations: 3.906 kB / 489.5 MB, free: 7.102 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001109/0.1242, allocations: 47.98 kB / 489.6 MB, free: 7.055 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.246e-05/0.1243, allocations: 86.22 kB / 489.7 MB, free: 6.969 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002403/0.1267, allocations: 1.633 MB / 491.3 MB, free: 5.328 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006355/0.1331, allocations: 4.937 MB / 496.2 MB, free: 268 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001912/0.135, allocations: 1.327 MB / 497.6 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001093/0.1361, allocations: 0.7948 MB / 498.3 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.53e-05/0.1362, allocations: 20.97 kB / 498.4 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001201/0.1374, allocations: 0.8372 MB / 499.2 MB, free: 13.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=126): time 2.564e-06/0.1374, allocations: 0 / 499.2 MB, free: 13.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01227/0.1497, allocations: 6.334 MB / 0.4937 GB, free: 6.777 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.048e-05/0.1498, allocations: 128.1 kB / 0.4938 GB, free: 6.629 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005637/0.1503, allocations: 0.5704 MB / 0.4944 GB, free: 6.047 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.059e-05/0.1504, allocations: 45.7 kB / 0.4944 GB, free: 5.996 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000305/0.1507, allocations: 484.2 kB / 0.4949 GB, free: 5.516 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003289/0.1511, allocations: 461.2 kB / 0.4953 GB, free: 5.059 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003228/0.1514, allocations: 230.8 kB / 0.4955 GB, free: 4.828 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.1516, allocations: 406.7 kB / 0.4959 GB, free: 4.422 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001023/0.1526, allocations: 0.6267 MB / 0.4965 GB, free: 3.789 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001126/0.1537, allocations: 0.7715 MB / 0.4973 GB, free: 2.977 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002395/0.1561, allocations: 1.491 MB / 0.4987 GB, free: 1.438 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.1561, allocations: 4 kB / 0.4987 GB, free: 1.434 MB / 382.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.159/0.3152, allocations: 2.071 MB / 0.5008 GB, free: 55.97 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.483e-05/0.3153, allocations: 37.2 kB / 0.5008 GB, free: 55.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.3153, allocations: 3.531 kB / 0.5008 GB, free: 55.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001254/0.3165, allocations: 449.5 kB / 0.5012 GB, free: 55.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001154/0.3177, allocations: 258.3 kB / 0.5015 GB, free: 55.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007346/0.3251, allocations: 6.756 MB / 0.5081 GB, free: 51.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008669/0.3259, allocations: 78.23 kB / 0.5082 GB, free: 51.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001261/0.3261, allocations: 54.02 kB / 0.5082 GB, free: 51.53 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001411/0.3275, allocations: 0.8741 MB / 0.5091 GB, free: 51.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001101/0.3286, allocations: 0.7671 MB / 0.5098 GB, free: 50.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002115/0.3307, allocations: 1.469 MB / 0.5112 GB, free: 50.17 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.049e-06/0.3308, allocations: 1.406 kB / 0.5112 GB, free: 50.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=162) (initialization_lambda0): time 0.003559/0.3343, allocations: 1.997 MB / 0.5132 GB, free: 49.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.3344, allocations: 38.7 kB / 0.5132 GB, free: 49.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.3344, allocations: 2.688 kB / 0.5132 GB, free: 49.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001029/0.3354, allocations: 447.5 kB / 0.5137 GB, free: 49.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009709/0.3364, allocations: 258.6 kB / 0.5139 GB, free: 49.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006635/0.343, allocations: 6.595 MB / 0.5204 GB, free: 44.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007683/0.3438, allocations: 79.67 kB / 0.5204 GB, free: 44.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001115/0.3439, allocations: 51.06 kB / 0.5205 GB, free: 44.71 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.0002804/0.3442, allocations: 242.6 kB / 0.5207 GB, free: 44.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001727/0.3444, allocations: 102.5 kB / 0.5208 GB, free: 44.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003443/0.3478, allocations: 2.16 MB / 0.5229 GB, free: 43.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.246e-06/0.3479, allocations: 19.78 kB / 0.5229 GB, free: 43.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.3479, allocations: 4 kB / 0.5229 GB, free: 43.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.298e-05/0.3479, allocations: 12.55 kB / 0.523 GB, free: 43.59 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.005331/0.3532, allocations: 3.935 MB / 0.5268 GB, free: 41.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.3532, allocations: 6.906 kB / 0.5268 GB, free: 41.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007422/0.354, allocations: 207.6 kB / 0.527 GB, free: 41.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00123/0.3552, allocations: 0.5087 MB / 0.5275 GB, free: 41.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.397e-05/0.3553, allocations: 31.33 kB / 0.5275 GB, free: 41.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006323/0.3616, allocations: 7.131 MB / 0.5345 GB, free: 35.79 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.3617, allocations: 4 kB / 0.5345 GB, free: 35.79 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003932/0.3656, allocations: 3.086 MB / 0.5375 GB, free: 32.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003377/0.3659, allocations: 282.4 kB / 0.5378 GB, free: 32.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001243/0.3661, allocations: 35.92 kB / 0.5378 GB, free: 32.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000659/0.3667, allocations: 71.92 kB / 0.5379 GB, free: 32.26 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002039/0.367, allocations: 121.1 kB / 0.538 GB, free: 32.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.199e-05/0.367, allocations: 47.98 kB / 0.538 GB, free: 32.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003184/0.3674, allocations: 399.1 kB / 0.5384 GB, free: 31.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3674, allocations: 0 / 0.5384 GB, free: 31.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001548/0.3689, allocations: 0.668 MB / 0.5391 GB, free: 31.03 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.004102/0.373, allocations: 3.646 MB / 0.5426 GB, free: 27.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005016/0.3781, allocations: 3.719 MB / 0.5463 GB, free: 23.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.3781, allocations: 0 / 0.5463 GB, free: 23.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001571/0.3796, allocations: 1.315 MB / 0.5475 GB, free: 22.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008061/0.3805, allocations: 191 kB / 0.5477 GB, free: 22.03 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01223/0.3927, allocations: 11.03 MB / 0.5585 GB, free: 10.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005682/0.3933, allocations: 1.26 MB / 0.5597 GB, free: 9.383 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006818/0.394, allocations: 300.5 kB / 0.56 GB, free: 9.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004371/0.3944, allocations: 443.3 kB / 0.5604 GB, free: 8.656 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3944, allocations: 0 / 0.5604 GB, free: 8.656 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.567/1.962, allocations: 31.99 MB / 0.5917 GB, free: 8.832 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.94/17.91, allocations: 16.72 kB / 0.5917 GB, free: 8.816 MB / 414.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Network_NetworkControlled_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Network_NetworkControlled.fmu > PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1)