Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.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.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001033/0.001033, allocations: 189.5 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.11/1.11, allocations: 194.2 MB / 212.2 MB, free: 2.363 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.001609/0.001609, allocations: 119.5 kB / 256.6 MB, free: 4.297 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1627/0.1627, allocations: 37.94 MB / 338.8 MB, free: 2.219 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 63.91 kB / 401.8 MB, free: 68.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0717/0.07285, allocations: 52.19 MB / 454 MB, free: 16.57 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.005459/0.07836, allocations: 5.375 MB / 459.4 MB, free: 11.16 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002693/0.08108, allocations: 2.233 MB / 461.6 MB, free: 8.918 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002755/0.08137, allocations: 27.88 kB / 461.6 MB, free: 8.891 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007004/0.08208, allocations: 227 kB / 461.8 MB, free: 8.668 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004994/0.08259, allocations: 294.6 kB / 462.1 MB, free: 8.379 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005244/0.08312, allocations: 331.5 kB / 462.5 MB, free: 8.055 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006024/0.08374, allocations: 0.971 MB / 463.4 MB, free: 7.082 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005013/0.08425, allocations: 411.2 kB / 463.8 MB, free: 6.676 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002682/0.08452, allocations: 294.6 kB / 464.1 MB, free: 6.387 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002673/0.0848, allocations: 334.5 kB / 464.4 MB, free: 6.059 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.597e-05/0.08487, allocations: 32 kB / 464.5 MB, free: 6.027 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003782/0.08525, allocations: 383.2 kB / 464.9 MB, free: 5.652 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.08537, allocations: 151.4 kB / 465 MB, free: 5.504 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001728/0.08555, allocations: 290.3 kB / 465.3 MB, free: 5.219 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005334/0.08609, allocations: 0.8488 MB / 466.1 MB, free: 4.367 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.0861, allocations: 0 / 466.1 MB, free: 4.367 MB / 314.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.08611, allocations: 0 / 466.1 MB, free: 4.367 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.244e-06/0.08612, allocations: 0 / 466.1 MB, free: 4.367 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001471/0.08759, allocations: 1.003 MB / 467.1 MB, free: 3.309 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.73e-05/0.08763, allocations: 8.031 kB / 467.1 MB, free: 3.301 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007235/0.08836, allocations: 136 kB / 467.3 MB, free: 3.168 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005935/0.08896, allocations: 0.4938 MB / 467.8 MB, free: 2.633 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.089, allocations: 37.12 kB / 467.8 MB, free: 2.598 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.878e-05/0.08908, allocations: 48 kB / 467.9 MB, free: 2.551 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008955/0.08998, allocations: 0.6358 MB / 468.5 MB, free: 1.879 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.09002, allocations: 7.938 kB / 468.5 MB, free: 1.871 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.215e-05/0.09006, allocations: 20 kB / 468.5 MB, free: 1.852 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.839e-05/0.0901, allocations: 24.98 kB / 468.5 MB, free: 1.828 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000995/0.0911, allocations: 0.5777 MB / 469.1 MB, free: 1.25 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002747/0.09386, allocations: 2.473 MB / 471.6 MB, free: 14.64 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001184/0.09505, allocations: 0.5879 MB / 472.2 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004524/0.09552, allocations: 205.6 kB / 472.4 MB, free: 13.81 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.781e-05/0.09557, allocations: 8 kB / 472.4 MB, free: 13.8 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005782/0.09615, allocations: 292.4 kB / 472.7 MB, free: 13.5 MB / 330.7 MB Notification: Performance of pre-optimization done (n=40): time 2.185e-06/0.09617, allocations: 7.938 kB / 472.7 MB, free: 13.49 MB / 330.7 MB Notification: Performance of matching and sorting (n=40): time 0.001656/0.09783, allocations: 0.7258 MB / 473.4 MB, free: 12.73 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.114e-05/0.09792, allocations: 140.5 kB / 473.5 MB, free: 12.57 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005773/0.0985, allocations: 465.8 kB / 474 MB, free: 12.11 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.559e-05/0.09855, allocations: 29.7 kB / 474 MB, free: 12.07 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001797/0.09874, allocations: 296.1 kB / 474.3 MB, free: 11.78 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.82e-05/0.09884, allocations: 145.9 kB / 474.5 MB, free: 11.63 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.09898, allocations: 90.23 kB / 474.5 MB, free: 11.54 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.09912, allocations: 362.9 kB / 474.9 MB, free: 11.18 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000448/0.09957, allocations: 186.9 kB / 475.1 MB, free: 10.99 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005394/0.1001, allocations: 297.5 kB / 475.4 MB, free: 10.65 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009254/0.1011, allocations: 0.4924 MB / 475.9 MB, free: 10.11 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.1011, allocations: 4 kB / 475.9 MB, free: 10.11 MB / 330.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001548/0.1026, allocations: 0.7331 MB / 476.6 MB, free: 9.359 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.233e-05/0.1027, allocations: 37.69 kB / 476.6 MB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.1027, allocations: 7.938 kB / 476.6 MB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004027/0.1031, allocations: 128.1 kB / 476.8 MB, free: 9.184 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003426/0.1035, allocations: 91.88 kB / 476.9 MB, free: 9.094 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002813/0.1063, allocations: 2.331 MB / 479.2 MB, free: 6.621 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004113/0.1067, allocations: 71.48 kB / 479.3 MB, free: 6.551 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.869e-05/0.1068, allocations: 27.92 kB / 479.3 MB, free: 6.523 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000522/0.1073, allocations: 329.8 kB / 479.6 MB, free: 6.199 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000435/0.1077, allocations: 277.5 kB / 479.9 MB, free: 5.891 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008294/0.1086, allocations: 488.5 kB / 480.4 MB, free: 5.367 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.873e-06/0.1086, allocations: 4 kB / 480.4 MB, free: 5.363 MB / 330.7 MB Notification: Performance of matching and sorting (n=56) (initialization_lambda0): time 0.001224/0.1098, allocations: 0.655 MB / 481 MB, free: 4.691 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.1098, allocations: 29.7 kB / 481 MB, free: 4.656 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.206e-06/0.1099, allocations: 4 kB / 481.1 MB, free: 4.652 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002926/0.1102, allocations: 120.9 kB / 481.2 MB, free: 4.531 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003375/0.1105, allocations: 83.89 kB / 481.3 MB, free: 4.449 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00203/0.1125, allocations: 2.167 MB / 483.4 MB, free: 2.152 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003894/0.1129, allocations: 59.64 kB / 483.5 MB, free: 2.094 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.506e-05/0.113, allocations: 20 kB / 483.5 MB, free: 2.074 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0001503/0.1131, allocations: 208.1 kB / 483.7 MB, free: 1.863 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.467e-05/0.1132, allocations: 51.5 kB / 483.8 MB, free: 1.812 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001066/0.1143, allocations: 0.4989 MB / 484.3 MB, free: 1.305 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.1143, allocations: 4 kB / 484.3 MB, free: 1.301 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1143, allocations: 3.938 kB / 484.3 MB, free: 1.297 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.1143, allocations: 4 kB / 484.3 MB, free: 1.293 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001715/0.1161, allocations: 1.139 MB / 485.4 MB, free: 96 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.1161, allocations: 0 / 485.4 MB, free: 96 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004144/0.1165, allocations: 87.94 kB / 485.5 MB, free: 8 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.907e-05/0.1166, allocations: 28.78 kB / 485.5 MB, free: 15.98 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.228e-05/0.1166, allocations: 12.09 kB / 485.5 MB, free: 15.96 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008567/0.1175, allocations: 1.359 MB / 486.9 MB, free: 14.47 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1175, allocations: 0 / 486.9 MB, free: 14.47 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007975/0.1255, allocations: 5.322 MB / 492.2 MB, free: 8.844 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001793/0.1257, allocations: 168.3 kB / 492.4 MB, free: 8.66 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.156e-05/0.1258, allocations: 8 kB / 492.4 MB, free: 8.652 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003662/0.1261, allocations: 43.95 kB / 492.4 MB, free: 8.609 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.706e-05/0.1262, allocations: 39.94 kB / 492.5 MB, free: 8.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.501e-05/0.1263, allocations: 8 kB / 492.5 MB, free: 8.562 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004394/0.1267, allocations: 335.1 kB / 492.8 MB, free: 8.234 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1267, allocations: 3.938 kB / 492.8 MB, free: 8.23 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001108/0.1278, allocations: 331.3 kB / 493.1 MB, free: 7.906 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001212/0.128, allocations: 115.2 kB / 493.2 MB, free: 7.785 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001902/0.1299, allocations: 1.094 MB / 494.3 MB, free: 6.641 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1299, allocations: 0 / 494.3 MB, free: 6.641 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005798/0.1305, allocations: 347.6 kB / 494.7 MB, free: 6.289 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005956/0.1311, allocations: 102 kB / 494.8 MB, free: 6.188 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/0.1334, allocations: 1.801 MB / 496.6 MB, free: 4.328 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000404/0.1339, allocations: 0.8981 MB / 497.5 MB, free: 3.402 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003591/0.1342, allocations: 104.1 kB / 497.6 MB, free: 3.297 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001376/0.1344, allocations: 39.42 kB / 497.6 MB, free: 3.258 MB / 346.7 MB Notification: Performance of SimCode: time 6.42e-07/0.1344, allocations: 0 / 497.6 MB, free: 3.258 MB / 346.7 MB Notification: Performance of Templates: time 0.01378/0.1482, allocations: 8.677 MB / 0.4944 GB, free: 10.57 MB / 362.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1)