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.001088/0.001088, allocations: 179.6 kB / 16.38 MB, free: 5.762 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.26/1.26, allocations: 194.5 MB / 211.6 MB, free: 2.965 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.001615/0.001615, allocations: 120.9 kB / 256.9 MB, free: 4.379 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1622/0.1622, allocations: 38 MB / 340.1 MB, free: 1.348 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003384/0.0003384, allocations: 12 kB / 403.9 MB, free: 68.7 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08431/0.08467, allocations: 53.23 MB / 457.1 MB, free: 15.48 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3909/0.4756, allocations: 98.23 MB / 0.5423 GB, free: 13.63 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/0.4759, allocations: 90.12 kB / 0.5424 GB, free: 13.58 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1593/0.6353, allocations: 66.89 MB / 0.6077 GB, free: 1.43 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.887e-06/0.6353, allocations: 0 / 0.6077 GB, free: 1.43 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001155/0.6354, allocations: 27.94 kB / 0.6078 GB, free: 1.402 MB / 410.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.004789/0.6402, allocations: 1.472 MB / 0.6092 GB, free: 15.87 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.682e-05/0.6403, allocations: 16.02 kB / 0.6092 GB, free: 15.85 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006704/0.641, allocations: 165.3 kB / 0.6094 GB, free: 15.68 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004196/0.6452, allocations: 497.8 kB / 0.6098 GB, free: 15.19 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001874/0.6471, allocations: 0.6794 MB / 0.6105 GB, free: 14.47 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.671e-05/0.6472, allocations: 82.09 kB / 0.6106 GB, free: 14.39 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003763/0.6476, allocations: 104 kB / 0.6107 GB, free: 14.29 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003297/0.6509, allocations: 1.55 MB / 0.6122 GB, free: 12.68 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.669e-05/0.651, allocations: 7.891 kB / 0.6122 GB, free: 12.67 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001263/0.6511, allocations: 43.98 kB / 0.6122 GB, free: 12.63 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003345/0.6515, allocations: 122.1 kB / 0.6124 GB, free: 12.51 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002822/0.6543, allocations: 1.582 MB / 0.6139 GB, free: 10.92 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007834/0.6621, allocations: 4.71 MB / 0.6185 GB, free: 6.086 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00213/0.6643, allocations: 1.346 MB / 0.6198 GB, free: 4.723 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.927e-05/0.6644, allocations: 24.97 kB / 0.6198 GB, free: 4.699 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001253/0.6657, allocations: 0.8217 MB / 0.6206 GB, free: 3.863 MB / 426.7 MB Notification: Performance of pre-optimization done (n=125): time 3.306e-06/0.6657, allocations: 0 / 0.6206 GB, free: 3.863 MB / 426.7 MB Notification: Performance of matching and sorting (n=136): time 0.01142/0.6771, allocations: 5.907 MB / 0.6264 GB, free: 13.84 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.957e-05/0.6772, allocations: 116.1 kB / 0.6265 GB, free: 13.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005846/0.6778, allocations: 470.3 kB / 0.627 GB, free: 13.23 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.649e-05/0.6779, allocations: 53.7 kB / 0.627 GB, free: 13.17 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003636/0.6783, allocations: 464.3 kB / 0.6275 GB, free: 12.71 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003685/0.6787, allocations: 469.2 kB / 0.6279 GB, free: 12.25 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.744e-05/0.6788, allocations: 24 kB / 0.6279 GB, free: 12.22 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.6789, allocations: 398.7 kB / 0.6283 GB, free: 11.82 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001086/0.68, allocations: 0.5999 MB / 0.6289 GB, free: 11.23 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001103/0.6812, allocations: 0.7424 MB / 0.6296 GB, free: 10.45 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001152/0.6823, allocations: 0.7225 MB / 0.6303 GB, free: 9.723 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.6823, allocations: 0 / 0.6303 GB, free: 9.723 MB / 442.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.003698/0.686, allocations: 2.013 MB / 0.6323 GB, free: 7.688 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004033/0.6865, allocations: 1.005 MB / 0.6333 GB, free: 6.609 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.6865, allocations: 0 / 0.6333 GB, free: 6.609 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001289/0.6878, allocations: 465.3 kB / 0.6337 GB, free: 6.148 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/0.6889, allocations: 267.6 kB / 0.634 GB, free: 5.887 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006508/0.6954, allocations: 5.057 MB / 0.6389 GB, free: 0.6484 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/0.6965, allocations: 104 kB / 0.639 GB, free: 0.5469 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.292e-05/0.6966, allocations: 43.98 kB / 0.6391 GB, free: 0.5039 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.6966, allocations: 7.906 kB / 0.6391 GB, free: 0.4961 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003307/0.6999, allocations: 1.841 MB / 0.6409 GB, free: 14.64 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.896e-06/0.7, allocations: 7.953 kB / 0.6409 GB, free: 14.63 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001118/0.7011, allocations: 429.5 kB / 0.6413 GB, free: 14.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00107/0.7022, allocations: 267.6 kB / 0.6415 GB, free: 13.94 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007153/0.7093, allocations: 6.135 MB / 0.6475 GB, free: 7.523 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001046/0.7104, allocations: 99.89 kB / 0.6476 GB, free: 7.426 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001008/0.7105, allocations: 43.98 kB / 0.6477 GB, free: 7.383 MB / 458.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (120): * Single equations (assignments): 117 * 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 8,2 29} Notification: Performance of prepare postOptimizeDAE: time 0.0007796/0.7113, allocations: 420.8 kB / 0.6481 GB, free: 6.961 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001519/0.7115, allocations: 98.83 kB / 0.6482 GB, free: 6.863 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004108/0.7156, allocations: 2.141 MB / 0.6503 GB, free: 4.703 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.53e-05/0.7156, allocations: 20 kB / 0.6503 GB, free: 4.684 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.7156, allocations: 0 / 0.6503 GB, free: 4.684 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.961e-05/0.7156, allocations: 11.92 kB / 0.6503 GB, free: 4.672 MB / 458.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.007102/0.7228, allocations: 3.908 MB / 0.6541 GB, free: 0.6445 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.311e-05/0.7228, allocations: 8.266 kB / 0.6541 GB, free: 0.6367 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009879/0.7238, allocations: 227.7 kB / 0.6543 GB, free: 424 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001669/0.7255, allocations: 0.509 MB / 0.6548 GB, free: 15.9 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.769e-05/0.7256, allocations: 39.94 kB / 0.6549 GB, free: 15.86 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00848/0.7341, allocations: 6.7 MB / 0.6614 GB, free: 8.859 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.7341, allocations: 12.03 kB / 0.6614 GB, free: 8.848 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005409/0.7395, allocations: 3.165 MB / 0.6645 GB, free: 5.57 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006308/0.7402, allocations: 291.7 kB / 0.6648 GB, free: 5.266 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/0.7403, allocations: 35.98 kB / 0.6648 GB, free: 5.23 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007395/0.7411, allocations: 87.91 kB / 0.6649 GB, free: 5.145 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002906/0.7414, allocations: 129 kB / 0.665 GB, free: 5.016 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.231e-05/0.7415, allocations: 36 kB / 0.6651 GB, free: 4.98 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004559/0.7419, allocations: 374.8 kB / 0.6654 GB, free: 4.613 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7419, allocations: 0 / 0.6654 GB, free: 4.613 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001909/0.7439, allocations: 0.6757 MB / 0.6661 GB, free: 3.938 MB / 474.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 (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.2412/0.9851, allocations: 4.462 MB / 0.6704 GB, free: 123.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005042/0.9902, allocations: 3.126 MB / 0.6735 GB, free: 123.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/0.9902, allocations: 1.188 kB / 0.6735 GB, free: 123.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002123/0.9924, allocations: 1.312 MB / 0.6748 GB, free: 123.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009143/0.9933, allocations: 146.8 kB / 0.6749 GB, free: 123.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01268/1.006, allocations: 9.204 MB / 0.6839 GB, free: 119.6 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009976/1.007, allocations: 1.267 MB / 0.6851 GB, free: 118.9 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0009382/1.008, allocations: 294.9 kB / 0.6854 GB, free: 118.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000509/1.008, allocations: 424.5 kB / 0.6858 GB, free: 118.9 MB / 474.7 MB Notification: Performance of SimCode: time 5.6e-06/1.008, allocations: 0 / 0.6858 GB, free: 118.9 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04258/1.051, allocations: 28.28 MB / 0.7134 GB, free: 117.5 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001362/1.051, allocations: 216.5 kB / 0.7136 GB, free: 117.2 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.679/3.73, allocations: 3.938 kB / 0.7137 GB, free: 117.2 MB / 474.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)