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.002324/0.002324, allocations: 357.1 kB / 16.57 MB, free: 5.59 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.408/3.408, allocations: 388.9 MB / 406.2 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.003424/0.003424, allocations: 237.4 kB / 451.6 MB, free: 14.48 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.6383/0.6383, allocations: 76.01 MB / 0.5594 GB, free: 177.6 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004596/0.0004597, allocations: 12 kB / 0.6216 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0662/0.06668, allocations: 53.24 MB / 0.6736 GB, free: 60.82 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.PowerWorld): time 0.01156/0.07829, allocations: 12.56 MB / 0.6859 GB, free: 48.21 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.01043/0.08876, allocations: 7.814 MB / 0.6935 GB, free: 40.38 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001036/0.08982, allocations: 95.44 kB / 0.6936 GB, free: 40.29 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008093/0.09065, allocations: 353.3 kB / 0.6939 GB, free: 39.94 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002882/0.09355, allocations: 1.368 MB / 0.6953 GB, free: 38.57 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002508/0.09608, allocations: 1.068 MB / 0.6963 GB, free: 37.5 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.003042/0.09914, allocations: 4.024 MB / 0.7002 GB, free: 33.46 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003144/0.1023, allocations: 2.006 MB / 0.7022 GB, free: 31.39 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001215/0.1035, allocations: 1.104 MB / 0.7033 GB, free: 30.28 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00145/0.105, allocations: 1.366 MB / 0.7046 GB, free: 28.91 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002619/0.1053, allocations: 96 kB / 0.7047 GB, free: 28.81 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002004/0.1073, allocations: 1.032 MB / 0.7057 GB, free: 27.78 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006239/0.1079, allocations: 0.7437 MB / 0.7064 GB, free: 27.03 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003974/0.1083, allocations: 456.4 kB / 0.7069 GB, free: 26.58 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002656/0.111, allocations: 3.035 MB / 0.7098 GB, free: 23.54 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.107e-06/0.111, allocations: 4 kB / 0.7098 GB, free: 23.53 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.695e-06/0.111, allocations: 0 / 0.7098 GB, free: 23.53 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.402e-05/0.1111, allocations: 0 / 0.7098 GB, free: 23.53 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.004859/0.1159, allocations: 2.861 MB / 0.7126 GB, free: 20.55 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.116, allocations: 12.81 kB / 0.7126 GB, free: 20.54 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004837/0.1208, allocations: 0.6875 MB / 0.7133 GB, free: 19.85 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002707/0.1236, allocations: 1.492 MB / 0.7148 GB, free: 18.3 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001151/0.1237, allocations: 151.7 kB / 0.7149 GB, free: 18.16 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003817/0.1241, allocations: 191.9 kB / 0.7151 GB, free: 17.97 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004955/0.1291, allocations: 2.674 MB / 0.7177 GB, free: 15.23 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.825e-05/0.1291, allocations: 0 / 0.7177 GB, free: 15.23 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002303/0.1294, allocations: 79.97 kB / 0.7178 GB, free: 15.15 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001266/0.1295, allocations: 111.6 kB / 0.7179 GB, free: 15.04 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00593/0.1355, allocations: 2.868 MB / 0.7207 GB, free: 12.17 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01404/0.1495, allocations: 8.567 MB / 0.7291 GB, free: 3.375 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2368/0.3863, allocations: 3.291 MB / 0.7323 GB, free: 124.3 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003199/0.3896, allocations: 1.215 MB / 0.7335 GB, free: 124.3 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001667/0.3897, allocations: 52.73 kB / 0.7335 GB, free: 124.3 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003166/0.3929, allocations: 1.418 MB / 0.7349 GB, free: 124.2 MB / 442.7 MB Notification: Performance of pre-optimization done (n=215): time 5.959e-06/0.3929, allocations: 0 / 0.7349 GB, free: 124.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=226): time 0.02429/0.4172, allocations: 9.478 MB / 0.7442 GB, free: 121.5 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.48e-05/0.4174, allocations: 265.2 kB / 0.7444 GB, free: 121.2 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002513/0.4199, allocations: 1.445 MB / 0.7458 GB, free: 120.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002028/0.4201, allocations: 83.73 kB / 0.7459 GB, free: 120.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00072/0.4208, allocations: 0.8745 MB / 0.7467 GB, free: 119.9 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006273/0.4215, allocations: 0.7499 MB / 0.7475 GB, free: 119.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001601/0.4216, allocations: 48.55 kB / 0.7475 GB, free: 119.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.4218, allocations: 390.8 kB / 0.7479 GB, free: 119 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002723/0.4245, allocations: 1.061 MB / 0.7489 GB, free: 118.6 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002859/0.4274, allocations: 1.387 MB / 0.7503 GB, free: 117.9 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002878/0.4303, allocations: 1.35 MB / 0.7516 GB, free: 117.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.698e-06/0.4303, allocations: 3.875 kB / 0.7516 GB, free: 117.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.00755/0.4379, allocations: 3.346 MB / 0.7549 GB, free: 115.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001648/0.4381, allocations: 418.2 kB / 0.7553 GB, free: 115.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.795e-05/0.4381, allocations: 5.375 kB / 0.7553 GB, free: 115.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001121/0.4392, allocations: 322.4 kB / 0.7556 GB, free: 115.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002648/0.4419, allocations: 0.507 MB / 0.7561 GB, free: 115.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006438/0.4484, allocations: 4.858 MB / 0.7608 GB, free: 111.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001826/0.4502, allocations: 186.2 kB / 0.761 GB, free: 111.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002634/0.4505, allocations: 90.03 kB / 0.7611 GB, free: 111.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.615e-06/0.4505, allocations: 2.75 kB / 0.7611 GB, free: 111.7 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007153/0.4577, allocations: 3.143 MB / 0.7642 GB, free: 110.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.4577, allocations: 3.906 kB / 0.7642 GB, free: 110.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001075/0.4588, allocations: 328.1 kB / 0.7645 GB, free: 110.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002615/0.4614, allocations: 499.3 kB / 0.765 GB, free: 110.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005935/0.4674, allocations: 4.841 MB / 0.7697 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001679/0.4691, allocations: 169.6 kB / 0.7698 GB, free: 106.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002118/0.4693, allocations: 91.58 kB / 0.7699 GB, free: 106.6 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.00126/0.4706, allocations: 0.6486 MB / 0.7706 GB, free: 106.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003405/0.4709, allocations: 213 kB / 0.7708 GB, free: 106.1 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00762/0.4786, allocations: 3.269 MB / 0.774 GB, free: 104.9 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-05/0.4786, allocations: 22.25 kB / 0.774 GB, free: 104.9 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.4786, allocations: 0 / 0.774 GB, free: 104.9 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-05/0.4787, allocations: 16.14 kB / 0.774 GB, free: 104.9 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01208/0.4908, allocations: 6.063 MB / 0.7799 GB, free: 102.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-05/0.4908, allocations: 3.062 kB / 0.7799 GB, free: 102.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002012/0.4928, allocations: 390 kB / 0.7803 GB, free: 102.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001805/0.4946, allocations: 0.492 MB / 0.7808 GB, free: 102.2 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001795/0.4948, allocations: 61.2 kB / 0.7808 GB, free: 102.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00868/0.5035, allocations: 6.141 MB / 0.7868 GB, free: 97.94 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.645e-06/0.5036, allocations: 7.188 kB / 0.7868 GB, free: 97.94 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009992/0.5136, allocations: 4.704 MB / 0.7914 GB, free: 95.07 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009587/0.5145, allocations: 0.5139 MB / 0.7919 GB, free: 94.61 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000342/0.5149, allocations: 58.95 kB / 0.792 GB, free: 94.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001518/0.5164, allocations: 175.7 kB / 0.7922 GB, free: 94.42 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004607/0.5169, allocations: 195.9 kB / 0.7923 GB, free: 94.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001866/0.5171, allocations: 78.08 kB / 0.7924 GB, free: 94.24 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001633/0.5187, allocations: 0.9899 MB / 0.7934 GB, free: 93.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.74e-07/0.5188, allocations: 0 / 0.7934 GB, free: 93.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002903/0.5217, allocations: 0.9489 MB / 0.7943 GB, free: 92.46 MB / 442.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.003235/0.5249, allocations: 0.9851 MB / 0.7953 GB, free: 91.86 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009561/0.5345, allocations: 5.465 MB / 0.8006 GB, free: 86.23 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.454e-06/0.5345, allocations: 0 / 0.8006 GB, free: 86.23 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003797/0.5383, allocations: 1.925 MB / 0.8025 GB, free: 84.28 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001953/0.5403, allocations: 370.9 kB / 0.8028 GB, free: 83.93 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008665/0.549, allocations: 5.678 MB / 0.8084 GB, free: 78.23 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001398/0.5504, allocations: 1.747 MB / 0.8101 GB, free: 76.45 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002297/0.5527, allocations: 0.5891 MB / 0.8107 GB, free: 75.87 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006899/0.5534, allocations: 175.4 kB / 0.8108 GB, free: 75.7 MB / 442.7 MB Notification: Performance of SimCode: time 1.58e-06/0.5534, allocations: 4 kB / 0.8108 GB, free: 75.69 MB / 442.7 MB Notification: Performance of Templates: time 0.05889/0.6123, allocations: 32.36 MB / 0.8424 GB, free: 43.52 MB / 442.7 MB