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.0007691/0.0007691, allocations: 88.53 kB / 16.31 MB, free: 6.449 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.0008504/0.0008504, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.298/1.298, allocations: 205.4 MB / 223.4 MB, free: 5.289 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2774/0.2774, allocations: 38.06 MB / 309.7 MB, free: 9.008 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.000461/0.0004612, allocations: 16 kB / 376.5 MB, free: 15.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09195/0.09242, allocations: 56.35 MB / 432.9 MB, free: 6.699 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.005758/0.09822, allocations: 5.501 MB / 438.4 MB, free: 1.172 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004325/0.1026, allocations: 2.686 MB / 441 MB, free: 14.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007278/0.1034, allocations: 35.75 kB / 441.1 MB, free: 14.44 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005588/0.1039, allocations: 127 kB / 441.2 MB, free: 14.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001362/0.1053, allocations: 386 kB / 441.6 MB, free: 13.94 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001425/0.1068, allocations: 339.3 kB / 441.9 MB, free: 13.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001555/0.1083, allocations: 1.068 MB / 443 MB, free: 12.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001287/0.1096, allocations: 0.6366 MB / 443.6 MB, free: 11.86 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005927/0.1102, allocations: 322.5 kB / 443.9 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006641/0.1109, allocations: 362.4 kB / 444.3 MB, free: 11.19 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001466/0.1111, allocations: 31.94 kB / 444.3 MB, free: 11.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007957/0.1119, allocations: 259.3 kB / 444.6 MB, free: 10.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003012/0.1122, allocations: 179.3 kB / 444.7 MB, free: 10.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002832/0.1125, allocations: 157.2 kB / 444.9 MB, free: 10.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001004/0.1135, allocations: 0.791 MB / 445.7 MB, free: 9.777 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1135, allocations: 0 / 445.7 MB, free: 9.777 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1135, allocations: 0 / 445.7 MB, free: 9.777 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.663e-05/0.1136, allocations: 0 / 445.7 MB, free: 9.777 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.00201/0.1156, allocations: 1 MB / 446.7 MB, free: 8.719 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.1156, allocations: 8.031 kB / 446.7 MB, free: 8.711 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001185/0.1168, allocations: 178.9 kB / 446.9 MB, free: 8.535 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00088/0.1177, allocations: 0.5316 MB / 447.4 MB, free: 7.961 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.817e-05/0.1178, allocations: 45.31 kB / 447.4 MB, free: 7.918 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.1179, allocations: 55.98 kB / 447.5 MB, free: 7.863 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001378/0.1193, allocations: 0.7982 MB / 448.3 MB, free: 7.027 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.785e-05/0.1193, allocations: 7.891 kB / 448.3 MB, free: 7.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.458e-05/0.1194, allocations: 27.94 kB / 448.3 MB, free: 6.992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-05/0.1194, allocations: 29.3 kB / 448.4 MB, free: 6.965 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001431/0.1209, allocations: 0.7623 MB / 449.1 MB, free: 6.203 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004241/0.1251, allocations: 2.935 MB / 452.1 MB, free: 3.145 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001258/0.1264, allocations: 0.6119 MB / 452.7 MB, free: 2.516 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006761/0.1271, allocations: 370.8 kB / 453 MB, free: 2.148 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.12e-05/0.1272, allocations: 12.42 kB / 453 MB, free: 2.137 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007651/0.1279, allocations: 450.2 kB / 453.5 MB, free: 1.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 2.184e-06/0.1279, allocations: 0 / 453.5 MB, free: 1.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.1721/0.3001, allocations: 2.181 MB / 455.7 MB, free: 51.1 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.479e-05/0.3002, allocations: 112.9 kB / 455.8 MB, free: 50.97 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006224/0.3008, allocations: 485.7 kB / 456.2 MB, free: 50.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.284e-05/0.3009, allocations: 44.48 kB / 456.3 MB, free: 50.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001866/0.3011, allocations: 304.1 kB / 456.6 MB, free: 50.69 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001513/0.3013, allocations: 204.1 kB / 456.8 MB, free: 50.56 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.653e-05/0.3013, allocations: 13.31 kB / 456.8 MB, free: 50.56 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.026e-05/0.3014, allocations: 373.1 kB / 457.2 MB, free: 50.25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005245/0.3019, allocations: 293 kB / 457.5 MB, free: 50.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005481/0.3025, allocations: 423.2 kB / 457.9 MB, free: 50.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005966/0.3031, allocations: 369.4 kB / 458.2 MB, free: 50.11 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.3031, allocations: 0 / 458.2 MB, free: 50.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001936/0.305, allocations: 1.059 MB / 459.3 MB, free: 49.99 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.942e-05/0.3052, allocations: 199.8 kB / 459.5 MB, free: 49.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.3052, allocations: 6.219 kB / 459.5 MB, free: 49.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006218/0.3058, allocations: 210.5 kB / 459.7 MB, free: 49.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004483/0.3063, allocations: 126 kB / 459.8 MB, free: 49.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003274/0.3095, allocations: 3.854 MB / 463.7 MB, free: 47.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005113/0.3101, allocations: 66.28 kB / 463.7 MB, free: 47.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.528e-05/0.3101, allocations: 29.12 kB / 463.8 MB, free: 47.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.921e-06/0.3101, allocations: 3.25 kB / 463.8 MB, free: 47.11 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001496/0.3116, allocations: 0.8807 MB / 464.6 MB, free: 47.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.3117, allocations: 7.172 kB / 464.7 MB, free: 47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004151/0.3121, allocations: 173.3 kB / 464.8 MB, free: 46.99 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004214/0.3125, allocations: 125.4 kB / 464.9 MB, free: 46.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00252/0.315, allocations: 3.614 MB / 468.6 MB, free: 44.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000461/0.3155, allocations: 65.25 kB / 468.6 MB, free: 44.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.151e-05/0.3156, allocations: 23.75 kB / 468.6 MB, free: 44.1 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,$whenCondition1,$PRE.secondary.T_start,secondary.T_start,$PRE.secondary.count,secondary.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 13} Notification: Performance of prepare postOptimizeDAE: time 0.000293/0.3159, allocations: 305.6 kB / 468.9 MB, free: 43.85 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.955e-05/0.316, allocations: 60.56 kB / 469 MB, free: 43.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001396/0.3174, allocations: 0.8587 MB / 469.9 MB, free: 43.47 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.72e-06/0.3174, allocations: 6.281 kB / 469.9 MB, free: 43.47 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.3174, allocations: 0 / 469.9 MB, free: 43.47 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.3174, allocations: 3.328 kB / 469.9 MB, free: 43.47 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002126/0.3195, allocations: 1.697 MB / 471.6 MB, free: 42.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.3195, allocations: 0 / 471.6 MB, free: 42.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005487/0.3201, allocations: 140 kB / 471.7 MB, free: 42.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001852/0.3203, allocations: 71.61 kB / 471.8 MB, free: 42.58 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.766e-05/0.3203, allocations: 14.5 kB / 471.8 MB, free: 42.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001221/0.3216, allocations: 2.696 MB / 474.5 MB, free: 39.88 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3216, allocations: 7.016 kB / 474.5 MB, free: 39.88 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001808/0.3234, allocations: 1.34 MB / 475.8 MB, free: 39.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001809/0.3236, allocations: 186.4 kB / 476 MB, free: 39.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.447e-05/0.3237, allocations: 21.67 kB / 476 MB, free: 39.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004266/0.3241, allocations: 66.55 kB / 476.1 MB, free: 39.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/0.3242, allocations: 51.84 kB / 476.2 MB, free: 39.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.682e-05/0.3243, allocations: 22.12 kB / 476.2 MB, free: 39.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003776/0.3247, allocations: 347.4 kB / 476.5 MB, free: 38.89 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3247, allocations: 0 / 476.5 MB, free: 38.89 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008612/0.3255, allocations: 263.7 kB / 476.8 MB, free: 38.86 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001147/0.3257, allocations: 117 kB / 476.9 MB, free: 38.76 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002273/0.3279, allocations: 1.77 MB / 478.7 MB, free: 37.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.328, allocations: 0 / 478.7 MB, free: 37.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007689/0.3287, allocations: 0.6237 MB / 479.3 MB, free: 37.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006613/0.3294, allocations: 123 kB / 479.4 MB, free: 37.37 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002105/0.3315, allocations: 1.805 MB / 481.2 MB, free: 36.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003152/0.3318, allocations: 0.9471 MB / 482.2 MB, free: 35.58 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004227/0.3323, allocations: 153.4 kB / 482.3 MB, free: 35.56 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/0.3324, allocations: 51.59 kB / 482.4 MB, free: 35.55 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3324, allocations: 0 / 482.4 MB, free: 35.55 MB / 382.1 MB Notification: Performance of Templates: time 0.01268/0.3451, allocations: 9.074 MB / 491.4 MB, free: 34.88 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: