Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000861/0.000861, allocations: 171.9 kB / 16.07 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.163/1.163, allocations: 205.4 MB / 222.2 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007274/0.0007275, allocations: 86.36 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1583/0.1583, allocations: 38.08 MB / 356.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000482/0.000482, allocations: 12 kB / 423.3 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2208/0.2213, allocations: 56.32 MB / 479.6 MB, free: 9.25 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.005119/0.2264, allocations: 5.536 MB / 485.2 MB, free: 5.57 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00333/0.2298, allocations: 2.681 MB / 487.8 MB, free: 3.66 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004239/0.2302, allocations: 34.09 kB / 487.9 MB, free: 3.648 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003927/0.2306, allocations: 117.8 kB / 488 MB, free: 3.586 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008769/0.2315, allocations: 445 kB / 488.4 MB, free: 3.355 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008415/0.2324, allocations: 377.9 kB / 488.8 MB, free: 3.168 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009509/0.2333, allocations: 1.097 MB / 489.9 MB, free: 2.684 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009405/0.2343, allocations: 0.7264 MB / 490.6 MB, free: 2.223 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004148/0.2347, allocations: 311 kB / 490.9 MB, free: 2.098 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004152/0.2351, allocations: 369.2 kB / 491.3 MB, free: 1.945 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.351e-05/0.2352, allocations: 27.5 kB / 491.3 MB, free: 1.945 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007843/0.236, allocations: 0.5295 MB / 491.8 MB, free: 1.762 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001834/0.2362, allocations: 183 kB / 492 MB, free: 1.691 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002459/0.2365, allocations: 320.7 kB / 492.3 MB, free: 1.48 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008296/0.2373, allocations: 0.8056 MB / 493.1 MB, free: 1.293 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2373, allocations: 0 / 493.1 MB, free: 1.293 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2373, allocations: 0 / 493.1 MB, free: 1.293 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.327e-06/0.2373, allocations: 0 / 493.1 MB, free: 1.293 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001628/0.239, allocations: 0.9918 MB / 494.1 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.038e-05/0.239, allocations: 9.062 kB / 494.1 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00106/0.2401, allocations: 184.3 kB / 494.3 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007428/0.2408, allocations: 0.5413 MB / 494.9 MB, free: 168 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/0.2409, allocations: 48.11 kB / 494.9 MB, free: 144 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.224e-05/0.241, allocations: 59.45 kB / 495 MB, free: 124 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001364/0.2423, allocations: 0.7969 MB / 495.8 MB, free: 15.75 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.264e-05/0.2424, allocations: 2.922 kB / 495.8 MB, free: 15.75 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.259e-05/0.2424, allocations: 25.09 kB / 495.8 MB, free: 15.73 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.146e-05/0.2425, allocations: 36.39 kB / 495.8 MB, free: 15.73 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001474/0.244, allocations: 0.7564 MB / 496.6 MB, free: 15.5 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004014/0.248, allocations: 2.949 MB / 499.5 MB, free: 13.45 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001306/0.2493, allocations: 0.6147 MB / 0.4884 GB, free: 13.14 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006641/0.25, allocations: 381.8 kB / 0.4888 GB, free: 12.95 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.781e-05/0.2501, allocations: 5.75 kB / 0.4888 GB, free: 12.95 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007735/0.2508, allocations: 441.4 kB / 0.4892 GB, free: 12.67 MB / 330.7 MB Notification: Performance of pre-optimization done (n=56): time 2.495e-06/0.2508, allocations: 0 / 0.4892 GB, free: 12.67 MB / 330.7 MB Notification: Performance of matching and sorting (n=58): time 0.004177/0.255, allocations: 2.192 MB / 0.4914 GB, free: 11.34 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.967e-05/0.2551, allocations: 110.4 kB / 0.4915 GB, free: 11.21 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006477/0.2558, allocations: 485.3 kB / 0.4919 GB, free: 10.92 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.858e-05/0.2558, allocations: 40.98 kB / 0.492 GB, free: 10.88 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002142/0.256, allocations: 311.8 kB / 0.4923 GB, free: 10.6 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001559/0.2562, allocations: 201.8 kB / 0.4924 GB, free: 10.43 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.67e-05/0.2563, allocations: 10.25 kB / 0.4925 GB, free: 10.42 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.2564, allocations: 373.8 kB / 0.4928 GB, free: 10.06 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005998/0.257, allocations: 303.5 kB / 0.4931 GB, free: 9.914 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006522/0.2577, allocations: 418.4 kB / 0.4935 GB, free: 9.633 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001289/0.259, allocations: 0.7429 MB / 0.4942 GB, free: 9.176 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.259, allocations: 9.391 kB / 0.4942 GB, free: 9.168 MB / 330.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002139/0.2611, allocations: 1.058 MB / 0.4953 GB, free: 8.613 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001195/0.2613, allocations: 205.9 kB / 0.4955 GB, free: 8.371 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.2613, allocations: 2.312 kB / 0.4955 GB, free: 8.371 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006601/0.2619, allocations: 213.9 kB / 0.4957 GB, free: 8.266 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005008/0.2625, allocations: 119.8 kB / 0.4958 GB, free: 8.234 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003991/0.2665, allocations: 3.846 MB / 0.4995 GB, free: 4.801 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005387/0.267, allocations: 65.84 kB / 0.4996 GB, free: 4.773 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.488e-05/0.2671, allocations: 28.39 kB / 0.4996 GB, free: 4.762 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.645e-06/0.2671, allocations: 6.938 kB / 0.4996 GB, free: 4.762 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001661/0.2688, allocations: 0.8875 MB / 0.5005 GB, free: 4.289 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.2688, allocations: 7.156 kB / 0.5005 GB, free: 4.285 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004641/0.2692, allocations: 173 kB / 0.5007 GB, free: 4.191 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004655/0.2697, allocations: 120 kB / 0.5008 GB, free: 4.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003144/0.2729, allocations: 3.622 MB / 0.5043 GB, free: 468 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004963/0.2734, allocations: 59.94 kB / 0.5044 GB, free: 408 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.254e-05/0.2735, allocations: 23.98 kB / 0.5044 GB, free: 384 kB / 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: 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.0003941/0.2739, allocations: 301.1 kB / 0.5047 GB, free: 72 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.77e-05/0.2739, allocations: 59.28 kB / 0.5048 GB, free: 12 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001604/0.2755, allocations: 0.8539 MB / 0.5056 GB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.2756, allocations: 8 kB / 0.5056 GB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.2756, allocations: 0 / 0.5056 GB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.2756, allocations: 3.984 kB / 0.5056 GB, free: 15.13 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002505/0.2781, allocations: 1.706 MB / 0.5073 GB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.2781, allocations: 8.188 kB / 0.5073 GB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005781/0.2787, allocations: 135.8 kB / 0.5074 GB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002083/0.2789, allocations: 57.67 kB / 0.5075 GB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.421e-05/0.279, allocations: 23.98 kB / 0.5075 GB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001717/0.2807, allocations: 2.693 MB / 0.5101 GB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.2807, allocations: 3.938 kB / 0.5101 GB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002115/0.2828, allocations: 1.345 MB / 0.5114 GB, free: 8.758 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002349/0.2831, allocations: 188.3 kB / 0.5116 GB, free: 8.555 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.371e-05/0.2832, allocations: 19.98 kB / 0.5116 GB, free: 8.535 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004443/0.2836, allocations: 59.94 kB / 0.5117 GB, free: 8.477 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.2837, allocations: 64.36 kB / 0.5117 GB, free: 8.414 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.016e-05/0.2838, allocations: 16 kB / 0.5118 GB, free: 8.398 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004583/0.2842, allocations: 342.8 kB / 0.5121 GB, free: 8.066 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2843, allocations: 7.938 kB / 0.5121 GB, free: 8.059 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009385/0.2852, allocations: 256 kB / 0.5123 GB, free: 7.809 MB / 346.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 (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.0001393/0.2854, allocations: 119.2 kB / 0.5125 GB, free: 7.684 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002652/0.288, allocations: 1.774 MB / 0.5142 GB, free: 5.832 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.288, allocations: 0 / 0.5142 GB, free: 5.832 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008855/0.2889, allocations: 0.6142 MB / 0.5148 GB, free: 5.195 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007631/0.2897, allocations: 126.8 kB / 0.5149 GB, free: 5.074 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002416/0.2921, allocations: 1.856 MB / 0.5167 GB, free: 3.164 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004723/0.2926, allocations: 0.9509 MB / 0.5176 GB, free: 2.184 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001863/0.2928, allocations: 55.42 kB / 0.5177 GB, free: 2.129 MB / 346.7 MB Notification: Performance of SimCode: time 2.81e-07/0.2928, allocations: 0 / 0.5177 GB, free: 2.129 MB / 346.7 MB Notification: Performance of Templates: time 0.01453/0.3073, allocations: 13.98 MB / 0.5314 GB, free: 4.129 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2 --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)