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.0027/0.002704, allocations: 359 kB / 17.21 MB, free: 4.926 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.863/3.863, allocations: 388.9 MB / 406.8 MB, free: 11.92 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.00365/0.003649, allocations: 235.7 kB / 452.2 MB, free: 14.52 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.75/0.75, allocations: 76.01 MB / 0.56 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004307/0.0004308, allocations: 16 kB / 0.6222 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09433/0.09478, allocations: 53.23 MB / 0.6742 GB, free: 60.83 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.01013/0.105, allocations: 8.686 MB / 0.6827 GB, free: 52.11 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.009173/0.1142, allocations: 5.102 MB / 0.6877 GB, free: 46.99 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00107/0.1153, allocations: 31.88 kB / 0.6877 GB, free: 46.96 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005938/0.116, allocations: 182.6 kB / 0.6879 GB, free: 46.78 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003694/0.1197, allocations: 0.9991 MB / 0.6889 GB, free: 45.78 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001812/0.1215, allocations: 442.7 kB / 0.6893 GB, free: 45.34 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.003292/0.1248, allocations: 2.432 MB / 0.6917 GB, free: 42.9 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003035/0.1279, allocations: 1.393 MB / 0.693 GB, free: 41.46 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00147/0.1294, allocations: 0.6414 MB / 0.6936 GB, free: 40.82 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00131/0.1307, allocations: 0.8447 MB / 0.6945 GB, free: 39.97 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001472/0.1309, allocations: 48 kB / 0.6945 GB, free: 39.92 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00238/0.1333, allocations: 0.8411 MB / 0.6953 GB, free: 39.08 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005768/0.1339, allocations: 0.5181 MB / 0.6958 GB, free: 38.56 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000328/0.1342, allocations: 241 kB / 0.6961 GB, free: 38.32 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002232/0.1365, allocations: 1.415 MB / 0.6975 GB, free: 36.9 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.1365, allocations: 4 kB / 0.6975 GB, free: 36.89 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1365, allocations: 3.938 kB / 0.6975 GB, free: 36.89 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.974e-05/0.1365, allocations: 0 / 0.6975 GB, free: 36.89 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.003682/0.1402, allocations: 1.423 MB / 0.6989 GB, free: 35.41 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.1403, allocations: 8.031 kB / 0.6989 GB, free: 35.4 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005786/0.1461, allocations: 0.5134 MB / 0.6994 GB, free: 34.88 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001607/0.1478, allocations: 0.6231 MB / 0.7 GB, free: 34.22 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.687e-05/0.1479, allocations: 78.09 kB / 0.7 GB, free: 34.14 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002677/0.1481, allocations: 127.8 kB / 0.7002 GB, free: 34.02 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003923/0.1521, allocations: 1.566 MB / 0.7017 GB, free: 32.39 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.66e-05/0.1522, allocations: 4 kB / 0.7017 GB, free: 32.39 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000172/0.1524, allocations: 43.98 kB / 0.7017 GB, free: 32.35 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001468/0.1525, allocations: 94.17 kB / 0.7018 GB, free: 32.25 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004722/0.1573, allocations: 1.636 MB / 0.7034 GB, free: 30.61 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01216/0.1695, allocations: 4.761 MB / 0.7081 GB, free: 25.72 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00351/0.173, allocations: 1.358 MB / 0.7094 GB, free: 24.35 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001992/0.1751, allocations: 0.794 MB / 0.7102 GB, free: 23.54 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000132/0.1752, allocations: 24.97 kB / 0.7102 GB, free: 23.52 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002071/0.1773, allocations: 0.8451 MB / 0.711 GB, free: 22.66 MB / 442.7 MB Notification: Performance of pre-optimization done (n=125): time 4.238e-06/0.1774, allocations: 0 / 0.711 GB, free: 22.66 MB / 442.7 MB Notification: Performance of matching and sorting (n=136): time 0.02174/0.1991, allocations: 6.323 MB / 0.7172 GB, free: 16.22 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.282e-05/0.1992, allocations: 120.1 kB / 0.7173 GB, free: 16.07 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008123/0.2, allocations: 0.5264 MB / 0.7178 GB, free: 15.54 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000229/0.2003, allocations: 45.7 kB / 0.7179 GB, free: 15.48 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003289/0.2006, allocations: 460.3 kB / 0.7183 GB, free: 15.03 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004649/0.2011, allocations: 473.2 kB / 0.7188 GB, free: 14.56 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001059/0.2012, allocations: 24 kB / 0.7188 GB, free: 14.54 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.2014, allocations: 402.7 kB / 0.7192 GB, free: 14.13 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001762/0.2031, allocations: 0.6194 MB / 0.7198 GB, free: 13.52 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001868/0.205, allocations: 0.7659 MB / 0.7205 GB, free: 12.71 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001975/0.207, allocations: 0.7459 MB / 0.7213 GB, free: 11.96 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.207, allocations: 0 / 0.7213 GB, free: 11.96 MB / 442.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.006622/0.2137, allocations: 2.084 MB / 0.7233 GB, free: 9.859 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001168/0.2138, allocations: 196.7 kB / 0.7235 GB, free: 9.629 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/0.2139, allocations: 4 kB / 0.7235 GB, free: 9.625 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00218/0.2161, allocations: 473.2 kB / 0.7239 GB, free: 9.156 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002136/0.2182, allocations: 255.6 kB / 0.7242 GB, free: 8.906 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0115/0.2298, allocations: 6.192 MB / 0.7302 GB, free: 2.426 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001606/0.2314, allocations: 91.97 kB / 0.7303 GB, free: 2.336 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001723/0.2316, allocations: 47.98 kB / 0.7304 GB, free: 2.289 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.032e-05/0.2316, allocations: 7.281 kB / 0.7304 GB, free: 2.285 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005443/0.2371, allocations: 1.888 MB / 0.7322 GB, free: 392 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.2371, allocations: 7.953 kB / 0.7322 GB, free: 384 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2919/0.5291, allocations: 417.8 kB / 0.7326 GB, free: 125.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002198/0.5313, allocations: 258.5 kB / 0.7329 GB, free: 125.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01118/0.5425, allocations: 5.96 MB / 0.7387 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001524/0.5441, allocations: 81.09 kB / 0.7388 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001593/0.5443, allocations: 52.89 kB / 0.7388 GB, free: 122.8 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.0008267/0.5451, allocations: 428.8 kB / 0.7392 GB, free: 122.6 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002099/0.5453, allocations: 99.83 kB / 0.7393 GB, free: 122.6 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006831/0.5522, allocations: 2.173 MB / 0.7414 GB, free: 122.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.466e-05/0.5522, allocations: 5.484 kB / 0.7414 GB, free: 122.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.5523, allocations: 2.188 kB / 0.7414 GB, free: 122.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006929/0.553, allocations: 282.3 kB / 0.7417 GB, free: 122.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002/0.5532, allocations: 34.3 kB / 0.7417 GB, free: 122.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/0.5544, allocations: 82.75 kB / 0.7418 GB, free: 122.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003539/0.5548, allocations: 141 kB / 0.742 GB, free: 122.3 MB / 442.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00846/0.5633, allocations: 2.363 MB / 0.7443 GB, free: 121.6 MB / 442.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.007493/0.5708, allocations: 2.545 MB / 0.7468 GB, free: 120.6 MB / 442.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002336/0.5732, allocations: 0.7003 MB / 0.7474 GB, free: 120.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007217/0.574, allocations: 369.3 kB / 0.7478 GB, free: 120.2 MB / 442.7 MB Notification: Performance of Backend: time 4.61e-07/0.574, allocations: 0 / 0.7478 GB, free: 120.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009464/0.5835, allocations: 3.068 MB / 0.7508 GB, free: 118.7 MB / 442.7 MB Notification: Performance of SimCode: time 0.006032/0.5896, allocations: 3.439 MB / 0.7541 GB, free: 116.7 MB / 442.7 MB Notification: Performance of Templates: time 0.06758/0.6572, allocations: 28.09 MB / 0.7816 GB, free: 107.7 MB / 442.7 MB