Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 110.9 kB / 17.74 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 188.5 kB / 18.67 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.156/1.156, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1625/0.1625, allocations: 37.97 MB / 309.9 MB, free: 5.965 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 68.36 kB / 432.5 MB, free: 15.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08488/0.08618, allocations: 55.24 MB / 487.8 MB, free: 8.477 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.006338/0.09256, allocations: 5.637 MB / 493.4 MB, free: 2.805 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003584/0.09617, allocations: 2.653 MB / 496.1 MB, free: 144 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003601/0.09655, allocations: 23.88 kB / 496.1 MB, free: 120 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001037/0.09763, allocations: 366.1 kB / 496.4 MB, free: 15.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008148/0.09845, allocations: 465.7 kB / 496.9 MB, free: 15.3 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007862/0.09925, allocations: 458.9 kB / 497.4 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008924/0.1002, allocations: 1.072 MB / 498.4 MB, free: 13.78 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006503/0.1008, allocations: 0.5551 MB / 499 MB, free: 13.22 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004501/0.1013, allocations: 426.3 kB / 499.4 MB, free: 12.8 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004765/0.1018, allocations: 422.3 kB / 499.8 MB, free: 12.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.925e-05/0.1019, allocations: 76 kB / 499.9 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007248/0.1026, allocations: 0.5028 MB / 0.4887 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002031/0.1028, allocations: 235.3 kB / 0.4889 GB, free: 11.58 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003047/0.1031, allocations: 378 kB / 0.4892 GB, free: 11.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001054/0.1042, allocations: 1.079 MB / 0.4903 GB, free: 10.12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.1042, allocations: 0 / 0.4903 GB, free: 10.12 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1042, allocations: 0 / 0.4903 GB, free: 10.12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.1042, allocations: 0 / 0.4903 GB, free: 10.12 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.00187/0.1061, allocations: 1.106 MB / 0.4914 GB, free: 8.961 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.1061, allocations: 19.88 kB / 0.4914 GB, free: 8.941 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001071/0.1072, allocations: 183.8 kB / 0.4916 GB, free: 8.762 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008362/0.1081, allocations: 0.5716 MB / 0.4921 GB, free: 8.148 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.037e-05/0.1081, allocations: 41.69 kB / 0.4922 GB, free: 8.109 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.483e-05/0.1082, allocations: 56.38 kB / 0.4922 GB, free: 8.055 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.1095, allocations: 0.7866 MB / 0.493 GB, free: 7.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.487e-05/0.1096, allocations: 7.938 kB / 0.493 GB, free: 7.223 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.906e-05/0.1096, allocations: 27.97 kB / 0.493 GB, free: 7.195 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.19e-05/0.1097, allocations: 33.3 kB / 0.4931 GB, free: 7.164 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001358/0.111, allocations: 0.7311 MB / 0.4938 GB, free: 6.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003713/0.1148, allocations: 2.892 MB / 0.4966 GB, free: 3.414 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001255/0.116, allocations: 0.5845 MB / 0.4972 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006357/0.1167, allocations: 362.8 kB / 0.4975 GB, free: 2.453 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.742e-05/0.1167, allocations: 12.36 kB / 0.4975 GB, free: 2.441 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007465/0.1175, allocations: 426.3 kB / 0.4979 GB, free: 2.008 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 2.284e-06/0.1175, allocations: 4 kB / 0.4979 GB, free: 2.004 MB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.004014/0.1215, allocations: 2.113 MB / 0.5 GB, free: 15.81 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.243e-05/0.1216, allocations: 119.4 kB / 0.5001 GB, free: 15.67 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000638/0.1223, allocations: 490 kB / 0.5006 GB, free: 15.18 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.674e-05/0.1223, allocations: 37.7 kB / 0.5006 GB, free: 15.14 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000229/0.1226, allocations: 312.5 kB / 0.5009 GB, free: 14.83 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/0.1227, allocations: 197.2 kB / 0.5011 GB, free: 14.63 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001685/0.1229, allocations: 110.2 kB / 0.5012 GB, free: 14.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.123, allocations: 370.8 kB / 0.5016 GB, free: 14.15 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000561/0.1236, allocations: 291.2 kB / 0.5018 GB, free: 13.86 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006258/0.1242, allocations: 406.9 kB / 0.5022 GB, free: 13.42 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001199/0.1254, allocations: 0.7224 MB / 0.5029 GB, free: 12.65 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.1255, allocations: 3.938 kB / 0.5029 GB, free: 12.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002004/0.1275, allocations: 1.009 MB / 0.5039 GB, free: 11.62 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.422e-05/0.1275, allocations: 37.69 kB / 0.504 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.1275, allocations: 0 / 0.504 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005792/0.1281, allocations: 189.8 kB / 0.5041 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004513/0.1286, allocations: 119.7 kB / 0.5042 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004155/0.1327, allocations: 4.131 MB / 0.5083 GB, free: 6.855 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004799/0.1332, allocations: 63.98 kB / 0.5083 GB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.977e-05/0.1333, allocations: 24 kB / 0.5084 GB, free: 6.77 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007206/0.134, allocations: 441.2 kB / 0.5088 GB, free: 6.336 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005879/0.1346, allocations: 402.9 kB / 0.5092 GB, free: 5.898 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001133/0.1358, allocations: 0.6951 MB / 0.5098 GB, free: 5.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.018e-06/0.1358, allocations: 4 kB / 0.5099 GB, free: 5.156 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization_lambda0): time 0.001707/0.1375, allocations: 0.9228 MB / 0.5108 GB, free: 4.211 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.865e-05/0.1375, allocations: 37.69 kB / 0.5108 GB, free: 4.168 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.1375, allocations: 4 kB / 0.5108 GB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000471/0.138, allocations: 173.8 kB / 0.511 GB, free: 3.988 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004395/0.1385, allocations: 111.8 kB / 0.5111 GB, free: 3.879 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003357/0.1418, allocations: 3.936 MB / 0.5149 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004719/0.1423, allocations: 47.94 kB / 0.515 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.48e-05/0.1424, allocations: 28 kB / 0.515 GB, free: 15.59 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,secondary.count,$PRE.secondary.count,secondary.T_start,$PRE.secondary.T_start,$whenCondition1,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0002009/0.1426, allocations: 216.2 kB / 0.5152 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.512e-05/0.1427, allocations: 67.22 kB / 0.5153 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001598/0.1443, allocations: 0.8188 MB / 0.5161 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.1443, allocations: 8 kB / 0.5161 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.1443, allocations: 0 / 0.5161 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.1443, allocations: 7.922 kB / 0.5161 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002565/0.1469, allocations: 1.668 MB / 0.5177 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.1469, allocations: 0 / 0.5177 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005706/0.1475, allocations: 136 kB / 0.5178 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002228/0.1477, allocations: 61.67 kB / 0.5179 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.424e-05/0.1478, allocations: 19.98 kB / 0.5179 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001987/0.1498, allocations: 2.894 MB / 0.5207 GB, free: 9.312 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.1498, allocations: 11.91 kB / 0.5207 GB, free: 9.301 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002212/0.152, allocations: 1.306 MB / 0.522 GB, free: 7.949 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002515/0.1523, allocations: 192.3 kB / 0.5222 GB, free: 7.742 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.1e-05/0.1523, allocations: 16 kB / 0.5222 GB, free: 7.727 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004637/0.1528, allocations: 55.92 kB / 0.5223 GB, free: 7.672 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001681/0.153, allocations: 52.44 kB / 0.5223 GB, free: 7.621 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-05/0.153, allocations: 24 kB / 0.5223 GB, free: 7.598 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004912/0.1535, allocations: 346.8 kB / 0.5227 GB, free: 7.262 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1535, allocations: 4 kB / 0.5227 GB, free: 7.258 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009544/0.1545, allocations: 259.9 kB / 0.5229 GB, free: 7.004 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1]) * Number of discrete variables: 4 (system.initime,$whenCondition1,secondary.T_start,secondary.count) * Number of discrete states: 1 (secondary.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001551/0.1547, allocations: 127.3 kB / 0.523 GB, free: 6.867 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00275/0.1574, allocations: 1.746 MB / 0.5248 GB, free: 5.043 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1574, allocations: 0 / 0.5248 GB, free: 5.043 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009151/0.1584, allocations: 0.5987 MB / 0.5253 GB, free: 4.422 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007118/0.1591, allocations: 126 kB / 0.5255 GB, free: 4.301 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002515/0.1616, allocations: 1.564 MB / 0.527 GB, free: 2.68 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004828/0.1621, allocations: 0.947 MB / 0.5279 GB, free: 1.703 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001782/0.1623, allocations: 51.38 kB / 0.528 GB, free: 1.652 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1623, allocations: 0 / 0.528 GB, free: 1.652 MB / 414.1 MB Notification: Performance of Templates: time 0.1846/0.3469, allocations: 14.24 MB / 0.5419 GB, free: 46.58 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)