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: "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkControlled,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Network_NetworkControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkControlled,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Network_NetworkControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001026/0.001026, 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.333/1.333, allocations: 205.4 MB / 222.2 MB, free: 9.027 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.0007113/0.0007113, allocations: 86.36 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.1652/0.1652, allocations: 38.07 MB / 356.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003591/0.0003592, allocations: 12 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2551, allocations: 56.32 MB / 479.7 MB, free: 9.227 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.007355/0.2625, allocations: 8.894 MB / 488.6 MB, free: 3.164 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006891/0.2695, allocations: 5.205 MB / 493.8 MB, free: 15.48 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001228/0.2707, allocations: 35.19 kB / 493.9 MB, free: 15.47 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000618/0.2714, allocations: 198.5 kB / 494.1 MB, free: 15.36 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003801/0.2752, allocations: 1.229 MB / 495.3 MB, free: 14.76 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00179/0.277, allocations: 0.5208 MB / 495.8 MB, free: 14.5 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003906/0.2809, allocations: 2.491 MB / 498.3 MB, free: 13.61 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00276/0.2837, allocations: 1.524 MB / 499.8 MB, free: 12.75 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001628/0.2853, allocations: 0.6662 MB / 0.4888 GB, free: 12.48 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001519/0.2869, allocations: 0.8509 MB / 0.4896 GB, free: 12.08 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001386/0.287, allocations: 49.97 kB / 0.4896 GB, free: 12.08 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003311/0.2903, allocations: 1.747 MB / 0.4913 GB, free: 11.08 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000635/0.291, allocations: 0.5181 MB / 0.4919 GB, free: 10.77 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000763/0.2918, allocations: 0.5745 MB / 0.4924 GB, free: 10.38 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002632/0.2944, allocations: 1.508 MB / 0.4939 GB, free: 9.461 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.2944, allocations: 0 / 0.4939 GB, free: 9.461 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.2944, allocations: 0 / 0.4939 GB, free: 9.461 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.27e-05/0.2945, allocations: 0 / 0.4939 GB, free: 9.461 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.002797/0.2973, allocations: 1.442 MB / 0.4953 GB, free: 8.363 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.2973, allocations: 8.938 kB / 0.4953 GB, free: 8.363 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002211/0.2975, allocations: 180 kB / 0.4955 GB, free: 8.219 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003433/0.301, allocations: 486.1 kB / 0.4959 GB, free: 7.992 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001276/0.3023, allocations: 0.6738 MB / 0.4966 GB, free: 7.453 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.407e-05/0.3024, allocations: 94.94 kB / 0.4967 GB, free: 7.402 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001882/0.3026, allocations: 113.2 kB / 0.4968 GB, free: 7.363 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002747/0.3053, allocations: 1.613 MB / 0.4984 GB, free: 6.395 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.571e-05/0.3054, allocations: 2.75 kB / 0.4984 GB, free: 6.395 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001129/0.3055, allocations: 49.59 kB / 0.4984 GB, free: 6.355 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001088/0.3056, allocations: 88.22 kB / 0.4985 GB, free: 6.332 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002848/0.3085, allocations: 1.656 MB / 0.5001 GB, free: 5.555 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007834/0.3163, allocations: 4.986 MB / 0.505 GB, free: 0.6289 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002115/0.3185, allocations: 1.358 MB / 0.5063 GB, free: 15.25 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001185/0.3197, allocations: 0.8055 MB / 0.5071 GB, free: 14.44 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.228e-05/0.3198, allocations: 20.92 kB / 0.5071 GB, free: 14.42 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001339/0.3211, allocations: 0.8451 MB / 0.508 GB, free: 13.56 MB / 346.7 MB Notification: Performance of pre-optimization done (n=126): time 3.356e-06/0.3211, allocations: 0 / 0.508 GB, free: 13.56 MB / 346.7 MB Notification: Performance of matching and sorting (n=137): time 0.01329/0.3344, allocations: 6.43 MB / 0.5142 GB, free: 7.012 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.427e-05/0.3346, allocations: 116.1 kB / 0.5143 GB, free: 6.875 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006506/0.3352, allocations: 0.5782 MB / 0.5149 GB, free: 6.289 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.334e-05/0.3353, allocations: 45.7 kB / 0.5149 GB, free: 6.238 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003543/0.3357, allocations: 488.1 kB / 0.5154 GB, free: 5.754 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000377/0.3361, allocations: 465.2 kB / 0.5159 GB, free: 5.293 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.074e-05/0.3361, allocations: 24 kB / 0.5159 GB, free: 5.27 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.3363, allocations: 410.7 kB / 0.5163 GB, free: 4.859 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001031/0.3373, allocations: 0.6233 MB / 0.5169 GB, free: 4.234 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00116/0.3385, allocations: 0.7871 MB / 0.5177 GB, free: 3.402 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002325/0.3409, allocations: 1.51 MB / 0.5191 GB, free: 1.852 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.3409, allocations: 0 / 0.5191 GB, free: 1.852 MB / 346.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.0039/0.3448, allocations: 2.115 MB / 0.5212 GB, free: 15.71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001854/0.345, allocations: 210.5 kB / 0.5214 GB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/0.345, allocations: 3.938 kB / 0.5214 GB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001421/0.3464, allocations: 461.4 kB / 0.5218 GB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00112/0.3476, allocations: 263.6 kB / 0.5221 GB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008006/0.3556, allocations: 6.278 MB / 0.5282 GB, free: 8.176 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001088/0.3567, allocations: 88.19 kB / 0.5283 GB, free: 8.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001061/0.3568, allocations: 51.98 kB / 0.5284 GB, free: 8.039 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.614e-06/0.3568, allocations: 4 kB / 0.5284 GB, free: 8.035 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003315/0.3602, allocations: 1.927 MB / 0.5302 GB, free: 6.094 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.3602, allocations: 4 kB / 0.5302 GB, free: 6.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001146/0.3613, allocations: 434.4 kB / 0.5307 GB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00105/0.3624, allocations: 267.5 kB / 0.5309 GB, free: 5.398 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007581/0.37, allocations: 6.039 MB / 0.5368 GB, free: 15.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001103/0.3711, allocations: 83.86 kB / 0.5369 GB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002312/0.3714, allocations: 55.97 kB / 0.5369 GB, free: 14.93 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.0008327/0.3722, allocations: 424.8 kB / 0.5373 GB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002474/0.3725, allocations: 98.78 kB / 0.5374 GB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004556/0.377, allocations: 2.185 MB / 0.5396 GB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.083e-05/0.3771, allocations: 23.94 kB / 0.5396 GB, free: 12.19 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.3771, allocations: 3.938 kB / 0.5396 GB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.862e-05/0.3771, allocations: 7.969 kB / 0.5396 GB, free: 12.18 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.006942/0.3841, allocations: 3.975 MB / 0.5435 GB, free: 8.082 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.255e-06/0.3841, allocations: 8.062 kB / 0.5435 GB, free: 8.074 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000853/0.385, allocations: 215.7 kB / 0.5437 GB, free: 7.863 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00158/0.3865, allocations: 0.5051 MB / 0.5442 GB, free: 7.352 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.394e-05/0.3866, allocations: 31.98 kB / 0.5442 GB, free: 7.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009476/0.3961, allocations: 6.544 MB / 0.5506 GB, free: 480 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.742e-06/0.3962, allocations: 4 kB / 0.5506 GB, free: 476 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006114/0.4023, allocations: 3.11 MB / 0.5537 GB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006365/0.403, allocations: 279.8 kB / 0.5539 GB, free: 13 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002191/0.4032, allocations: 35.92 kB / 0.554 GB, free: 12.97 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009068/0.4041, allocations: 83.92 kB / 0.554 GB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003668/0.4045, allocations: 125 kB / 0.5542 GB, free: 12.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/0.4046, allocations: 51.92 kB / 0.5542 GB, free: 12.71 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005013/0.4051, allocations: 395.1 kB / 0.5546 GB, free: 12.34 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4051, allocations: 0 / 0.5546 GB, free: 12.34 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002063/0.4072, allocations: 0.6602 MB / 0.5552 GB, free: 11.68 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.005527/0.4127, allocations: 3.693 MB / 0.5588 GB, free: 7.918 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005379/0.4181, allocations: 3.355 MB / 0.5621 GB, free: 4.492 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/0.4182, allocations: 0 / 0.5621 GB, free: 4.492 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002128/0.4203, allocations: 1.315 MB / 0.5634 GB, free: 3.152 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00131/0.4217, allocations: 172.1 kB / 0.5636 GB, free: 2.98 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0123/0.434, allocations: 8.077 MB / 0.5714 GB, free: 10.64 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009345/0.4349, allocations: 1.256 MB / 0.5727 GB, free: 9.352 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006736/0.4356, allocations: 455.2 kB / 0.5731 GB, free: 8.906 MB / 410.7 MB Notification: Performance of SimCode: time 9.32e-07/0.4356, allocations: 0 / 0.5731 GB, free: 8.906 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.383/4.819, allocations: 26.23 MB / 0.5987 GB, free: 14.6 MB / 442.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Generic_Network_NetworkControlled_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Generic_Network_NetworkControlled.fmu > PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1)