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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001737/0.001737, allocations: 117.7 kB / 17.7 MB, free: 5.305 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.002053/0.002053, allocations: 191 kB / 18.63 MB, free: 4.375 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.481/1.481, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1759/0.1759, allocations: 37.98 MB / 309.8 MB, free: 5.984 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.002194/0.002194, allocations: 71.89 kB / 376.8 MB, free: 2.926 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.271, allocations: 55.25 MB / 432 MB, free: 19.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.005714/0.2768, allocations: 5.15 MB / 437.2 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002868/0.2797, allocations: 2.183 MB / 439.4 MB, free: 12.15 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003767/0.2801, allocations: 23.88 kB / 439.4 MB, free: 12.12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008641/0.281, allocations: 265.5 kB / 439.6 MB, free: 11.87 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006883/0.2817, allocations: 338.1 kB / 440 MB, free: 11.54 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008718/0.2826, allocations: 403.2 kB / 440.4 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007904/0.2834, allocations: 0.9048 MB / 441.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005928/0.284, allocations: 0.5159 MB / 441.8 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000325/0.2843, allocations: 350.6 kB / 442.1 MB, free: 9.371 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003362/0.2847, allocations: 346.4 kB / 442.5 MB, free: 9.031 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.054e-05/0.2847, allocations: 72 kB / 442.5 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004719/0.2852, allocations: 339.3 kB / 442.9 MB, free: 8.629 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001507/0.2854, allocations: 191.4 kB / 443.1 MB, free: 8.441 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000237/0.2856, allocations: 330.3 kB / 443.4 MB, free: 8.117 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000732/0.2864, allocations: 0.9383 MB / 444.3 MB, free: 7.176 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.2864, allocations: 4 kB / 444.3 MB, free: 7.172 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2864, allocations: 0 / 444.3 MB, free: 7.172 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.2864, allocations: 0 / 444.3 MB, free: 7.172 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001703/0.2881, allocations: 1.036 MB / 445.4 MB, free: 6.082 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.2882, allocations: 19.88 kB / 445.4 MB, free: 6.062 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007846/0.2889, allocations: 136 kB / 445.5 MB, free: 5.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008455/0.2898, allocations: 0.5366 MB / 446 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.182e-05/0.2898, allocations: 49.34 kB / 446.1 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.867e-05/0.2899, allocations: 48.38 kB / 446.1 MB, free: 5.258 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.291, allocations: 0.6748 MB / 446.8 MB, free: 4.547 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.385e-05/0.291, allocations: 3.938 kB / 446.8 MB, free: 4.543 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.829e-05/0.2911, allocations: 27.98 kB / 446.8 MB, free: 4.516 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.458e-05/0.2911, allocations: 21 kB / 446.9 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001053/0.2922, allocations: 0.6049 MB / 447.5 MB, free: 3.891 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002916/0.2951, allocations: 2.692 MB / 450.2 MB, free: 1.059 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.2962, allocations: 0.6045 MB / 450.8 MB, free: 428 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003857/0.2966, allocations: 206.3 kB / 451 MB, free: 216 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.314e-05/0.2967, allocations: 8.328 kB / 451 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005638/0.2972, allocations: 305.8 kB / 451.3 MB, free: 15.88 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.344e-06/0.2973, allocations: 0 / 451.3 MB, free: 15.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.001837/0.2991, allocations: 0.7447 MB / 452 MB, free: 15.11 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.2992, allocations: 144.4 kB / 452.2 MB, free: 14.94 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000832/0.3001, allocations: 0.4941 MB / 452.7 MB, free: 14.43 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.417e-05/0.3001, allocations: 33.7 kB / 452.7 MB, free: 14.39 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002517/0.3004, allocations: 316 kB / 453 MB, free: 14.08 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/0.3005, allocations: 134.1 kB / 453.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.3007, allocations: 94.19 kB / 453.2 MB, free: 13.85 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001955/0.3009, allocations: 366.8 kB / 453.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004777/0.3014, allocations: 191 kB / 453.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005318/0.3019, allocations: 311.2 kB / 454.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00101/0.3029, allocations: 0.5217 MB / 454.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3029, allocations: 3.938 kB / 454.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001716/0.3047, allocations: 0.7725 MB / 455.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.929e-05/0.3047, allocations: 37.95 kB / 455.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.3048, allocations: 8 kB / 455.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004975/0.3053, allocations: 136.8 kB / 455.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004993/0.3058, allocations: 83.89 kB / 455.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003374/0.3092, allocations: 2.656 MB / 458.3 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005026/0.3097, allocations: 75.39 kB / 458.4 MB, free: 8.438 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.518e-05/0.3097, allocations: 23.98 kB / 458.4 MB, free: 8.414 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006041/0.3104, allocations: 337.1 kB / 458.7 MB, free: 8.082 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005166/0.3109, allocations: 299.2 kB / 459 MB, free: 7.742 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008913/0.3118, allocations: 0.5025 MB / 459.5 MB, free: 7.188 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.3e-06/0.3118, allocations: 7.938 kB / 459.5 MB, free: 7.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.001393/0.3132, allocations: 0.6786 MB / 460.2 MB, free: 6.484 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.492e-05/0.3133, allocations: 37.69 kB / 460.2 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.3133, allocations: 4 kB / 460.2 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003525/0.3136, allocations: 124.4 kB / 460.4 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003764/0.314, allocations: 100 kB / 460.5 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002687/0.3167, allocations: 2.447 MB / 462.9 MB, free: 3.633 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004823/0.3172, allocations: 59.64 kB / 463 MB, free: 3.574 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.895e-05/0.3173, allocations: 20.06 kB / 463 MB, free: 3.555 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.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 (45): * Single equations (assignments): 43 * 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,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0002317/0.3175, allocations: 224 kB / 463.2 MB, free: 3.328 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.192e-05/0.3176, allocations: 51.34 kB / 463.2 MB, free: 3.277 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00123/0.3188, allocations: 0.5199 MB / 463.8 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.3188, allocations: 4 kB / 463.8 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.125e-06/0.3189, allocations: 0 / 463.8 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.3189, allocations: 0 / 463.8 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001999/0.3209, allocations: 1.171 MB / 464.9 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.3209, allocations: 3.938 kB / 464.9 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004467/0.3213, allocations: 87.88 kB / 465 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001099/0.3215, allocations: 28.83 kB / 465.1 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.076e-05/0.3215, allocations: 12 kB / 465.1 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001226/0.3227, allocations: 1.454 MB / 466.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3228, allocations: 0 / 466.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001673/0.3244, allocations: 0.8464 MB / 467.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002439/0.3247, allocations: 164.4 kB / 467.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.702e-05/0.3248, allocations: 15.92 kB / 467.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003873/0.3252, allocations: 39.95 kB / 467.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.3253, allocations: 31.95 kB / 467.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.652e-05/0.3253, allocations: 20 kB / 467.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005529/0.3259, allocations: 370.8 kB / 468 MB, free: 14.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3259, allocations: 0 / 468 MB, free: 14.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009298/0.3268, allocations: 247.3 kB / 468.2 MB, free: 14.02 MB / 350.1 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 (40): * Single equations (assignments): 36 * 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.0001446/0.327, allocations: 107.2 kB / 468.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001969/0.329, allocations: 1.145 MB / 469.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.329, allocations: 0 / 469.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006191/0.3296, allocations: 342.4 kB / 469.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006422/0.3303, allocations: 125.6 kB / 469.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002191/0.3325, allocations: 1.244 MB / 471.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005101/0.333, allocations: 0.8981 MB / 472.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003091/0.3333, allocations: 100.3 kB / 472.2 MB, free: 9.945 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001246/0.3334, allocations: 39.44 kB / 472.2 MB, free: 9.906 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3335, allocations: 0 / 472.2 MB, free: 9.906 MB / 350.1 MB Notification: Performance of Templates: time 0.01518/0.3486, allocations: 8.202 MB / 480.4 MB, free: 1.727 MB / 350.1 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 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1)