Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.Generic.Network.NetworkControlled.conf.json Using package PowerSystems with version 1.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.Generic.Network.NetworkControlled") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002737/0.002742, allocations: 364.5 kB / 17.21 MB, free: 4.914 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.84/3.84, allocations: 388.9 MB / 406.8 MB, free: 11.89 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003553/0.003553, allocations: 237.6 kB / 452.2 MB, free: 14.5 MB / 378.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.7445/0.7445, allocations: 76 MB / 0.56 GB, free: 177.7 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004364/0.0004366, allocations: 8 kB / 0.6222 GB, free: 114.2 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09186/0.09232, allocations: 53.22 MB / 0.6742 GB, free: 60.95 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4583/0.5507, allocations: 98.23 MB / 0.7701 GB, free: 81.63 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002945/0.551, allocations: 88.09 kB / 0.7702 GB, free: 81.63 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2393/0.7903, allocations: 66.9 MB / 0.8356 GB, free: 45.04 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.7904, allocations: 0 / 0.8356 GB, free: 45.04 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.366e-05/0.7905, allocations: 20 kB / 0.8356 GB, free: 45.02 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: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.004317/0.7948, allocations: 1.472 MB / 0.837 GB, free: 43.49 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.7949, allocations: 12.02 kB / 0.837 GB, free: 43.48 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005975/0.8009, allocations: 482.5 kB / 0.8375 GB, free: 43 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001987/0.8029, allocations: 0.6804 MB / 0.8381 GB, free: 42.29 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.792e-05/0.803, allocations: 79.97 kB / 0.8382 GB, free: 42.22 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002833/0.8033, allocations: 109.4 kB / 0.8383 GB, free: 42.11 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004026/0.8073, allocations: 1.56 MB / 0.8398 GB, free: 40.51 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.991e-05/0.8074, allocations: 4 kB / 0.8399 GB, free: 40.51 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001703/0.8076, allocations: 43.66 kB / 0.8399 GB, free: 40.47 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004658/0.8081, allocations: 122.1 kB / 0.84 GB, free: 40.35 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004787/0.8129, allocations: 1.586 MB / 0.8416 GB, free: 38.75 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0125/0.8254, allocations: 4.717 MB / 0.8462 GB, free: 33.93 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003646/0.8291, allocations: 1.357 MB / 0.8475 GB, free: 32.56 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002119/0.8313, allocations: 0.784 MB / 0.8483 GB, free: 31.77 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001446/0.8315, allocations: 24.97 kB / 0.8483 GB, free: 31.75 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002179/0.8337, allocations: 0.8295 MB / 0.8491 GB, free: 30.9 MB / 442.7 MB Notification: Performance of pre-optimization done (n=125): time 4.368e-06/0.8337, allocations: 0 / 0.8491 GB, free: 30.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=136): time 0.01938/0.8531, allocations: 5.886 MB / 0.8548 GB, free: 24.9 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.569e-05/0.8532, allocations: 124.1 kB / 0.855 GB, free: 24.76 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009105/0.8541, allocations: 0.5264 MB / 0.8555 GB, free: 24.23 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003085/0.8545, allocations: 49.7 kB / 0.8555 GB, free: 24.17 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004196/0.8549, allocations: 468.4 kB / 0.856 GB, free: 23.71 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007019/0.8556, allocations: 465.1 kB / 0.8564 GB, free: 23.25 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001296/0.8558, allocations: 28 kB / 0.8564 GB, free: 23.22 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002308/0.856, allocations: 402.7 kB / 0.8568 GB, free: 22.82 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001938/0.858, allocations: 0.5999 MB / 0.8574 GB, free: 22.21 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001959/0.86, allocations: 0.7425 MB / 0.8581 GB, free: 21.44 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002066/0.8621, allocations: 0.7225 MB / 0.8588 GB, free: 20.71 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.8621, allocations: 0 / 0.8588 GB, free: 20.71 MB / 442.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.006449/0.8686, allocations: 2.041 MB / 0.8608 GB, free: 18.65 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001168/0.8687, allocations: 196.6 kB / 0.861 GB, free: 18.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.8688, allocations: 4 kB / 0.861 GB, free: 18.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002176/0.8709, allocations: 462.9 kB / 0.8615 GB, free: 17.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002182/0.8732, allocations: 267.6 kB / 0.8617 GB, free: 17.69 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01182/0.885, allocations: 6.237 MB / 0.8678 GB, free: 11.19 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001841/0.8869, allocations: 107.9 kB / 0.8679 GB, free: 11.08 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001673/0.8871, allocations: 43.98 kB / 0.868 GB, free: 11.04 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.8871, allocations: 11.39 kB / 0.868 GB, free: 11.03 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005619/0.8927, allocations: 1.845 MB / 0.8698 GB, free: 9.172 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/0.8928, allocations: 8.219 kB / 0.8698 GB, free: 9.164 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001967/0.8948, allocations: 421.4 kB / 0.8702 GB, free: 8.746 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00221/0.897, allocations: 269.5 kB / 0.8704 GB, free: 8.484 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01027/0.9073, allocations: 6.016 MB / 0.8763 GB, free: 2.195 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001732/0.9091, allocations: 91.89 kB / 0.8764 GB, free: 2.105 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001783/0.9093, allocations: 47.98 kB / 0.8764 GB, free: 2.059 MB / 442.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.0009772/0.9103, allocations: 428.7 kB / 0.8768 GB, free: 1.629 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002518/0.9106, allocations: 94.94 kB / 0.8769 GB, free: 1.535 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007007/0.9176, allocations: 2.145 MB / 0.879 GB, free: 15.37 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.598e-05/0.9177, allocations: 16 kB / 0.879 GB, free: 15.36 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.9177, allocations: 0 / 0.879 GB, free: 15.36 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.218e-05/0.9177, allocations: 7.969 kB / 0.8791 GB, free: 15.35 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.01249/0.9302, allocations: 3.917 MB / 0.8829 GB, free: 11.32 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.007e-05/0.9303, allocations: 8.062 kB / 0.8829 GB, free: 11.31 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001971/0.9323, allocations: 219.7 kB / 0.8831 GB, free: 11.09 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003054/0.9354, allocations: 0.5132 MB / 0.8836 GB, free: 10.58 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002731/0.9357, allocations: 28 kB / 0.8836 GB, free: 10.55 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01454/0.9502, allocations: 6.554 MB / 0.89 GB, free: 3.703 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.316e-06/0.9503, allocations: 4 kB / 0.89 GB, free: 3.699 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01009/0.9604, allocations: 3.061 MB / 0.893 GB, free: 0.582 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009442/0.9614, allocations: 287.8 kB / 0.8933 GB, free: 288 kB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002379/0.9616, allocations: 27.98 kB / 0.8933 GB, free: 260 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001579/0.9632, allocations: 95.91 kB / 0.8934 GB, free: 164 kB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004532/0.9637, allocations: 121 kB / 0.8935 GB, free: 44 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001478/0.9639, allocations: 43.98 kB / 0.8936 GB, free: 0 / 458.7 MB Notification: Performance of sorting global known variables: time 0.0008/0.9647, allocations: 374.8 kB / 0.8939 GB, free: 15.63 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.9647, allocations: 3.938 kB / 0.8939 GB, free: 15.63 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003479/0.9682, allocations: 0.6719 MB / 0.8946 GB, free: 14.96 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.0003836/0.9686, allocations: 159.1 kB / 0.8947 GB, free: 14.79 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009589/0.9782, allocations: 3.258 MB / 0.8979 GB, free: 11.46 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.438e-06/0.9783, allocations: 4.062 kB / 0.8979 GB, free: 11.46 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003996/0.9823, allocations: 1.305 MB / 0.8992 GB, free: 10.13 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001685/0.984, allocations: 172.8 kB / 0.8994 GB, free: 9.957 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008029/0.9921, allocations: 3.152 MB / 0.9024 GB, free: 6.754 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001357/0.9935, allocations: 1.271 MB / 0.9037 GB, free: 5.453 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001667/0.9952, allocations: 290.7 kB / 0.904 GB, free: 5.164 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005016/0.9957, allocations: 75.42 kB / 0.904 GB, free: 5.09 MB / 474.7 MB Notification: Performance of SimCode: time 1.052e-06/0.9958, allocations: 0 / 0.904 GB, free: 5.09 MB / 474.7 MB Notification: Performance of Templates: time 0.3604/1.356, allocations: 19.71 MB / 0.9233 GB, free: 109.2 MB / 474.7 MB