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.002049/0.002049, allocations: 183.8 kB / 15.76 MB, free: 6.344 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.133/2.133, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001064/0.001064, allocations: 98.73 kB / 270.3 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.256/0.256, allocations: 38.06 MB / 356.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004667/0.0004668, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1109, allocations: 56.33 MB / 479 MB, free: 2.039 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5273/0.6383, allocations: 104.3 MB / 0.5697 GB, free: 12.15 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003198/0.6387, allocations: 88.2 kB / 0.5697 GB, free: 12.11 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2782/0.9169, allocations: 67.64 MB / 0.6358 GB, free: 15.44 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.917, allocations: 0 / 0.6358 GB, free: 15.44 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001008/0.9171, allocations: 24 kB / 0.6358 GB, free: 15.42 MB / 442.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.005364/0.9225, allocations: 1.504 MB / 0.6373 GB, free: 13.86 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/0.9226, allocations: 8.031 kB / 0.6373 GB, free: 13.85 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006385/0.929, allocations: 497.8 kB / 0.6378 GB, free: 13.36 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002454/0.9315, allocations: 0.6913 MB / 0.6384 GB, free: 12.62 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001183/0.9316, allocations: 78.17 kB / 0.6385 GB, free: 12.55 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004179/0.9321, allocations: 127.8 kB / 0.6386 GB, free: 12.42 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004913/0.937, allocations: 1.58 MB / 0.6402 GB, free: 10.78 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-05/0.9371, allocations: 4 kB / 0.6402 GB, free: 10.78 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001976/0.9373, allocations: 43.98 kB / 0.6402 GB, free: 10.73 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005356/0.9379, allocations: 122.2 kB / 0.6404 GB, free: 10.61 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005389/0.9433, allocations: 1.601 MB / 0.6419 GB, free: 9 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01449/0.9578, allocations: 4.949 MB / 0.6467 GB, free: 3.922 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004095/0.9619, allocations: 1.341 MB / 0.6481 GB, free: 2.559 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001822/0.9622, allocations: 24.97 kB / 0.6481 GB, free: 2.535 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002515/0.9647, allocations: 0.8372 MB / 0.6489 GB, free: 1.684 MB / 442.7 MB Notification: Performance of pre-optimization done (n=126): time 4.959e-06/0.9647, allocations: 0 / 0.6489 GB, free: 1.684 MB / 442.7 MB Notification: Performance of matching and sorting (n=137): time 0.02228/0.987, allocations: 5.937 MB / 0.6547 GB, free: 11.62 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.9872, allocations: 120.2 kB / 0.6548 GB, free: 11.48 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001111/0.9883, allocations: 0.4994 MB / 0.6553 GB, free: 10.97 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003208/0.9886, allocations: 49.7 kB / 0.6553 GB, free: 10.92 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000568/0.9892, allocations: 0.4948 MB / 0.6558 GB, free: 10.42 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007527/0.99, allocations: 469.2 kB / 0.6563 GB, free: 9.953 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/0.9902, allocations: 24 kB / 0.6563 GB, free: 9.93 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002466/0.9904, allocations: 358.8 kB / 0.6566 GB, free: 9.57 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002069/0.9925, allocations: 0.5999 MB / 0.6572 GB, free: 8.969 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002281/0.9948, allocations: 0.7611 MB / 0.658 GB, free: 8.168 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002466/0.9973, allocations: 0.7264 MB / 0.6587 GB, free: 7.438 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.274e-06/0.9973, allocations: 0 / 0.6587 GB, free: 7.438 MB / 458.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.007252/1.005, allocations: 2.01 MB / 0.6606 GB, free: 5.406 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006711/1.005, allocations: 1.171 MB / 0.6618 GB, free: 4.141 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.773e-05/1.005, allocations: 4 kB / 0.6618 GB, free: 4.137 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002521/1.008, allocations: 465.3 kB / 0.6622 GB, free: 3.676 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002372/1.01, allocations: 267.6 kB / 0.6625 GB, free: 3.414 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01168/1.022, allocations: 5.045 MB / 0.6674 GB, free: 14.19 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001917/1.024, allocations: 115.9 kB / 0.6675 GB, free: 14.07 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001945/1.024, allocations: 47.98 kB / 0.6676 GB, free: 14.03 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/1.024, allocations: 4 kB / 0.6676 GB, free: 14.02 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006448/1.031, allocations: 1.869 MB / 0.6694 GB, free: 12.14 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.589e-05/1.031, allocations: 4 kB / 0.6694 GB, free: 12.14 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001969/1.033, allocations: 406.3 kB / 0.6698 GB, free: 11.73 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002328/1.035, allocations: 271.6 kB / 0.6701 GB, free: 11.47 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01351/1.049, allocations: 6.194 MB / 0.6761 GB, free: 4.984 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001646/1.05, allocations: 103.9 kB / 0.6762 GB, free: 4.883 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002136/1.051, allocations: 43.98 kB / 0.6762 GB, free: 4.84 MB / 474.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.001123/1.052, allocations: 432.8 kB / 0.6767 GB, free: 4.406 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003335/1.052, allocations: 94.88 kB / 0.6767 GB, free: 4.312 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008059/1.06, allocations: 2.161 MB / 0.6789 GB, free: 2.129 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.937e-05/1.06, allocations: 12 kB / 0.6789 GB, free: 2.117 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/1.06, allocations: 8 kB / 0.6789 GB, free: 2.109 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.285e-05/1.06, allocations: 7.969 kB / 0.6789 GB, free: 2.102 MB / 474.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.01324/1.074, allocations: 3.951 MB / 0.6827 GB, free: 14.03 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.939e-05/1.074, allocations: 4 kB / 0.6827 GB, free: 14.02 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002031/1.076, allocations: 219.7 kB / 0.683 GB, free: 13.81 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003138/1.079, allocations: 0.5092 MB / 0.6834 GB, free: 13.29 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003168/1.079, allocations: 31.98 kB / 0.6835 GB, free: 13.26 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01554/1.095, allocations: 6.715 MB / 0.69 GB, free: 6.258 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.253e-06/1.095, allocations: 4 kB / 0.69 GB, free: 6.254 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01043/1.105, allocations: 3.2 MB / 0.6932 GB, free: 2.934 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/1.106, allocations: 287.8 kB / 0.6934 GB, free: 2.633 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000307/1.107, allocations: 28 kB / 0.6935 GB, free: 2.605 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001526/1.108, allocations: 99.83 kB / 0.6936 GB, free: 2.508 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004731/1.109, allocations: 125 kB / 0.6937 GB, free: 2.387 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001413/1.109, allocations: 47.98 kB / 0.6937 GB, free: 2.34 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0008252/1.11, allocations: 395.1 kB / 0.6941 GB, free: 1.957 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.11, allocations: 0 / 0.6941 GB, free: 1.957 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003138/1.113, allocations: 0.6796 MB / 0.6948 GB, free: 1.277 MB / 490.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.0004275/1.113, allocations: 155 kB / 0.6949 GB, free: 1.117 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009885/1.123, allocations: 3.16 MB / 0.698 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.859e-06/1.123, allocations: 0 / 0.698 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004145/1.127, allocations: 1.297 MB / 0.6993 GB, free: 12.58 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001546/1.129, allocations: 161.4 kB / 0.6994 GB, free: 12.42 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008559/1.138, allocations: 3.28 MB / 0.7026 GB, free: 9.078 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001464/1.139, allocations: 1.287 MB / 0.7039 GB, free: 7.762 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007073/1.14, allocations: 83.41 kB / 0.704 GB, free: 7.68 MB / 0.4948 GB Notification: Performance of SimCode: time 1.373e-06/1.14, allocations: 0 / 0.704 GB, free: 7.68 MB / 0.4948 GB Notification: Performance of Templates: time 0.3627/1.503, allocations: 22.32 MB / 0.7258 GB, free: 133.5 MB / 0.4948 GB 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)