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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001719/0.00172, allocations: 191.9 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.182/1.182, allocations: 194.2 MB / 212.2 MB, free: 2.359 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001629/0.001629, allocations: 133.2 kB / 256.6 MB, free: 4.293 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1647/0.1647, allocations: 37.95 MB / 338.8 MB, free: 2.211 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 67.89 kB / 401.8 MB, free: 68.73 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0785/0.07973, allocations: 52.19 MB / 454 MB, free: 16.56 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.005926/0.0857, allocations: 6.077 MB / 460.1 MB, free: 10.45 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003391/0.08914, allocations: 2.755 MB / 462.8 MB, free: 7.684 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005962/0.08976, allocations: 35.81 kB / 462.9 MB, free: 7.648 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009805/0.09075, allocations: 318.7 kB / 463.2 MB, free: 7.336 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009716/0.09174, allocations: 422.3 kB / 463.6 MB, free: 6.922 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008108/0.09256, allocations: 390.5 kB / 464 MB, free: 6.543 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009168/0.09349, allocations: 1.228 MB / 465.2 MB, free: 5.312 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000621/0.09412, allocations: 475.2 kB / 465.7 MB, free: 4.848 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004118/0.09454, allocations: 342.4 kB / 466 MB, free: 4.512 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004282/0.09498, allocations: 410.3 kB / 466.4 MB, free: 4.109 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.921e-05/0.09507, allocations: 36 kB / 466.4 MB, free: 4.074 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000663/0.09574, allocations: 0.569 MB / 467 MB, free: 3.504 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001473/0.09589, allocations: 199.3 kB / 467.2 MB, free: 3.309 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000248/0.09615, allocations: 326.1 kB / 467.5 MB, free: 2.988 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007709/0.09693, allocations: 1.028 MB / 468.5 MB, free: 1.957 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.09694, allocations: 0 / 468.5 MB, free: 1.957 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.09695, allocations: 0 / 468.5 MB, free: 1.957 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.39e-05/0.09697, allocations: 0 / 468.5 MB, free: 1.957 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.001705/0.09868, allocations: 1.063 MB / 469.6 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.046e-05/0.09871, allocations: 15.95 kB / 469.6 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001021/0.09974, allocations: 176 kB / 469.8 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006785/0.1004, allocations: 0.5131 MB / 470.3 MB, free: 100 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.647e-05/0.1005, allocations: 41.44 kB / 470.3 MB, free: 60 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.992e-05/0.1006, allocations: 59.98 kB / 470.4 MB, free: 0 / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001224/0.1018, allocations: 0.7529 MB / 471.2 MB, free: 15.21 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.544e-05/0.1018, allocations: 7.969 kB / 471.2 MB, free: 15.2 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.269e-05/0.1019, allocations: 23.94 kB / 471.2 MB, free: 15.18 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.071e-05/0.1019, allocations: 33.3 kB / 471.2 MB, free: 15.15 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001332/0.1033, allocations: 0.7077 MB / 471.9 MB, free: 14.43 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003617/0.1069, allocations: 2.673 MB / 474.6 MB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001246/0.1082, allocations: 0.5805 MB / 475.2 MB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000623/0.1088, allocations: 358.7 kB / 475.5 MB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.759e-05/0.1088, allocations: 12.42 kB / 475.5 MB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007006/0.1096, allocations: 421.9 kB / 476 MB, free: 10.24 MB / 330.7 MB Notification: Performance of pre-optimization done (n=55): time 2.284e-06/0.1096, allocations: 0 / 476 MB, free: 10.24 MB / 330.7 MB Notification: Performance of matching and sorting (n=57): time 0.003874/0.1134, allocations: 2.077 MB / 478 MB, free: 8.086 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.11e-05/0.1135, allocations: 111.4 kB / 478.1 MB, free: 7.953 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005639/0.1141, allocations: 445.9 kB / 478.6 MB, free: 7.508 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.218e-05/0.1141, allocations: 37.7 kB / 478.6 MB, free: 7.465 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001853/0.1143, allocations: 292.5 kB / 478.9 MB, free: 7.176 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001529/0.1145, allocations: 197.2 kB / 479.1 MB, free: 6.98 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000176/0.1147, allocations: 102.3 kB / 479.2 MB, free: 6.875 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.1148, allocations: 366.8 kB / 479.5 MB, free: 6.508 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005582/0.1154, allocations: 287 kB / 479.8 MB, free: 6.227 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006502/0.116, allocations: 388.8 kB / 480.2 MB, free: 5.812 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001205/0.1173, allocations: 0.7046 MB / 480.9 MB, free: 5.066 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1173, allocations: 0 / 480.9 MB, free: 5.066 MB / 330.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001964/0.1192, allocations: 0.9776 MB / 481.9 MB, free: 4.07 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.265e-05/0.1193, allocations: 41.69 kB / 481.9 MB, free: 4.023 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.1193, allocations: 4 kB / 481.9 MB, free: 4.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005661/0.1199, allocations: 165.6 kB / 482.1 MB, free: 3.852 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004396/0.1203, allocations: 120 kB / 482.2 MB, free: 3.734 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003738/0.1241, allocations: 3.712 MB / 485.9 MB, free: 15.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004694/0.1246, allocations: 63.91 kB / 486 MB, free: 15.69 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.84e-05/0.1246, allocations: 23.98 kB / 486 MB, free: 15.67 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006839/0.1253, allocations: 437.1 kB / 486.4 MB, free: 15.23 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005564/0.1259, allocations: 364.9 kB / 486.8 MB, free: 14.84 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001065/0.1269, allocations: 0.6773 MB / 487.5 MB, free: 14.12 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.557e-06/0.127, allocations: 4 kB / 487.5 MB, free: 14.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001649/0.1286, allocations: 0.8917 MB / 488.4 MB, free: 13.21 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.714e-05/0.1287, allocations: 33.7 kB / 488.4 MB, free: 13.17 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.1287, allocations: 4 kB / 488.4 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004528/0.1291, allocations: 173.5 kB / 488.6 MB, free: 12.99 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004486/0.1296, allocations: 111.9 kB / 488.7 MB, free: 12.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003157/0.1328, allocations: 3.529 MB / 492.2 MB, free: 9.082 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004633/0.1332, allocations: 60 kB / 492.3 MB, free: 9.023 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.599e-05/0.1333, allocations: 23.98 kB / 492.3 MB, free: 9 MB / 346.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: 6 (system.initime,secondary.count,$PRE.secondary.count,secondary.T_start,$PRE.secondary.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 54 * 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,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0001786/0.1335, allocations: 208.1 kB / 492.5 MB, free: 8.789 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.165e-05/0.1336, allocations: 55.34 kB / 492.6 MB, free: 8.734 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001604/0.1352, allocations: 0.8068 MB / 493.4 MB, free: 7.918 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.1352, allocations: 8 kB / 493.4 MB, free: 7.91 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.1352, allocations: 3.984 kB / 493.4 MB, free: 7.906 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.1352, allocations: 4 kB / 493.4 MB, free: 7.902 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002594/0.1378, allocations: 1.644 MB / 495 MB, free: 6.176 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.1378, allocations: 0 / 495 MB, free: 6.176 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005809/0.1384, allocations: 131.8 kB / 495.1 MB, free: 6.047 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002103/0.1386, allocations: 69.86 kB / 495.2 MB, free: 5.973 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.171e-05/0.1387, allocations: 12 kB / 495.2 MB, free: 5.961 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001796/0.1405, allocations: 2.693 MB / 497.9 MB, free: 2.996 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.1405, allocations: 4.125 kB / 497.9 MB, free: 2.992 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01105/0.1516, allocations: 7.926 MB / 0.494 GB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002543/0.1518, allocations: 184.3 kB / 0.4942 GB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.956e-05/0.1519, allocations: 19.94 kB / 0.4942 GB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004518/0.1524, allocations: 59.98 kB / 0.4942 GB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/0.1525, allocations: 48.44 kB / 0.4943 GB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.29e-05/0.1526, allocations: 23.98 kB / 0.4943 GB, free: 10.26 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004349/0.153, allocations: 315.1 kB / 0.4946 GB, free: 9.953 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.153, allocations: 4 kB / 0.4946 GB, free: 9.949 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001245/0.1543, allocations: 360 kB / 0.495 GB, free: 9.598 MB / 362.7 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 (61): * Single equations (assignments): 56 * 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.0001556/0.1544, allocations: 119.2 kB / 0.4951 GB, free: 9.469 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002824/0.1573, allocations: 1.707 MB / 0.4967 GB, free: 7.684 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.1573, allocations: 4 kB / 0.4967 GB, free: 7.68 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009389/0.1582, allocations: 0.5948 MB / 0.4973 GB, free: 7.059 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000687/0.1589, allocations: 113.8 kB / 0.4974 GB, free: 6.945 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00327/0.1622, allocations: 2.356 MB / 0.4997 GB, free: 4.504 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005456/0.1628, allocations: 0.9548 MB / 0.5007 GB, free: 3.523 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004856/0.1633, allocations: 160.4 kB / 0.5008 GB, free: 3.363 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001849/0.1635, allocations: 43.44 kB / 0.5009 GB, free: 3.32 MB / 362.7 MB Notification: Performance of SimCode: time 4.21e-07/0.1635, allocations: 0 / 0.5009 GB, free: 3.32 MB / 362.7 MB Notification: Performance of Templates: time 0.177/0.3405, allocations: 11.03 MB / 0.5116 GB, free: 62.5 MB / 362.7 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)