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.002404/0.002408, allocations: 360.1 kB / 16.57 MB, free: 5.559 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.466/3.466, allocations: 388.9 MB / 406.2 MB, free: 11.99 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.003487/0.003487, allocations: 238 kB / 451.6 MB, free: 14.58 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.6557/0.6557, allocations: 76.01 MB / 0.5594 GB, free: 177.7 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004809/0.0004812, allocations: 12 kB / 0.6216 GB, free: 114.3 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06622/0.06673, allocations: 53.24 MB / 0.6736 GB, free: 60.95 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.007899/0.07467, allocations: 8.681 MB / 0.6821 GB, free: 52.23 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.00629/0.08098, allocations: 5.094 MB / 0.6871 GB, free: 47.13 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004547/0.08146, allocations: 31.88 kB / 0.6871 GB, free: 47.1 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003522/0.08183, allocations: 182.6 kB / 0.6873 GB, free: 46.92 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001976/0.08382, allocations: 1.007 MB / 0.6882 GB, free: 45.91 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00105/0.08489, allocations: 442.7 kB / 0.6887 GB, free: 45.47 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.001826/0.08673, allocations: 2.44 MB / 0.691 GB, free: 43.02 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002328/0.08908, allocations: 1.385 MB / 0.6924 GB, free: 41.59 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000704/0.0898, allocations: 0.6492 MB / 0.693 GB, free: 40.94 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008761/0.09069, allocations: 0.8369 MB / 0.6938 GB, free: 40.1 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001248/0.09083, allocations: 55.94 kB / 0.6939 GB, free: 40.04 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001414/0.09226, allocations: 0.8372 MB / 0.6947 GB, free: 39.2 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004136/0.09269, allocations: 0.5142 MB / 0.6952 GB, free: 38.69 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002203/0.09292, allocations: 237.1 kB / 0.6954 GB, free: 38.45 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001365/0.0943, allocations: 1.422 MB / 0.6968 GB, free: 37.02 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.905e-06/0.09432, allocations: 0 / 0.6968 GB, free: 37.02 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.091e-06/0.09433, allocations: 0 / 0.6968 GB, free: 37.02 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.455e-05/0.09435, allocations: 3.938 kB / 0.6968 GB, free: 37.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.002205/0.09657, allocations: 1.426 MB / 0.6982 GB, free: 35.53 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.09662, allocations: 12.03 kB / 0.6982 GB, free: 35.52 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004361/0.101, allocations: 0.5173 MB / 0.6987 GB, free: 35 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001003/0.102, allocations: 0.627 MB / 0.6994 GB, free: 34.33 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.848e-05/0.1021, allocations: 82.09 kB / 0.6994 GB, free: 34.25 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002073/0.1023, allocations: 115.8 kB / 0.6995 GB, free: 34.14 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002784/0.1051, allocations: 1.57 MB / 0.7011 GB, free: 32.51 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.233e-05/0.1052, allocations: 4 kB / 0.7011 GB, free: 32.51 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001353/0.1053, allocations: 47.97 kB / 0.7011 GB, free: 32.46 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001088/0.1054, allocations: 86.19 kB / 0.7012 GB, free: 32.38 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003215/0.1087, allocations: 1.636 MB / 0.7028 GB, free: 30.73 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008086/0.1168, allocations: 4.761 MB / 0.7075 GB, free: 25.84 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002478/0.1193, allocations: 1.358 MB / 0.7088 GB, free: 24.47 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001417/0.1207, allocations: 0.8018 MB / 0.7096 GB, free: 23.66 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001126/0.1208, allocations: 16.98 kB / 0.7096 GB, free: 23.64 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001506/0.1224, allocations: 0.849 MB / 0.7104 GB, free: 22.77 MB / 442.7 MB Notification: Performance of pre-optimization done (n=125): time 4.322e-06/0.1224, allocations: 0 / 0.7104 GB, free: 22.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=136): time 0.01508/0.1375, allocations: 6.326 MB / 0.7166 GB, free: 16.34 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.545e-05/0.1375, allocations: 116.1 kB / 0.7167 GB, free: 16.2 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006272/0.1382, allocations: 0.5264 MB / 0.7172 GB, free: 15.66 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.326e-05/0.1383, allocations: 49.7 kB / 0.7173 GB, free: 15.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002723/0.1386, allocations: 456.3 kB / 0.7177 GB, free: 15.15 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003493/0.1389, allocations: 469.2 kB / 0.7181 GB, free: 14.68 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.224e-05/0.139, allocations: 32.03 kB / 0.7182 GB, free: 14.65 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.1392, allocations: 394.7 kB / 0.7186 GB, free: 14.26 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001274/0.1405, allocations: 0.6194 MB / 0.7192 GB, free: 13.64 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001362/0.1418, allocations: 0.7698 MB / 0.7199 GB, free: 12.84 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001479/0.1433, allocations: 0.7381 MB / 0.7206 GB, free: 12.09 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.439e-06/0.1434, allocations: 7.984 kB / 0.7206 GB, free: 12.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.004414/0.1478, allocations: 2.084 MB / 0.7227 GB, free: 9.98 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.09e-05/0.1479, allocations: 200.5 kB / 0.7229 GB, free: 9.746 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.646e-06/0.1479, allocations: 0 / 0.7229 GB, free: 9.746 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001516/0.1494, allocations: 461.3 kB / 0.7233 GB, free: 9.289 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/0.1507, allocations: 267.5 kB / 0.7236 GB, free: 9.027 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008832/0.1596, allocations: 6.193 MB / 0.7296 GB, free: 2.543 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009797/0.1606, allocations: 91.97 kB / 0.7297 GB, free: 2.453 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000131/0.1607, allocations: 43.98 kB / 0.7297 GB, free: 2.41 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.314e-06/0.1608, allocations: 4 kB / 0.7297 GB, free: 2.406 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004078/0.1648, allocations: 1.896 MB / 0.7316 GB, free: 0.4961 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.523e-06/0.1649, allocations: 4.219 kB / 0.7316 GB, free: 0.4922 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00132/0.1662, allocations: 421.4 kB / 0.732 GB, free: 76 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2364/0.4027, allocations: 257.9 kB / 0.7322 GB, free: 125.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009227/0.4119, allocations: 5.958 MB / 0.7381 GB, free: 123.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001039/0.413, allocations: 83.09 kB / 0.7381 GB, free: 123.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001404/0.4131, allocations: 49.08 kB / 0.7382 GB, free: 123.1 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.0007087/0.4139, allocations: 427.4 kB / 0.7386 GB, free: 122.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001903/0.4141, allocations: 91.94 kB / 0.7387 GB, free: 122.9 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005295/0.4194, allocations: 2.181 MB / 0.7408 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.987e-05/0.4194, allocations: 15.05 kB / 0.7408 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.502e-06/0.4194, allocations: 1.094 kB / 0.7408 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.089e-05/0.4195, allocations: 7.031 kB / 0.7408 GB, free: 122.8 MB / 442.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.008562/0.428, allocations: 3.936 MB / 0.7447 GB, free: 121.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.137e-05/0.4281, allocations: 10.14 kB / 0.7447 GB, free: 121.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001168/0.4292, allocations: 208.6 kB / 0.7449 GB, free: 121.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002142/0.4314, allocations: 0.5226 MB / 0.7454 GB, free: 121 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001131/0.4315, allocations: 31.33 kB / 0.7454 GB, free: 121 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01028/0.4418, allocations: 6.531 MB / 0.7518 GB, free: 116.6 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.312e-06/0.4419, allocations: 5.469 kB / 0.7518 GB, free: 116.6 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006893/0.4488, allocations: 3.101 MB / 0.7548 GB, free: 115.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005383/0.4493, allocations: 285.2 kB / 0.7551 GB, free: 115.1 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001777/0.4495, allocations: 28.47 kB / 0.7551 GB, free: 115.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009833/0.4505, allocations: 83.98 kB / 0.7552 GB, free: 115.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003283/0.4509, allocations: 124.6 kB / 0.7553 GB, free: 115.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001397/0.451, allocations: 45.91 kB / 0.7554 GB, free: 115.1 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005573/0.4516, allocations: 369.9 kB / 0.7557 GB, free: 114.9 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.34e-07/0.4516, allocations: 0 / 0.7557 GB, free: 114.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002403/0.454, allocations: 0.6525 MB / 0.7564 GB, free: 114.8 MB / 442.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.0002119/0.4542, allocations: 144.5 kB / 0.7565 GB, free: 114.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006174/0.4604, allocations: 3.315 MB / 0.7597 GB, free: 113.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.359e-06/0.4604, allocations: 0 / 0.7597 GB, free: 113.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002634/0.4631, allocations: 1.318 MB / 0.761 GB, free: 112.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001173/0.4643, allocations: 169.6 kB / 0.7612 GB, free: 112.5 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005276/0.4696, allocations: 3.12 MB / 0.7642 GB, free: 110.9 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009611/0.4706, allocations: 1.272 MB / 0.7655 GB, free: 110.1 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001224/0.4718, allocations: 309.2 kB / 0.7658 GB, free: 110.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003785/0.4722, allocations: 75.45 kB / 0.7659 GB, free: 110.1 MB / 442.7 MB Notification: Performance of SimCode: time 1.856e-06/0.4722, allocations: 4 kB / 0.7659 GB, free: 110.1 MB / 442.7 MB Notification: Performance of Templates: time 0.03892/0.5111, allocations: 19.73 MB / 0.7851 GB, free: 103.3 MB / 442.7 MB