Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled") translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001419/0.001419, allocations: 185.7 kB / 8.01 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.091/2.091, allocations: 205.3 MB / 213.7 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001045/0.001044, allocations: 90.47 kB / 261.8 MB, free: 1.668 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2651/0.2651, allocations: 38 MB / 347.7 MB, free: 5.754 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.131e-05/2.14e-05, allocations: 0 / 409.9 MB, free: 35.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1086, allocations: 56.32 MB / 466.2 MB, free: 10.81 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.497/0.6056, allocations: 103.5 MB / 0.5563 GB, free: 8.613 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002921/0.606, allocations: 86.8 kB / 0.5564 GB, free: 8.582 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2711/0.8771, allocations: 66.95 MB / 0.6218 GB, free: 12.77 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.8771, allocations: 0 / 0.6218 GB, free: 12.77 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.975e-05/0.8773, allocations: 28 kB / 0.6218 GB, free: 12.75 MB / 426.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.004605/0.8819, allocations: 1.403 MB / 0.6232 GB, free: 11.29 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/0.8819, allocations: 8.031 kB / 0.6232 GB, free: 11.28 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006119/0.8881, allocations: 489.8 kB / 0.6237 GB, free: 10.8 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002377/0.8905, allocations: 0.6991 MB / 0.6244 GB, free: 10.05 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.757e-05/0.8906, allocations: 36 kB / 0.6244 GB, free: 10.02 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003043/0.8909, allocations: 67.95 kB / 0.6245 GB, free: 9.953 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00346/0.8944, allocations: 1.16 MB / 0.6256 GB, free: 8.789 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003869/0.8983, allocations: 1.358 MB / 0.6269 GB, free: 7.375 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.14e-05/0.8984, allocations: 8 kB / 0.6269 GB, free: 7.367 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001565/0.8986, allocations: 0 / 0.6269 GB, free: 7.367 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005617/0.8991, allocations: 114.2 kB / 0.627 GB, free: 7.254 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01365/0.9128, allocations: 4.735 MB / 0.6317 GB, free: 2.402 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002833/0.9157, allocations: 1.179 MB / 0.6328 GB, free: 1.207 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00172/0.9175, allocations: 0.6976 MB / 0.6335 GB, free: 0.5039 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001714/0.9176, allocations: 25.28 kB / 0.6335 GB, free: 488 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002454/0.9201, allocations: 0.7352 MB / 0.6342 GB, free: 15.72 MB / 442.7 MB Notification: Performance of pre-optimization done (n=126): time 5.731e-06/0.9202, allocations: 0 / 0.6342 GB, free: 15.72 MB / 442.7 MB Notification: Performance of matching and sorting (n=137): time 0.01932/0.9395, allocations: 4.473 MB / 0.6386 GB, free: 11.15 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/0.9397, allocations: 124.1 kB / 0.6387 GB, free: 11 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001208/0.9409, allocations: 450.4 kB / 0.6392 GB, free: 10.56 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002767/0.9412, allocations: 25.7 kB / 0.6392 GB, free: 10.53 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006709/0.9419, allocations: 0.4948 MB / 0.6397 GB, free: 10.03 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008375/0.9427, allocations: 449.3 kB / 0.6401 GB, free: 9.582 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001585/0.9429, allocations: 4.031 kB / 0.6401 GB, free: 9.578 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002598/0.9432, allocations: 358.8 kB / 0.6404 GB, free: 9.219 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002033/0.9452, allocations: 0.5219 MB / 0.6409 GB, free: 8.695 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002333/0.9476, allocations: 0.6714 MB / 0.6416 GB, free: 7.984 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002487/0.9501, allocations: 0.6153 MB / 0.6422 GB, free: 7.371 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.726e-06/0.9501, allocations: 0 / 0.6422 GB, free: 7.371 MB / 442.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.009344/0.9595, allocations: 1.923 MB / 0.6441 GB, free: 5.434 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007414/0.9603, allocations: 1.164 MB / 0.6452 GB, free: 4.172 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.158e-05/0.9603, allocations: 4 kB / 0.6452 GB, free: 4.168 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004957/0.9653, allocations: 0.6514 MB / 0.6459 GB, free: 3.516 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002679/0.968, allocations: 227.6 kB / 0.6461 GB, free: 3.293 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004629/0.9727, allocations: 1.636 MB / 0.6477 GB, free: 1.629 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00241/0.9752, allocations: 79.83 kB / 0.6477 GB, free: 1.551 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002319/0.9754, allocations: 43.98 kB / 0.6478 GB, free: 1.508 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.9754, allocations: 4 kB / 0.6478 GB, free: 1.504 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008756/0.9842, allocations: 1.812 MB / 0.6496 GB, free: 15.69 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.138e-05/0.9843, allocations: 4 kB / 0.6496 GB, free: 15.68 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004295/0.9886, allocations: 0.5836 MB / 0.6501 GB, free: 15.09 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002544/0.9912, allocations: 219.7 kB / 0.6503 GB, free: 14.88 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01582/1.007, allocations: 5.416 MB / 0.6556 GB, free: 9.301 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001544/1.009, allocations: 72.02 kB / 0.6557 GB, free: 9.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001661/1.009, allocations: 48.05 kB / 0.6558 GB, free: 9.184 MB / 458.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 99 * 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 57} Notification: Performance of prepare postOptimizeDAE: time 0.0003798/1.009, allocations: 132.7 kB / 0.6559 GB, free: 9.047 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003186/1.01, allocations: 94.86 kB / 0.656 GB, free: 8.953 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006288/1.016, allocations: 1.899 MB / 0.6578 GB, free: 7.039 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.939e-05/1.016, allocations: 16 kB / 0.6578 GB, free: 7.023 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/1.016, allocations: 0 / 0.6578 GB, free: 7.023 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.863e-05/1.016, allocations: 7.969 kB / 0.6578 GB, free: 7.016 MB / 458.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.01133/1.027, allocations: 3.526 MB / 0.6613 GB, free: 3.383 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.847e-05/1.027, allocations: 7.953 kB / 0.6613 GB, free: 3.375 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001979/1.029, allocations: 223.9 kB / 0.6615 GB, free: 3.156 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00264/1.032, allocations: 485.2 kB / 0.662 GB, free: 2.676 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002917/1.032, allocations: 12 kB / 0.662 GB, free: 2.664 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01445/1.047, allocations: 6.328 MB / 0.6682 GB, free: 12.07 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/1.047, allocations: 7.938 kB / 0.6682 GB, free: 12.07 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008345/1.055, allocations: 2.879 MB / 0.671 GB, free: 9.074 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001059/1.056, allocations: 287.8 kB / 0.6713 GB, free: 8.773 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00024/1.057, allocations: 8 kB / 0.6713 GB, free: 8.766 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001515/1.058, allocations: 71.89 kB / 0.6713 GB, free: 8.695 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004268/1.059, allocations: 121.1 kB / 0.6715 GB, free: 8.578 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000135/1.059, allocations: 39.98 kB / 0.6715 GB, free: 8.539 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007195/1.06, allocations: 342.9 kB / 0.6718 GB, free: 8.203 MB / 474.7 MB Notification: Performance of sort global known variables: time 4e-07/1.06, allocations: 0 / 0.6718 GB, free: 8.203 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003047/1.063, allocations: 0.5702 MB / 0.6724 GB, free: 7.633 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) * 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.000435/1.063, allocations: 131 kB / 0.6725 GB, free: 7.492 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007644/1.071, allocations: 2.624 MB / 0.6751 GB, free: 4.84 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.275e-06/1.071, allocations: 0 / 0.6751 GB, free: 4.84 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003312/1.074, allocations: 1.169 MB / 0.6762 GB, free: 3.652 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001475/1.076, allocations: 140.4 kB / 0.6763 GB, free: 3.516 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0065/1.082, allocations: 2.194 MB / 0.6785 GB, free: 1.254 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001448/1.084, allocations: 1.275 MB / 0.6797 GB, free: 15.95 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006655/1.084, allocations: 79.41 kB / 0.6798 GB, free: 15.87 MB / 490.7 MB Notification: Performance of SimCode: time 8.81e-07/1.084, allocations: 0 / 0.6798 GB, free: 15.87 MB / 490.7 MB Notification: Performance of Templates: time 0.3528/1.437, allocations: 19.92 MB / 0.6992 GB, free: 127.2 MB / 490.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.makefile (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 & ./PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1)