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.001313/0.001313, allocations: 183.6 kB / 16.38 MB, free: 5.711 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 1.655/1.655, allocations: 194.5 MB / 211.6 MB, free: 2.977 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001813/0.001812, allocations: 117.3 kB / 256.9 MB, free: 4.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.2452/0.2452, allocations: 38.01 MB / 340.1 MB, free: 1.312 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005212/0.0005215, allocations: 16 kB / 403.8 MB, free: 68.77 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06954/0.07008, allocations: 53.23 MB / 457 MB, free: 15.49 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.PowerWorld): time 0.01134/0.08148, allocations: 12.1 MB / 469.1 MB, free: 3.348 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01231/0.09381, allocations: 7.726 MB / 476.8 MB, free: 11.6 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001043/0.09488, allocations: 83.5 kB / 476.9 MB, free: 11.52 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001014/0.09591, allocations: 369.4 kB / 477.3 MB, free: 11.16 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003379/0.09931, allocations: 1.226 MB / 478.5 MB, free: 9.926 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003157/0.1025, allocations: 1.079 MB / 479.6 MB, free: 8.852 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002637/0.1051, allocations: 1.964 MB / 481.5 MB, free: 6.883 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003931/0.1091, allocations: 2.002 MB / 483.6 MB, free: 4.82 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001636/0.1107, allocations: 1.023 MB / 484.6 MB, free: 3.793 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001401/0.1122, allocations: 0.9763 MB / 485.6 MB, free: 2.812 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002693/0.1124, allocations: 96 kB / 485.6 MB, free: 2.719 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002338/0.1148, allocations: 0.9708 MB / 486.6 MB, free: 1.746 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007982/0.1156, allocations: 0.6893 MB / 487.3 MB, free: 1.055 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005152/0.1161, allocations: 452.3 kB / 487.7 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003969/0.1201, allocations: 3.028 MB / 490.8 MB, free: 13.57 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.569e-06/0.1201, allocations: 0 / 490.8 MB, free: 13.57 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.846e-06/0.1202, allocations: 0 / 490.8 MB, free: 13.57 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.482e-05/0.1202, allocations: 0 / 490.8 MB, free: 13.57 MB / 346.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.00592/0.1261, allocations: 2.865 MB / 493.6 MB, free: 10.59 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.1262, allocations: 16.02 kB / 493.7 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005124/0.1313, allocations: 0.6836 MB / 494.3 MB, free: 9.883 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00327/0.1346, allocations: 1.496 MB / 495.8 MB, free: 8.336 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001666/0.1348, allocations: 151.7 kB / 496 MB, free: 8.188 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004118/0.1352, allocations: 196 kB / 496.2 MB, free: 7.996 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005987/0.1412, allocations: 2.654 MB / 498.8 MB, free: 5.277 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.545e-05/0.1413, allocations: 8 kB / 498.8 MB, free: 5.27 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002818/0.1416, allocations: 71.98 kB / 498.9 MB, free: 5.199 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000164/0.1418, allocations: 111.7 kB / 499 MB, free: 5.09 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006966/0.1488, allocations: 2.876 MB / 0.4901 GB, free: 2.211 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2428/0.3916, allocations: 8.549 MB / 0.4985 GB, free: 44.68 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00697/0.3986, allocations: 3.311 MB / 0.5017 GB, free: 43.12 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001565/0.3988, allocations: 50.33 kB / 0.5018 GB, free: 43.12 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003276/0.4021, allocations: 1.411 MB / 0.5031 GB, free: 42.61 MB / 346.7 MB Notification: Performance of pre-optimization done (n=215): time 6.153e-06/0.4021, allocations: 0 / 0.5031 GB, free: 42.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=226): time 0.02406/0.4262, allocations: 9.477 MB / 0.5124 GB, free: 38.34 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.428e-05/0.4263, allocations: 260.9 kB / 0.5126 GB, free: 38.05 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002262/0.4286, allocations: 1.445 MB / 0.514 GB, free: 37.27 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001779/0.4288, allocations: 81.38 kB / 0.5141 GB, free: 37.2 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006908/0.4295, allocations: 0.8697 MB / 0.515 GB, free: 36.44 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005676/0.43, allocations: 0.7619 MB / 0.5157 GB, free: 35.79 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001517/0.4302, allocations: 43.34 kB / 0.5158 GB, free: 35.75 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.4303, allocations: 396.7 kB / 0.5161 GB, free: 35.38 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002393/0.4327, allocations: 1.058 MB / 0.5172 GB, free: 34.86 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002697/0.4355, allocations: 1.385 MB / 0.5185 GB, free: 33.99 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002885/0.4384, allocations: 1.349 MB / 0.5198 GB, free: 33.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/0.4384, allocations: 4 kB / 0.5198 GB, free: 33.06 MB / 346.7 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.006833/0.4452, allocations: 3.344 MB / 0.5231 GB, free: 29.64 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004826/0.4457, allocations: 2.405 MB / 0.5255 GB, free: 27.01 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.731e-05/0.4458, allocations: 15.88 kB / 0.5255 GB, free: 27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001041/0.4468, allocations: 327.6 kB / 0.5258 GB, free: 26.67 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002483/0.4494, allocations: 0.5071 MB / 0.5263 GB, free: 26.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005949/0.4553, allocations: 4.965 MB / 0.5311 GB, free: 20.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001655/0.457, allocations: 185.1 kB / 0.5313 GB, free: 20.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002143/0.4572, allocations: 87.98 kB / 0.5314 GB, free: 20.66 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.945e-06/0.4572, allocations: 4 kB / 0.5314 GB, free: 20.66 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006493/0.4637, allocations: 3.137 MB / 0.5345 GB, free: 17.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/0.4638, allocations: 4.625 kB / 0.5345 GB, free: 17.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009428/0.4647, allocations: 330.2 kB / 0.5348 GB, free: 17.12 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002338/0.4671, allocations: 499.3 kB / 0.5353 GB, free: 16.63 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005824/0.4729, allocations: 4.971 MB / 0.5401 GB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001565/0.4745, allocations: 167.8 kB / 0.5403 GB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002055/0.4747, allocations: 87.97 kB / 0.5404 GB, free: 11.14 MB / 346.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.001142/0.4759, allocations: 0.645 MB / 0.541 GB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003248/0.4762, allocations: 216 kB / 0.5412 GB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007307/0.4836, allocations: 3.274 MB / 0.5444 GB, free: 6.98 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.949e-05/0.4836, allocations: 24 kB / 0.5444 GB, free: 6.957 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.618e-06/0.4836, allocations: 3.984 kB / 0.5444 GB, free: 6.953 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.503e-05/0.4836, allocations: 11.95 kB / 0.5444 GB, free: 6.941 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01179/0.4954, allocations: 6.064 MB / 0.5503 GB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/0.4955, allocations: 0 / 0.5503 GB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001907/0.4974, allocations: 395.7 kB / 0.5507 GB, free: 452 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001872/0.4993, allocations: 0.4931 MB / 0.5512 GB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000206/0.4995, allocations: 59.97 kB / 0.5513 GB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01129/0.5108, allocations: 6.317 MB / 0.5574 GB, free: 9.309 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.73e-06/0.5108, allocations: 0 / 0.5574 GB, free: 9.309 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01164/0.5225, allocations: 4.861 MB / 0.5622 GB, free: 4.336 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001123/0.5236, allocations: 0.5138 MB / 0.5627 GB, free: 3.801 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003678/0.524, allocations: 67.94 kB / 0.5627 GB, free: 3.734 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001605/0.5256, allocations: 163.8 kB / 0.5629 GB, free: 3.574 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004959/0.5261, allocations: 205.6 kB / 0.5631 GB, free: 3.371 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002198/0.5264, allocations: 79.91 kB / 0.5632 GB, free: 3.293 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002033/0.5284, allocations: 0.9779 MB / 0.5641 GB, free: 2.324 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.5e-07/0.5284, allocations: 0 / 0.5641 GB, free: 2.324 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003219/0.5317, allocations: 0.9508 MB / 0.5651 GB, free: 1.383 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 13 (dispatcher.secondaryControl.I.y,powerPlant.evaporator.y,powerPlant.superheater1.y,powerPlant.superheater2.y,powerPlant.transferFunction.x_scaled[1],powerPlant.hotwellLevel.y,powerPlant.throttleDynamics.y,powerPlant.throttleCosts.y,hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1],system.theta) * Number of discrete variables: 17 (system.initime,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled,windFarm.disturbance.T_start,windFarm.disturbance.count,city.data.nextTimeEvent,city.data.nextTimeEventScaled,dispatcher.data.nextTimeEvent,dispatcher.data.nextTimeEventScaled,dispatcher.hydroDaily.T_start,dispatcher.hydroDaily.count) * Number of discrete states: 8 (windFarm.wind.nextTimeEvent,windFarm.disturbance.count,city.data.nextTimeEvent,dispatcher.data.nextTimeEvent,dispatcher.hydroDaily.count,dispatcher.data.nextTimeEventScaled,city.data.nextTimeEventScaled,windFarm.wind.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (196): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * 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 {7 29,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003426/0.5351, allocations: 0.9876 MB / 0.566 GB, free: 0.4922 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01172/0.5468, allocations: 5.465 MB / 0.5714 GB, free: 10.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.43e-06/0.5469, allocations: 0 / 0.5714 GB, free: 10.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004593/0.5515, allocations: 1.921 MB / 0.5732 GB, free: 8.906 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001678/0.5532, allocations: 347.4 kB / 0.5736 GB, free: 8.566 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01093/0.5641, allocations: 5.671 MB / 0.5791 GB, free: 2.832 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002015/0.5662, allocations: 1.747 MB / 0.5808 GB, free: 1.047 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002477/0.5686, allocations: 0.5834 MB / 0.5814 GB, free: 468 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007579/0.5694, allocations: 175.4 kB / 0.5815 GB, free: 296 kB / 378.7 MB Notification: Performance of SimCode: time 1.4e-06/0.5694, allocations: 0 / 0.5815 GB, free: 296 kB / 378.7 MB Notification: Performance of Templates: time 0.0723/0.6418, allocations: 32.29 MB / 0.6131 GB, free: 15.96 MB / 426.7 MB