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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001889/0.001889, allocations: 111.1 kB / 17.29 MB, free: 6.207 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.00269/0.00269, allocations: 197.3 kB / 18.21 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.887/2.887, allocations: 222.9 MB / 241.9 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.5409/0.5409, allocations: 38.01 MB / 330 MB, free: 8.98 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002545/0.002545, allocations: 65.45 kB / 398.9 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2188/0.2214, allocations: 58.06 MB / 457 MB, free: 8.414 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.015/0.2365, allocations: 6.242 MB / 463.2 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009852/0.2465, allocations: 2.77 MB / 466 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002111/0.2487, allocations: 35.81 kB / 466 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002534/0.2513, allocations: 333.9 kB / 466.4 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003233/0.2545, allocations: 418.2 kB / 466.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002682/0.2572, allocations: 411.3 kB / 467.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002974/0.2602, allocations: 1.061 MB / 468.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001658/0.2619, allocations: 0.5903 MB / 468.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001112/0.263, allocations: 414.4 kB / 469.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008858/0.2639, allocations: 442.2 kB / 469.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001748/0.2641, allocations: 76 kB / 469.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001721/0.2659, allocations: 0.5027 MB / 470.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004064/0.2663, allocations: 231.3 kB / 470.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006247/0.2669, allocations: 382.1 kB / 470.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002036/0.269, allocations: 0.8302 MB / 471.7 MB, free: 9.668 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.352e-05/0.269, allocations: 0 / 471.7 MB, free: 9.668 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.779e-06/0.2691, allocations: 0 / 471.7 MB, free: 9.668 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.091e-05/0.2691, allocations: 0 / 471.7 MB, free: 9.668 MB / 350.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.003978/0.2731, allocations: 1.11 MB / 472.8 MB, free: 8.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.992e-05/0.2732, allocations: 19.88 kB / 472.8 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002089/0.2753, allocations: 179.8 kB / 473 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001686/0.277, allocations: 0.5326 MB / 473.5 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.468e-05/0.2771, allocations: 45.67 kB / 473.6 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001689/0.2773, allocations: 56.31 kB / 473.6 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002533/0.2798, allocations: 0.7983 MB / 474.4 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.176e-05/0.2799, allocations: 7.922 kB / 474.4 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001035/0.28, allocations: 20 kB / 474.4 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.811e-05/0.2801, allocations: 37.23 kB / 474.5 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002502/0.2826, allocations: 0.7272 MB / 475.2 MB, free: 6.008 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007612/0.2902, allocations: 2.911 MB / 478.1 MB, free: 2.977 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002394/0.2927, allocations: 0.5901 MB / 478.7 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001178/0.2939, allocations: 365.9 kB / 479.1 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.218e-05/0.294, allocations: 8.438 kB / 479.1 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001416/0.2954, allocations: 422.3 kB / 479.5 MB, free: 1.566 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 6.833e-06/0.2955, allocations: 0 / 479.5 MB, free: 1.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.008143/0.3036, allocations: 2.117 MB / 481.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001455/0.3038, allocations: 107.4 kB / 481.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001253/0.3051, allocations: 485.9 kB / 482.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.073e-05/0.3052, allocations: 37.7 kB / 482.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005095/0.3057, allocations: 312.5 kB / 482.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003294/0.3061, allocations: 201 kB / 482.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003211/0.3064, allocations: 106.4 kB / 482.8 MB, free: 14.1 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000302/0.3067, allocations: 374.8 kB / 483.2 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001012/0.3078, allocations: 295.2 kB / 483.5 MB, free: 13.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001115/0.3089, allocations: 399 kB / 483.9 MB, free: 13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002201/0.3111, allocations: 0.7224 MB / 484.6 MB, free: 12.23 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.3111, allocations: 3.938 kB / 484.6 MB, free: 12.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.003853/0.315, allocations: 1.009 MB / 485.6 MB, free: 11.2 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.273e-05/0.3151, allocations: 33.7 kB / 485.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.775e-05/0.3151, allocations: 4 kB / 485.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001061/0.3162, allocations: 189.8 kB / 485.8 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008693/0.3171, allocations: 119.7 kB / 485.9 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008057/0.3252, allocations: 4.126 MB / 490.1 MB, free: 6.441 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001267/0.3265, allocations: 60 kB / 490.1 MB, free: 6.383 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.573e-05/0.3266, allocations: 23.98 kB / 490.1 MB, free: 6.359 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001473/0.3281, allocations: 445.2 kB / 490.6 MB, free: 5.918 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001067/0.3292, allocations: 394.9 kB / 491 MB, free: 5.496 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002065/0.3313, allocations: 0.7029 MB / 491.7 MB, free: 4.746 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.019e-06/0.3313, allocations: 0 / 491.7 MB, free: 4.746 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization_lambda0): time 0.003255/0.3346, allocations: 0.9346 MB / 492.6 MB, free: 3.789 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.086e-05/0.3347, allocations: 29.7 kB / 492.6 MB, free: 3.754 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/0.3347, allocations: 4 kB / 492.6 MB, free: 3.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009067/0.3356, allocations: 181.6 kB / 492.8 MB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008619/0.3365, allocations: 111.9 kB / 492.9 MB, free: 3.457 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00683/0.3434, allocations: 3.949 MB / 496.9 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001155/0.3446, allocations: 51.94 kB / 496.9 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.335e-05/0.3447, allocations: 23.98 kB / 496.9 MB, free: 15.16 MB / 382.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.0004989/0.3452, allocations: 223.2 kB / 497.2 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000181/0.3454, allocations: 59.28 kB / 497.2 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003011/0.3484, allocations: 0.8188 MB / 498 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.25e-05/0.3484, allocations: 8 kB / 498 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.3485, allocations: 4 kB / 498 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.093e-05/0.3485, allocations: 7.922 kB / 498.1 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005053/0.3536, allocations: 1.663 MB / 499.7 MB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/0.3536, allocations: 4 kB / 499.7 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001162/0.3548, allocations: 136 kB / 499.9 MB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004863/0.3553, allocations: 65.67 kB / 499.9 MB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.688e-05/0.3554, allocations: 12 kB / 499.9 MB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005067/0.3605, allocations: 2.902 MB / 0.491 GB, free: 8.879 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.497e-06/0.3605, allocations: 3.938 kB / 0.4911 GB, free: 8.875 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004168/0.3647, allocations: 1.302 MB / 0.4923 GB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000634/0.3654, allocations: 188.3 kB / 0.4925 GB, free: 7.324 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000134/0.3655, allocations: 12 kB / 0.4925 GB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000776/0.3663, allocations: 59.92 kB / 0.4926 GB, free: 7.254 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002505/0.3666, allocations: 52.44 kB / 0.4926 GB, free: 7.203 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.554e-05/0.3667, allocations: 19.98 kB / 0.4926 GB, free: 7.184 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009218/0.3676, allocations: 342.8 kB / 0.493 GB, free: 6.852 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3676, allocations: 0 / 0.493 GB, free: 6.852 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001916/0.3696, allocations: 263.9 kB / 0.4932 GB, free: 6.594 MB / 382.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.0003453/0.3699, allocations: 127.3 kB / 0.4933 GB, free: 6.457 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005449/0.3754, allocations: 1.828 MB / 0.4951 GB, free: 4.555 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.145e-05/0.3754, allocations: 0 / 0.4951 GB, free: 4.555 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001707/0.3772, allocations: 0.6107 MB / 0.4957 GB, free: 3.918 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001581/0.3788, allocations: 133.7 kB / 0.4958 GB, free: 3.797 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00521/0.384, allocations: 1.842 MB / 0.4976 GB, free: 1.902 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001035/0.3851, allocations: 0.9431 MB / 0.4986 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003871/0.3855, allocations: 55.42 kB / 0.4986 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of SimCode: time 1.513e-06/0.3855, allocations: 0 / 0.4986 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of Templates: time 0.03373/0.4192, allocations: 13.98 MB / 0.5123 GB, free: 2.887 MB / 398.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)