Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001463/0.001463, allocations: 72.89 kB / 21.49 MB, free: 2.836 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 167.4 kB / 24.91 MB, free: 9.254 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.037/1.037, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.252/0.252, allocations: 29.42 MB / 291.2 MB, free: 2.473 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.375e-06/2.375e-06, allocations: 0 / 316.9 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.983e-05/2.22e-05, allocations: 2.312 kB / 316.9 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.005366/0.005389, allocations: 5.427 MB / 322.3 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003049/0.008437, allocations: 2.15 MB / 324.5 MB, free: 8.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000363/0.0088, allocations: 31.75 kB / 324.5 MB, free: 8.289 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007789/0.009579, allocations: 266.3 kB / 324.8 MB, free: 8.027 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006769/0.01026, allocations: 433.5 kB / 325.2 MB, free: 7.602 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008059/0.01106, allocations: 478.7 kB / 325.7 MB, free: 7.133 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009113/0.01197, allocations: 1.033 MB / 326.7 MB, free: 6.098 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005541/0.01253, allocations: 0.5101 MB / 327.2 MB, free: 5.582 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000576/0.0131, allocations: 0.5572 MB / 327.8 MB, free: 5.023 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004027/0.01351, allocations: 358.9 kB / 328.1 MB, free: 4.672 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.519e-05/0.01358, allocations: 76 kB / 328.2 MB, free: 4.598 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004728/0.01405, allocations: 379 kB / 328.5 MB, free: 4.227 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001688/0.01422, allocations: 255.2 kB / 328.8 MB, free: 3.977 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001742/0.0144, allocations: 243.4 kB / 329 MB, free: 3.738 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006992/0.0151, allocations: 0.7396 MB / 329.8 MB, free: 2.996 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.823e-06/0.0151, allocations: 0 / 329.8 MB, free: 2.996 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.0151, allocations: 0 / 329.8 MB, free: 2.996 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.01511, allocations: 0 / 329.8 MB, free: 2.996 MB / 298.7 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.001074/0.01618, allocations: 0.9847 MB / 330.8 MB, free: 1.977 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.01621, allocations: 11.98 kB / 330.8 MB, free: 1.965 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000788/0.017, allocations: 248.5 kB / 331 MB, free: 1.723 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005073/0.01751, allocations: 428 kB / 331.4 MB, free: 1.277 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.73e-05/0.01754, allocations: 41.69 kB / 331.5 MB, free: 1.238 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.554e-05/0.0176, allocations: 60.36 kB / 331.5 MB, free: 1.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005566/0.01816, allocations: 0.5517 MB / 332.1 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.216e-05/0.01818, allocations: 12.11 kB / 332.1 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.122e-05/0.01822, allocations: 36.11 kB / 332.1 MB, free: 0.5234 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.455e-05/0.01826, allocations: 33.3 kB / 332.2 MB, free: 500 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003274/0.01858, allocations: 217 kB / 332.4 MB, free: 284 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00189/0.02047, allocations: 1.843 MB / 334.2 MB, free: 14.37 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003854/0.02086, allocations: 305 kB / 334.5 MB, free: 14.05 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001486/0.02101, allocations: 115.2 kB / 334.6 MB, free: 13.94 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.179e-05/0.02104, allocations: 12.5 kB / 334.6 MB, free: 13.93 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002741/0.02131, allocations: 236.1 kB / 334.9 MB, free: 13.67 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 1.583e-06/0.02131, allocations: 0 / 334.9 MB, free: 13.67 MB / 314.7 MB Notification: Performance of matching and sorting (n=58): time 0.001236/0.02255, allocations: 0.832 MB / 335.7 MB, free: 12.8 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.491e-05/0.02261, allocations: 141 kB / 335.8 MB, free: 12.64 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002149/0.02282, allocations: 355.2 kB / 336.2 MB, free: 12.28 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.546e-05/0.02286, allocations: 41.7 kB / 336.2 MB, free: 12.23 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001181/0.02297, allocations: 261.9 kB / 336.5 MB, free: 11.97 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/0.02308, allocations: 202.2 kB / 336.7 MB, free: 11.77 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001186/0.0232, allocations: 110.3 kB / 336.8 MB, free: 11.66 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.0233, allocations: 366.7 kB / 337.1 MB, free: 11.29 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001235/0.02342, allocations: 112 kB / 337.3 MB, free: 11.17 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001771/0.0236, allocations: 272 kB / 337.5 MB, free: 10.84 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003006/0.0239, allocations: 323.4 kB / 337.8 MB, free: 10.47 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.0239, allocations: 4 kB / 337.8 MB, free: 10.47 MB / 314.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0005843/0.02449, allocations: 499.7 kB / 338.3 MB, free: 9.957 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.031e-05/0.02452, allocations: 37.77 kB / 338.4 MB, free: 9.914 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.02452, allocations: 0 / 338.4 MB, free: 9.914 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000356/0.02488, allocations: 145.9 kB / 338.5 MB, free: 9.766 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002388/0.02512, allocations: 107.9 kB / 338.6 MB, free: 9.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001835/0.02695, allocations: 2.995 MB / 341.6 MB, free: 6.488 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001896/0.02714, allocations: 31.94 kB / 341.6 MB, free: 6.457 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.841e-05/0.02717, allocations: 16 kB / 341.7 MB, free: 6.441 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001898/0.02736, allocations: 196.8 kB / 341.8 MB, free: 6.234 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001684/0.02753, allocations: 264.1 kB / 342.1 MB, free: 5.918 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002848/0.02782, allocations: 324.5 kB / 342.4 MB, free: 5.555 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.903e-06/0.02782, allocations: 0 / 342.4 MB, free: 5.555 MB / 314.7 MB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.0005126/0.02833, allocations: 471.8 kB / 342.9 MB, free: 5.066 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.02835, allocations: 33.7 kB / 342.9 MB, free: 5.027 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/0.02835, allocations: 4 kB / 342.9 MB, free: 5.023 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002536/0.02861, allocations: 124.3 kB / 343 MB, free: 4.895 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002322/0.02884, allocations: 107.8 kB / 343.1 MB, free: 4.789 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001596/0.03044, allocations: 2.955 MB / 346.1 MB, free: 1.645 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000181/0.03062, allocations: 31.97 kB / 346.1 MB, free: 1.613 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.645e-05/0.03064, allocations: 16 kB / 346.1 MB, free: 1.598 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,hydroPlant.reservoirLevel.local_reset,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 (58): * Single equations (assignments): 55 * 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.0001251/0.03077, allocations: 212.1 kB / 346.4 MB, free: 1.383 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.53e-05/0.03083, allocations: 59.97 kB / 346.4 MB, free: 1.324 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004441/0.03128, allocations: 383.7 kB / 346.8 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/0.03128, allocations: 8 kB / 346.8 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.365e-06/0.03128, allocations: 0 / 346.8 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.03129, allocations: 3.984 kB / 346.8 MB, free: 0.9219 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009323/0.03222, allocations: 0.8775 MB / 347.7 MB, free: 15.99 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.03223, allocations: 3.938 kB / 347.7 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002967/0.03252, allocations: 123.9 kB / 347.8 MB, free: 15.87 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001126/0.03264, allocations: 48.52 kB / 347.9 MB, free: 15.81 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.876e-05/0.03266, allocations: 19.98 kB / 347.9 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001235/0.0339, allocations: 2.395 MB / 350.3 MB, free: 13.21 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.0339, allocations: 4 kB / 350.3 MB, free: 13.21 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006235/0.03453, allocations: 0.6151 MB / 350.9 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000107/0.03463, allocations: 83.72 kB / 351 MB, free: 12.46 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.227e-05/0.03467, allocations: 15.98 kB / 351 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001761/0.03485, allocations: 27.98 kB / 351 MB, free: 12.42 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.235e-05/0.03494, allocations: 52.41 kB / 351.1 MB, free: 12.37 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.486e-05/0.03497, allocations: 23.86 kB / 351.1 MB, free: 12.35 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000115/0.03508, allocations: 148.7 kB / 351.2 MB, free: 12.2 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03508, allocations: 0 / 351.2 MB, free: 12.2 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005675/0.03565, allocations: 260 kB / 351.5 MB, free: 11.95 MB / 330.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 (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.0001394/0.03579, allocations: 107.3 kB / 351.6 MB, free: 11.84 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001069/0.03686, allocations: 1.175 MB / 352.8 MB, free: 10.57 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.126e-06/0.03687, allocations: 4 kB / 352.8 MB, free: 10.56 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003009/0.03717, allocations: 406 kB / 353.2 MB, free: 10.14 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003936/0.03756, allocations: 147.9 kB / 353.3 MB, free: 10.01 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001643/0.0392, allocations: 1.242 MB / 354.5 MB, free: 8.711 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001239/0.03933, allocations: 176 kB / 354.7 MB, free: 8.516 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002055/0.03953, allocations: 72.53 kB / 354.8 MB, free: 8.445 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002574/0.03979, allocations: 155.3 kB / 354.9 MB, free: 8.293 MB / 330.7 MB Notification: Performance of SimCode: time 7.41e-07/0.03979, allocations: 0 / 354.9 MB, free: 8.293 MB / 330.7 MB Notification: Performance of Templates: time 0.0124/0.05219, allocations: 10.43 MB / 365.4 MB, free: 13.98 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2 -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1) [Timeout 240] [Calling os._exit(0), Time elapsed: 3.266143398825079]