Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.PowerWorld.PowerWorld.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.PowerWorld.PowerWorld,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.PowerWorld.PowerWorld") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002581/0.002586, allocations: 361.4 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.785/3.785, allocations: 388.9 MB / 406.8 MB, free: 11.94 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.003551/0.003551, allocations: 249.2 kB / 452.3 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.7409/0.7409, allocations: 76 MB / 0.56 GB, free: 177.6 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000443/0.0004432, allocations: 12 kB / 0.6222 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09265/0.09312, allocations: 53.22 MB / 0.6742 GB, free: 60.84 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.PowerWorld): time 0.01541/0.1086, allocations: 12.57 MB / 0.6865 GB, free: 48.23 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.01564/0.1243, allocations: 7.822 MB / 0.6941 GB, free: 40.39 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002611/0.127, allocations: 91.44 kB / 0.6942 GB, free: 40.3 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001909/0.1289, allocations: 349.3 kB / 0.6945 GB, free: 39.96 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005824/0.1348, allocations: 1.376 MB / 0.6959 GB, free: 38.57 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004615/0.1394, allocations: 1.064 MB / 0.6969 GB, free: 37.51 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.005808/0.1453, allocations: 4.028 MB / 0.7009 GB, free: 33.46 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004788/0.1501, allocations: 1.998 MB / 0.7028 GB, free: 31.4 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002541/0.1527, allocations: 1.112 MB / 0.7039 GB, free: 30.29 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002563/0.1553, allocations: 1.358 MB / 0.7052 GB, free: 28.92 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005209/0.1558, allocations: 100 kB / 0.7053 GB, free: 28.82 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003346/0.1592, allocations: 1.036 MB / 0.7063 GB, free: 27.79 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001164/0.1604, allocations: 0.7437 MB / 0.7071 GB, free: 27.04 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000708/0.1611, allocations: 448.4 kB / 0.7075 GB, free: 26.59 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00494/0.1661, allocations: 3.036 MB / 0.7105 GB, free: 23.55 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.1661, allocations: 0 / 0.7105 GB, free: 23.55 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.126e-06/0.1662, allocations: 0 / 0.7105 GB, free: 23.55 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.615e-05/0.1663, allocations: 0 / 0.7105 GB, free: 23.55 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: 489 * Number of variables: 489 Notification: Performance of Generate backend data structure: time 0.008418/0.1747, allocations: 2.873 MB / 0.7133 GB, free: 20.56 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.1748, allocations: 8.031 kB / 0.7133 GB, free: 20.55 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006621/0.1814, allocations: 0.6875 MB / 0.7139 GB, free: 19.86 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00433/0.1858, allocations: 1.496 MB / 0.7154 GB, free: 18.31 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000158/0.186, allocations: 139.7 kB / 0.7155 GB, free: 18.18 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005401/0.1865, allocations: 199.9 kB / 0.7157 GB, free: 17.98 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007453/0.194, allocations: 2.666 MB / 0.7183 GB, free: 15.25 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-05/0.1942, allocations: 8 kB / 0.7183 GB, free: 15.24 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003107/0.1945, allocations: 71.98 kB / 0.7184 GB, free: 15.17 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001682/0.1947, allocations: 119.6 kB / 0.7185 GB, free: 15.05 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008806/0.2035, allocations: 2.872 MB / 0.7213 GB, free: 12.18 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02067/0.2242, allocations: 8.559 MB / 0.7297 GB, free: 3.391 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008947/0.2332, allocations: 3.299 MB / 0.7329 GB, free: 4 kB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2926/0.5258, allocations: 1.206 MB / 0.7341 GB, free: 124.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002852/0.5262, allocations: 56.89 kB / 0.7341 GB, free: 124.8 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005102/0.5313, allocations: 1.415 MB / 0.7355 GB, free: 124.7 MB / 442.7 MB Notification: Performance of pre-optimization done (n=215): time 6.171e-06/0.5313, allocations: 0 / 0.7355 GB, free: 124.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=226): time 0.03565/0.567, allocations: 9.484 MB / 0.7448 GB, free: 122 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/0.5672, allocations: 265.1 kB / 0.745 GB, free: 121.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003508/0.5707, allocations: 1.437 MB / 0.7464 GB, free: 121.2 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006326/0.5714, allocations: 82.83 kB / 0.7465 GB, free: 121.1 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000949/0.5723, allocations: 0.8712 MB / 0.7474 GB, free: 120.5 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001227/0.5736, allocations: 0.7623 MB / 0.7481 GB, free: 119.9 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000216/0.5738, allocations: 42.66 kB / 0.7481 GB, free: 119.9 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001859/0.574, allocations: 395.2 kB / 0.7485 GB, free: 119.5 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003997/0.578, allocations: 1.058 MB / 0.7496 GB, free: 119.1 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004494/0.5826, allocations: 1.391 MB / 0.7509 GB, free: 118.5 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004414/0.587, allocations: 1.349 MB / 0.7522 GB, free: 117.8 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.559e-05/0.5871, allocations: 3.812 kB / 0.7522 GB, free: 117.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.01148/0.5986, allocations: 3.348 MB / 0.7555 GB, free: 116.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002759/0.5989, allocations: 413.3 kB / 0.7559 GB, free: 116 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.041e-05/0.5989, allocations: 5.906 kB / 0.7559 GB, free: 116 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001529/0.6005, allocations: 327.6 kB / 0.7562 GB, free: 115.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004485/0.605, allocations: 0.5078 MB / 0.7567 GB, free: 115.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008408/0.6134, allocations: 4.855 MB / 0.7615 GB, free: 112.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003605/0.6171, allocations: 184.1 kB / 0.7616 GB, free: 112.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005623/0.6177, allocations: 88.98 kB / 0.7617 GB, free: 112.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.6177, allocations: 4.438 kB / 0.7617 GB, free: 112.2 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0136/0.6313, allocations: 3.141 MB / 0.7648 GB, free: 110.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.086e-05/0.6314, allocations: 6.062 kB / 0.7648 GB, free: 110.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001823/0.6333, allocations: 324.1 kB / 0.7651 GB, free: 110.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005371/0.6387, allocations: 497.7 kB / 0.7656 GB, free: 110.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01118/0.6499, allocations: 4.833 MB / 0.7703 GB, free: 107.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003959/0.6539, allocations: 174.1 kB / 0.7705 GB, free: 107.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004771/0.6544, allocations: 80.86 kB / 0.7705 GB, free: 107.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 27 ($whenCondition5,$PRE.windFarm.wind.nextTimeEvent,$whenCondition3,$PRE.city.data.nextTimeEvent,$whenCondition2,$PRE.dispatcher.data.nextTimeEvent,system.initime,$whenCondition6,$whenCondition4,$whenCondition1,windFarm.wind.nextTimeEvent,$PRE.windFarm.wind.nextTimeEventScaled,windFarm.wind.nextTimeEventScaled,$PRE.windFarm.disturbance.T_start,windFarm.disturbance.T_start,$PRE.windFarm.disturbance.count,windFarm.disturbance.count,city.data.nextTimeEvent,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEventScaled,dispatcher.data.nextTimeEvent,$PRE.dispatcher.data.nextTimeEventScaled,dispatcher.data.nextTimeEventScaled,$PRE.dispatcher.hydroDaily.T_start,dispatcher.hydroDaily.T_start,$PRE.dispatcher.hydroDaily.count,dispatcher.hydroDaily.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (246): * Single equations (assignments): 239 * Array equations: 0 * Algorithm blocks: 5 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {5 17} Notification: Performance of prepare postOptimizeDAE: time 0.002618/0.657, allocations: 0.6624 MB / 0.7712 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008374/0.6579, allocations: 206.1 kB / 0.7714 GB, free: 106.6 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01529/0.6732, allocations: 3.283 MB / 0.7746 GB, free: 105.4 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.027e-05/0.6733, allocations: 13.22 kB / 0.7746 GB, free: 105.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.155e-05/0.6734, allocations: 0 / 0.7746 GB, free: 105.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002152/0.6755, allocations: 0.5107 MB / 0.7751 GB, free: 105 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007055/0.6762, allocations: 56.91 kB / 0.7752 GB, free: 105 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003309/0.6796, allocations: 173.7 kB / 0.7753 GB, free: 105 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000798/0.6804, allocations: 215.2 kB / 0.7755 GB, free: 104.9 MB / 442.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01791/0.6983, allocations: 3.598 MB / 0.779 GB, free: 103.8 MB / 442.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01297/0.7114, allocations: 4.322 MB / 0.7833 GB, free: 102 MB / 442.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003886/0.7153, allocations: 1.213 MB / 0.7844 GB, free: 101.6 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002406/0.7178, allocations: 0.9779 MB / 0.7854 GB, free: 101.2 MB / 442.7 MB Notification: Performance of Backend: time 9.11e-07/0.7178, allocations: 3.938 kB / 0.7854 GB, free: 101.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01717/0.735, allocations: 5.841 MB / 0.7911 GB, free: 96.38 MB / 442.7 MB Notification: Performance of SimCode: time 0.01083/0.7459, allocations: 5.739 MB / 0.7967 GB, free: 91.11 MB / 442.7 MB Notification: Performance of Templates: time 0.1036/0.8495, allocations: 45.9 MB / 0.8415 GB, free: 45.41 MB / 442.7 MB