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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001854/0.001854, allocations: 182.3 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.655/1.655, allocations: 194.2 MB / 208.4 MB, free: 6.719 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001635/0.001635, allocations: 120.6 kB / 253.5 MB, free: 9.59 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.179/0.179, allocations: 37.9 MB / 336.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.167e-05/4.168e-05, allocations: 4 kB / 397.6 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3235, allocations: 53.22 MB / 450.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4833/0.8069, allocations: 98.13 MB / 0.5361 GB, free: 88.64 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003678/0.8073, allocations: 95.88 kB / 0.5362 GB, free: 88.64 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1493/0.9567, allocations: 66.51 MB / 0.6012 GB, free: 26.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.9568, allocations: 0 / 0.6012 GB, free: 26.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.734e-05/0.9568, allocations: 24 kB / 0.6012 GB, free: 26.14 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.00325/0.9601, allocations: 1.383 MB / 0.6025 GB, free: 24.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.832e-05/0.9602, allocations: 8.031 kB / 0.6026 GB, free: 24.69 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002316/0.9604, allocations: 177.3 kB / 0.6027 GB, free: 24.51 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003981/0.9644, allocations: 493.9 kB / 0.6032 GB, free: 24.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001474/0.9659, allocations: 0.6679 MB / 0.6038 GB, free: 23.31 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.802e-05/0.966, allocations: 74.09 kB / 0.6039 GB, free: 23.24 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001973/0.9662, allocations: 115.8 kB / 0.604 GB, free: 23.12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002339/0.9685, allocations: 1.477 MB / 0.6055 GB, free: 21.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.603e-05/0.9686, allocations: 11.92 kB / 0.6055 GB, free: 21.58 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001134/0.9687, allocations: 43.98 kB / 0.6055 GB, free: 21.54 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003122/0.969, allocations: 114.1 kB / 0.6056 GB, free: 21.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002439/0.9715, allocations: 1.453 MB / 0.607 GB, free: 19.96 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008409/0.9799, allocations: 4.722 MB / 0.6117 GB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001774/0.9817, allocations: 1.213 MB / 0.6128 GB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009549/0.9827, allocations: 0.7277 MB / 0.6136 GB, free: 13.15 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.571e-05/0.9829, allocations: 24.98 kB / 0.6136 GB, free: 13.12 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001123/0.984, allocations: 0.7671 MB / 0.6143 GB, free: 12.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=125): time 6.482e-06/0.984, allocations: 0 / 0.6143 GB, free: 12.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=136): time 0.01091/0.9949, allocations: 4.731 MB / 0.6189 GB, free: 7.508 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001486/0.9952, allocations: 120.1 kB / 0.6191 GB, free: 7.367 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008556/0.996, allocations: 468.9 kB / 0.6195 GB, free: 6.906 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001058/0.9962, allocations: 53.7 kB / 0.6196 GB, free: 6.848 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005175/0.9967, allocations: 456.3 kB / 0.62 GB, free: 6.395 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004959/0.9972, allocations: 477.2 kB / 0.6205 GB, free: 5.922 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.573e-05/0.9973, allocations: 24 kB / 0.6205 GB, free: 5.898 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001941/0.9975, allocations: 398.7 kB / 0.6209 GB, free: 5.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009517/0.9985, allocations: 0.5376 MB / 0.6214 GB, free: 4.961 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009731/0.9995, allocations: 0.6841 MB / 0.622 GB, free: 4.246 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/1.001, allocations: 0.6664 MB / 0.6227 GB, free: 3.574 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.436e-06/1.001, allocations: 4 kB / 0.6227 GB, free: 3.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.003904/1.004, allocations: 2.08 MB / 0.6247 GB, free: 1.473 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002942/1.005, allocations: 0.9979 MB / 0.6257 GB, free: 400 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/1.005, allocations: 4 kB / 0.6257 GB, free: 396 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002081/1.007, allocations: 0.7023 MB / 0.6264 GB, free: 15.67 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001037/1.008, allocations: 227.7 kB / 0.6266 GB, free: 15.45 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002163/1.01, allocations: 1.547 MB / 0.6281 GB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001184/1.011, allocations: 107.9 kB / 0.6282 GB, free: 13.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001289/1.011, allocations: 47.98 kB / 0.6283 GB, free: 13.72 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/1.011, allocations: 7.953 kB / 0.6283 GB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004123/1.016, allocations: 1.947 MB / 0.6302 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/1.016, allocations: 4 kB / 0.6302 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00211/1.018, allocations: 0.7023 MB / 0.6309 GB, free: 11.05 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000952/1.019, allocations: 223.6 kB / 0.6311 GB, free: 10.83 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009675/1.028, allocations: 5.605 MB / 0.6366 GB, free: 5.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001283/1.03, allocations: 103.9 kB / 0.6367 GB, free: 4.969 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002339/1.03, allocations: 39.98 kB / 0.6367 GB, free: 4.93 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition2,$whenCondition1,$PRE.disturbance.T_start,disturbance.T_start,$PRE.disturbance.count,disturbance.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 97 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 56} Notification: Performance of prepare postOptimizeDAE: time 0.0004036/1.03, allocations: 172.5 kB / 0.6369 GB, free: 4.754 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002306/1.031, allocations: 94.83 kB / 0.637 GB, free: 4.66 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004063/1.035, allocations: 2.028 MB / 0.6389 GB, free: 2.617 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.485e-05/1.035, allocations: 12 kB / 0.6389 GB, free: 2.605 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/1.035, allocations: 7.891 kB / 0.6389 GB, free: 2.598 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-05/1.035, allocations: 11.97 kB / 0.639 GB, free: 2.586 MB / 394.7 MB Warning: The model contains alias variables with conflicting start and/or 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.007834/1.043, allocations: 3.787 MB / 0.6427 GB, free: 14.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.119e-05/1.043, allocations: 8.266 kB / 0.6427 GB, free: 14.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009692/1.044, allocations: 215.7 kB / 0.6429 GB, free: 14.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001477/1.045, allocations: 0.4895 MB / 0.6434 GB, free: 13.96 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001114/1.045, allocations: 31.98 kB / 0.6434 GB, free: 13.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008996/1.054, allocations: 6.513 MB / 0.6497 GB, free: 7.117 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.184e-06/1.054, allocations: 4 kB / 0.6497 GB, free: 7.113 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005174/1.059, allocations: 2.994 MB / 0.6527 GB, free: 4.004 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006986/1.06, allocations: 279.9 kB / 0.6529 GB, free: 3.711 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002332/1.06, allocations: 31.98 kB / 0.653 GB, free: 3.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009411/1.061, allocations: 95.91 kB / 0.6531 GB, free: 3.586 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003363/1.062, allocations: 121.2 kB / 0.6532 GB, free: 3.469 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.645e-05/1.062, allocations: 36 kB / 0.6532 GB, free: 3.434 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005254/1.062, allocations: 377.5 kB / 0.6536 GB, free: 3.066 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.61e-07/1.062, allocations: 0 / 0.6536 GB, free: 3.066 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002249/1.065, allocations: 0.6406 MB / 0.6542 GB, free: 2.426 MB / 410.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 97 * 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.005459/1.07, allocations: 4.269 MB / 0.6584 GB, free: 14.05 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005261/1.075, allocations: 2.752 MB / 0.6611 GB, free: 11.27 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/1.075, allocations: 0 / 0.6611 GB, free: 11.27 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002163/1.078, allocations: 1.242 MB / 0.6623 GB, free: 10 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001255/1.079, allocations: 143 kB / 0.6624 GB, free: 9.859 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0059/1.085, allocations: 2.441 MB / 0.6648 GB, free: 7.344 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001077/1.086, allocations: 1.256 MB / 0.666 GB, free: 6.059 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001145/1.087, allocations: 330.7 kB / 0.6663 GB, free: 5.73 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006959/1.088, allocations: 419.3 kB / 0.6667 GB, free: 5.32 MB / 426.7 MB Notification: Performance of SimCode: time 1.523e-06/1.088, allocations: 3.938 kB / 0.6667 GB, free: 5.316 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07129/1.159, allocations: 30.16 MB / 0.6962 GB, free: 7.102 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002405/1.159, allocations: 190.5 kB / 0.6964 GB, free: 6.871 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.161/4.321, allocations: 3.938 kB / 0.6964 GB, free: 6.867 MB / 458.7 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/linux/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)