Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001209/0.001209, allocations: 177.5 kB / 16.76 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.57/1.57, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008289/0.0008289, allocations: 97.39 kB / 271.3 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1677/0.1677, allocations: 38.07 MB / 357.6 MB, free: 1.738 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004255/0.0004256, allocations: 12 kB / 423.9 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2844, allocations: 56.32 MB / 480.3 MB, free: 9.215 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1301/0.4146, allocations: 104.3 MB / 0.5709 GB, free: 14.01 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002444/0.4149, allocations: 91.94 kB / 0.571 GB, free: 13.92 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1545/0.5694, allocations: 67.72 MB / 0.6371 GB, free: 9.473 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.5694, allocations: 0 / 0.6371 GB, free: 9.473 MB / 474.7 MB Notification: Performance of Transformations before backend: time 5.411e-05/0.5695, allocations: 24 kB / 0.6371 GB, free: 9.449 MB / 474.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.002716/0.5722, allocations: 1.496 MB / 0.6386 GB, free: 7.887 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.5723, allocations: 12.03 kB / 0.6386 GB, free: 7.875 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003533/0.5758, allocations: 498.7 kB / 0.6391 GB, free: 7.387 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001232/0.5771, allocations: 0.7116 MB / 0.6398 GB, free: 6.633 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.369e-05/0.5771, allocations: 86.47 kB / 0.6399 GB, free: 6.547 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001799/0.5773, allocations: 116.3 kB / 0.64 GB, free: 6.434 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002682/0.58, allocations: 1.589 MB / 0.6415 GB, free: 4.785 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.835e-05/0.5801, allocations: 8.172 kB / 0.6415 GB, free: 4.777 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001184/0.5802, allocations: 47.92 kB / 0.6416 GB, free: 4.73 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000286/0.5805, allocations: 118.2 kB / 0.6417 GB, free: 4.613 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002712/0.5832, allocations: 1.609 MB / 0.6433 GB, free: 2.996 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1808/0.764, allocations: 4.933 MB / 0.6481 GB, free: 111 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002141/0.7662, allocations: 1.343 MB / 0.6494 GB, free: 111 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001201/0.7674, allocations: 0.8023 MB / 0.6502 GB, free: 110.9 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.515e-05/0.7675, allocations: 23.62 kB / 0.6502 GB, free: 110.9 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001377/0.7689, allocations: 0.8369 MB / 0.651 GB, free: 110.9 MB / 474.7 MB Notification: Performance of pre-optimization done (n=126): time 3.867e-06/0.7689, allocations: 0 / 0.651 GB, free: 110.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=137): time 0.01155/0.7805, allocations: 5.944 MB / 0.6568 GB, free: 110 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.094e-05/0.7806, allocations: 125.1 kB / 0.6569 GB, free: 109.8 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008535/0.7814, allocations: 0.5679 MB / 0.6575 GB, free: 109.7 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001377/0.7816, allocations: 50.58 kB / 0.6575 GB, free: 109.7 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003849/0.782, allocations: 483.3 kB / 0.658 GB, free: 109.5 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004038/0.7824, allocations: 465.5 kB / 0.6584 GB, free: 109.3 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.505e-05/0.7825, allocations: 25.53 kB / 0.6585 GB, free: 109.3 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.7827, allocations: 409.5 kB / 0.6589 GB, free: 108.9 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001137/0.7838, allocations: 0.602 MB / 0.6594 GB, free: 108.9 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001216/0.785, allocations: 0.7611 MB / 0.6602 GB, free: 108.8 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002359/0.7874, allocations: 1.475 MB / 0.6616 GB, free: 108.7 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.7874, allocations: 1.438 kB / 0.6616 GB, free: 108.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.004121/0.7915, allocations: 2.074 MB / 0.6637 GB, free: 108.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001095/0.7917, allocations: 210 kB / 0.6639 GB, free: 108.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.7917, allocations: 3.141 kB / 0.6639 GB, free: 108.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00139/0.7931, allocations: 471.8 kB / 0.6643 GB, free: 108.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001208/0.7943, allocations: 271 kB / 0.6646 GB, free: 108.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00735/0.8017, allocations: 6.291 MB / 0.6707 GB, free: 105.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001111/0.8028, allocations: 103.3 kB / 0.6708 GB, free: 105.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001121/0.8029, allocations: 48.22 kB / 0.6709 GB, free: 105.4 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.475e-06/0.803, allocations: 7.844 kB / 0.6709 GB, free: 105.4 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00332/0.8063, allocations: 1.871 MB / 0.6727 GB, free: 105.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.8063, allocations: 3.938 kB / 0.6727 GB, free: 105.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/0.8073, allocations: 436 kB / 0.6731 GB, free: 105.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009784/0.8083, allocations: 271.1 kB / 0.6734 GB, free: 105.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005854/0.8142, allocations: 6.065 MB / 0.6793 GB, free: 102.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001061/0.8153, allocations: 103.2 kB / 0.6794 GB, free: 102.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.573e-05/0.8154, allocations: 47.78 kB / 0.6794 GB, free: 102.3 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.0007508/0.8162, allocations: 427.7 kB / 0.6798 GB, free: 102.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001665/0.8163, allocations: 96.44 kB / 0.6799 GB, free: 102.1 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003691/0.82, allocations: 2.162 MB / 0.6821 GB, free: 101.3 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-05/0.8201, allocations: 15.38 kB / 0.6821 GB, free: 101.3 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.8201, allocations: 0 / 0.6821 GB, free: 101.3 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.466e-05/0.8201, allocations: 11.72 kB / 0.6821 GB, free: 101.3 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.006049/0.8261, allocations: 3.954 MB / 0.6859 GB, free: 99.64 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/0.8262, allocations: 3.094 kB / 0.6859 GB, free: 99.64 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008192/0.827, allocations: 228.2 kB / 0.6862 GB, free: 99.63 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001423/0.8284, allocations: 0.507 MB / 0.6867 GB, free: 99.51 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.888e-05/0.8286, allocations: 42.94 kB / 0.6867 GB, free: 99.48 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006904/0.8355, allocations: 6.53 MB / 0.6931 GB, free: 95.08 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.8355, allocations: 3.656 kB / 0.6931 GB, free: 95.08 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004756/0.8403, allocations: 3.083 MB / 0.6961 GB, free: 93.79 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000513/0.8408, allocations: 291.8 kB / 0.6964 GB, free: 93.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001279/0.841, allocations: 32.91 kB / 0.6964 GB, free: 93.58 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006838/0.8417, allocations: 94.78 kB / 0.6965 GB, free: 93.55 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002527/0.8419, allocations: 120 kB / 0.6966 GB, free: 93.54 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.719e-05/0.842, allocations: 41.27 kB / 0.6966 GB, free: 93.53 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004187/0.8424, allocations: 402.9 kB / 0.697 GB, free: 93.34 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8424, allocations: 7.75 kB / 0.697 GB, free: 93.34 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001797/0.8442, allocations: 0.6852 MB / 0.6977 GB, free: 93.27 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 (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.0002197/0.8445, allocations: 153.5 kB / 0.6978 GB, free: 93.15 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004228/0.8487, allocations: 3.289 MB / 0.7011 GB, free: 91.61 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.8487, allocations: 0 / 0.7011 GB, free: 91.61 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001714/0.8504, allocations: 1.301 MB / 0.7023 GB, free: 90.98 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.8516, allocations: 181.5 kB / 0.7025 GB, free: 90.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00385/0.8554, allocations: 3.286 MB / 0.7057 GB, free: 89.11 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006503/0.8561, allocations: 1.263 MB / 0.7069 GB, free: 88.33 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003608/0.8565, allocations: 86.19 kB / 0.707 GB, free: 88.32 MB / 474.7 MB Notification: Performance of SimCode: time 5.61e-07/0.8565, allocations: 0 / 0.707 GB, free: 88.32 MB / 474.7 MB Notification: Performance of Templates: time 0.02317/0.8796, allocations: 23.32 MB / 0.7298 GB, free: 84.11 MB / 474.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)