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.001038/0.001038, allocations: 179.4 kB / 8.351 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.72/1.72, allocations: 194.3 MB / 203.1 MB, free: 12.95 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.00179/0.00179, allocations: 120.7 kB / 248.1 MB, free: 15.96 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1591/0.1591, allocations: 37.93 MB / 330.9 MB, free: 2.633 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.777e-05/1.779e-05, allocations: 0 / 390.5 MB, free: 6.992 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2854/0.2855, allocations: 53.23 MB / 443.7 MB, free: 17.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1375/0.423, allocations: 97.47 MB / 0.5285 GB, free: 56 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.2632/0.6863, allocations: 80.98 kB / 0.5285 GB, free: 90.43 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1431/0.8295, allocations: 66.22 MB / 0.5932 GB, free: 34.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.8295, allocations: 0 / 0.5932 GB, free: 34.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.085e-05/0.8296, allocations: 20 kB / 0.5932 GB, free: 34.57 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.00257/0.8322, allocations: 1.379 MB / 0.5946 GB, free: 33.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.8322, allocations: 12.03 kB / 0.5946 GB, free: 33.12 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003778/0.836, allocations: 489.9 kB / 0.5951 GB, free: 32.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001376/0.8374, allocations: 0.664 MB / 0.5957 GB, free: 31.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.624e-05/0.8375, allocations: 43.98 kB / 0.5957 GB, free: 31.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001668/0.8376, allocations: 67.91 kB / 0.5958 GB, free: 31.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001672/0.8393, allocations: 1.144 MB / 0.5969 GB, free: 30.67 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001779/0.8411, allocations: 1.324 MB / 0.5982 GB, free: 29.29 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.643e-05/0.8412, allocations: 8 kB / 0.5982 GB, free: 29.29 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001214/0.8413, allocations: 0 / 0.5982 GB, free: 29.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002804/0.8416, allocations: 122.1 kB / 0.5983 GB, free: 29.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007144/0.8487, allocations: 4.511 MB / 0.6028 GB, free: 24.55 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00146/0.8502, allocations: 1.171 MB / 0.6039 GB, free: 23.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007666/0.851, allocations: 0.6935 MB / 0.6046 GB, free: 22.66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.895e-05/0.8511, allocations: 25.28 kB / 0.6046 GB, free: 22.63 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009749/0.8521, allocations: 0.7345 MB / 0.6053 GB, free: 21.88 MB / 378.7 MB Notification: Performance of pre-optimization done (n=125): time 4.037e-06/0.8521, allocations: 0 / 0.6053 GB, free: 21.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=136): time 0.008881/0.861, allocations: 4.451 MB / 0.6097 GB, free: 17.33 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.671e-05/0.8611, allocations: 116.1 kB / 0.6098 GB, free: 17.19 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007587/0.8619, allocations: 426.3 kB / 0.6102 GB, free: 16.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002391/0.8621, allocations: 25.7 kB / 0.6102 GB, free: 16.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004205/0.8626, allocations: 468.2 kB / 0.6107 GB, free: 16.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004946/0.8631, allocations: 441.3 kB / 0.6111 GB, free: 15.83 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.818e-05/0.8632, allocations: 3.984 kB / 0.6111 GB, free: 15.83 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.8634, allocations: 398.8 kB / 0.6115 GB, free: 15.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001191/0.8646, allocations: 0.518 MB / 0.612 GB, free: 14.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001324/0.8659, allocations: 0.6464 MB / 0.6126 GB, free: 14.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001422/0.8674, allocations: 0.6192 MB / 0.6132 GB, free: 13.61 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.613e-06/0.8674, allocations: 0 / 0.6132 GB, free: 13.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.005806/0.8732, allocations: 1.942 MB / 0.6151 GB, free: 11.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002937/0.8735, allocations: 0.9903 MB / 0.6161 GB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/0.8736, allocations: 4 kB / 0.6161 GB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002867/0.8764, allocations: 0.6436 MB / 0.6167 GB, free: 9.938 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001617/0.8781, allocations: 223.6 kB / 0.6169 GB, free: 9.719 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002669/0.8808, allocations: 1.605 MB / 0.6185 GB, free: 8.086 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001833/0.8826, allocations: 75.92 kB / 0.6185 GB, free: 8.012 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001791/0.8828, allocations: 47.98 kB / 0.6186 GB, free: 7.965 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.8829, allocations: 5.719 kB / 0.6186 GB, free: 7.961 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005307/0.8882, allocations: 1.785 MB / 0.6203 GB, free: 6.172 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.8882, allocations: 3.984 kB / 0.6203 GB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002892/0.8911, allocations: 0.6322 MB / 0.621 GB, free: 5.531 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001731/0.8929, allocations: 223.7 kB / 0.6212 GB, free: 5.312 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01179/0.9047, allocations: 5.323 MB / 0.6264 GB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001875/0.9066, allocations: 75.94 kB / 0.6264 GB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001933/0.9068, allocations: 43.98 kB / 0.6265 GB, free: 15.71 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.0004545/0.9073, allocations: 120.8 kB / 0.6266 GB, free: 15.58 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00556/0.9129, allocations: 1.697 MB / 0.6283 GB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003114/0.9132, allocations: 94.88 kB / 0.6284 GB, free: 13.78 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006338/0.9196, allocations: 1.88 MB / 0.6302 GB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.632e-05/0.9197, allocations: 20 kB / 0.6302 GB, free: 11.86 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.543e-06/0.9197, allocations: 0 / 0.6302 GB, free: 11.86 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.346e-05/0.9197, allocations: 3.984 kB / 0.6302 GB, free: 11.86 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.009661/0.9294, allocations: 3.511 MB / 0.6336 GB, free: 8.246 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.436e-05/0.9294, allocations: 4 kB / 0.6336 GB, free: 8.242 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0015/0.931, allocations: 223.9 kB / 0.6339 GB, free: 8.023 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00228/0.9333, allocations: 489.2 kB / 0.6343 GB, free: 7.539 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002033/0.9335, allocations: 11.98 kB / 0.6343 GB, free: 7.527 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01409/0.9476, allocations: 6.331 MB / 0.6405 GB, free: 0.9375 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.394e-05/0.9477, allocations: 4 kB / 0.6405 GB, free: 0.9336 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009045/0.9567, allocations: 2.872 MB / 0.6433 GB, free: 13.95 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001124/0.9579, allocations: 283.9 kB / 0.6436 GB, free: 13.65 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002381/0.9582, allocations: 4 kB / 0.6436 GB, free: 13.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001463/0.9596, allocations: 67.91 kB / 0.6437 GB, free: 13.58 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004757/0.9601, allocations: 125 kB / 0.6438 GB, free: 13.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001472/0.9603, allocations: 44 kB / 0.6438 GB, free: 13.41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007036/0.961, allocations: 326.9 kB / 0.6441 GB, free: 13.09 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.9611, allocations: 0 / 0.6441 GB, free: 13.09 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003181/0.9642, allocations: 0.5663 MB / 0.6447 GB, free: 12.52 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.009254/0.9735, allocations: 4.125 MB / 0.6487 GB, free: 8.301 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008188/0.9818, allocations: 2.619 MB / 0.6513 GB, free: 5.641 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-05/0.9819, allocations: 0 / 0.6513 GB, free: 5.641 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003751/0.9856, allocations: 1.177 MB / 0.6524 GB, free: 4.449 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001727/0.9874, allocations: 124.4 kB / 0.6525 GB, free: 4.328 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008115/0.9955, allocations: 2.329 MB / 0.6548 GB, free: 1.926 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001368/0.9969, allocations: 1.26 MB / 0.656 GB, free: 0.6367 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00174/0.9987, allocations: 318.6 kB / 0.6564 GB, free: 328 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009381/0.9997, allocations: 419.4 kB / 0.6568 GB, free: 15.91 MB / 426.7 MB Notification: Performance of SimCode: time 1.232e-06/0.9997, allocations: 0 / 0.6568 GB, free: 15.91 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06175/1.061, allocations: 28.66 MB / 0.6847 GB, free: 3.199 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002091/1.062, allocations: 141.6 kB / 0.6849 GB, free: 3.008 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.024/4.086, allocations: 0 / 0.6849 GB, free: 3.008 MB / 442.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)