Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.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.LoadDispatcherTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest") translateModel(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0015/0.0015, allocations: 172.9 kB / 16.07 MB, free: 5.723 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.209/1.209, allocations: 205.4 MB / 222.2 MB, free: 9.016 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.0007376/0.0007377, allocations: 94.3 kB / 270.6 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.167/0.167, allocations: 38.06 MB / 356.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003056/0.0003057, allocations: 12 kB / 423.3 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.226/0.2263, allocations: 56.32 MB / 479.6 MB, free: 9.23 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest): time 0.003703/0.23, allocations: 3.525 MB / 483.2 MB, free: 6.977 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001906/0.232, allocations: 1.36 MB / 484.5 MB, free: 6.012 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002671/0.2322, allocations: 19.97 kB / 484.5 MB, free: 6.004 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003768/0.2326, allocations: 80.7 kB / 484.6 MB, free: 5.961 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003565/0.233, allocations: 141.4 kB / 484.7 MB, free: 5.871 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000601/0.2336, allocations: 245.8 kB / 485 MB, free: 5.75 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006237/0.2342, allocations: 0.6565 MB / 485.6 MB, free: 5.414 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003507/0.2346, allocations: 208 kB / 485.8 MB, free: 5.312 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003793/0.235, allocations: 212.1 kB / 486.1 MB, free: 5.223 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002445/0.2353, allocations: 220.6 kB / 486.3 MB, free: 5.125 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.005e-05/0.2353, allocations: 19.28 kB / 486.3 MB, free: 5.125 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001612/0.2355, allocations: 64.7 kB / 486.4 MB, free: 5.113 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001177/0.2356, allocations: 105.5 kB / 486.5 MB, free: 5.062 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001899/0.2358, allocations: 260.8 kB / 486.7 MB, free: 4.875 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007046/0.2365, allocations: 0.5928 MB / 487.3 MB, free: 4.727 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.2365, allocations: 0.5156 kB / 487.3 MB, free: 4.727 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2365, allocations: 0 / 487.3 MB, free: 4.727 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.2366, allocations: 1.375 kB / 487.3 MB, free: 4.727 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: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.001469/0.238, allocations: 0.9226 MB / 488.2 MB, free: 4.039 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.2381, allocations: 9.312 kB / 488.2 MB, free: 4.039 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001175/0.2382, allocations: 68.44 kB / 488.3 MB, free: 4.004 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006935/0.2389, allocations: 0.5147 MB / 488.8 MB, free: 3.621 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.312e-05/0.2389, allocations: 33.27 kB / 488.9 MB, free: 3.605 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.404e-05/0.239, allocations: 39.88 kB / 488.9 MB, free: 3.59 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001124/0.2402, allocations: 0.5791 MB / 489.5 MB, free: 3.281 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.2402, allocations: 0 / 489.5 MB, free: 3.281 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.741e-05/0.2402, allocations: 18.91 kB / 489.5 MB, free: 3.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.2402, allocations: 8.25 kB / 489.5 MB, free: 3.27 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001344/0.2416, allocations: 0.5741 MB / 490.1 MB, free: 3.121 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00211/0.2437, allocations: 2.092 MB / 492.2 MB, free: 1.52 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001562/0.2453, allocations: 0.6508 MB / 492.8 MB, free: 1.254 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006044/0.2459, allocations: 264.4 kB / 493.1 MB, free: 1.152 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.761e-05/0.246, allocations: 11.56 kB / 493.1 MB, free: 1.148 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008453/0.2468, allocations: 398.1 kB / 493.5 MB, free: 0.9727 MB / 314.7 MB Notification: Performance of pre-optimization done (n=37): time 2.024e-06/0.2468, allocations: 0 / 493.5 MB, free: 0.9727 MB / 314.7 MB Notification: Performance of matching and sorting (n=37): time 0.002078/0.2489, allocations: 0.8265 MB / 494.3 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.724e-05/0.249, allocations: 192 kB / 494.5 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006309/0.2496, allocations: 0.5091 MB / 495 MB, free: 248 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.73e-05/0.2497, allocations: 40.11 kB / 495 MB, free: 208 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001954/0.2499, allocations: 271.9 kB / 495.3 MB, free: 15.98 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001196/0.25, allocations: 119.8 kB / 495.4 MB, free: 15.89 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.204e-05/0.2501, allocations: 13.94 kB / 495.4 MB, free: 15.88 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.2502, allocations: 367.1 kB / 495.8 MB, free: 15.55 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006815/0.2509, allocations: 243.8 kB / 496 MB, free: 15.48 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007164/0.2516, allocations: 371.9 kB / 496.4 MB, free: 15.26 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00131/0.253, allocations: 0.6329 MB / 497 MB, free: 14.91 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.253, allocations: 4.969 kB / 497 MB, free: 14.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001673/0.2547, allocations: 0.7657 MB / 497.8 MB, free: 14.6 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001374/0.2548, allocations: 234.8 kB / 498 MB, free: 14.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.2548, allocations: 3.969 kB / 498 MB, free: 14.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.2549, allocations: 5.094 kB / 498 MB, free: 14.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004741/0.2553, allocations: 121.2 kB / 498.1 MB, free: 14.31 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.351e-05/0.2554, allocations: 10.42 kB / 498.2 MB, free: 14.31 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004632/0.2558, allocations: 94.14 kB / 498.3 MB, free: 14.28 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.317e-05/0.2559, allocations: 20.38 kB / 498.3 MB, free: 14.27 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.583e-06/0.2559, allocations: 4.125 kB / 498.3 MB, free: 14.27 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001458/0.2574, allocations: 0.679 MB / 499 MB, free: 14.01 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.2574, allocations: 4.031 kB / 499 MB, free: 14.01 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.416e-06/0.2574, allocations: 9.469 kB / 499 MB, free: 14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004419/0.2578, allocations: 119.5 kB / 499.1 MB, free: 13.99 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.807e-06/0.2579, allocations: 6.141 kB / 499.1 MB, free: 13.99 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004175/0.2583, allocations: 83.91 kB / 499.2 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.101e-05/0.2583, allocations: 19.19 kB / 499.2 MB, free: 13.96 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition2,$PRE.loadDispatcher.data.nextTimeEvent,$whenCondition3,loadDispatcher.data.nextTimeEvent,$PRE.loadDispatcher.data.nextTimeEventScaled,loadDispatcher.data.nextTimeEventScaled,$PRE.loadDispatcher.hydroDaily.T_start,loadDispatcher.hydroDaily.T_start,$PRE.loadDispatcher.hydroDaily.count,loadDispatcher.hydroDaily.count,$whenCondition1,$PRE.frequency.T_start,frequency.T_start,$PRE.frequency.count,frequency.count,system.initime,loadDispatcher.secondaryControl.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003647/0.2587, allocations: 295.8 kB / 499.5 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.352e-05/0.2588, allocations: 59.23 kB / 499.5 MB, free: 13.67 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001466/0.259, allocations: 70.03 kB / 499.6 MB, free: 13.63 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-06/0.259, allocations: 4.031 kB / 499.6 MB, free: 13.63 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/0.259, allocations: 9.953 kB / 499.6 MB, free: 13.62 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.717e-06/0.259, allocations: 2.688 kB / 499.6 MB, free: 13.62 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007302/0.2597, allocations: 0.5376 MB / 0.4884 GB, free: 13.29 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.2598, allocations: 2.562 kB / 0.4884 GB, free: 13.29 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000406/0.2602, allocations: 93.42 kB / 0.4885 GB, free: 13.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.2602, allocations: 7.219 kB / 0.4885 GB, free: 13.27 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.901e-05/0.2602, allocations: 16.92 kB / 0.4886 GB, free: 13.26 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.2602, allocations: 2.281 kB / 0.4886 GB, free: 13.26 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.2602, allocations: 1.219 kB / 0.4886 GB, free: 13.26 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002076/0.2623, allocations: 0.9492 MB / 0.4895 GB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000251/0.2626, allocations: 187.5 kB / 0.4897 GB, free: 12.59 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.499e-05/0.2627, allocations: 18.12 kB / 0.4897 GB, free: 12.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003696/0.2631, allocations: 61.66 kB / 0.4897 GB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001255/0.2632, allocations: 47.55 kB / 0.4898 GB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-05/0.2632, allocations: 18.48 kB / 0.4898 GB, free: 12.52 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000427/0.2637, allocations: 357.8 kB / 0.4901 GB, free: 12.3 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2637, allocations: 1 kB / 0.4901 GB, free: 12.3 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006577/0.2643, allocations: 191.9 kB / 0.4903 GB, free: 12.26 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (loadDispatcher.secondaryControl.I.y) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,loadDispatcher.data.nextTimeEvent,loadDispatcher.data.nextTimeEventScaled,loadDispatcher.hydroDaily.T_start,loadDispatcher.hydroDaily.count,$whenCondition1,frequency.T_start,frequency.count,system.initime) * Number of discrete states: 4 (frequency.count,loadDispatcher.hydroDaily.count,loadDispatcher.data.nextTimeEventScaled,loadDispatcher.data.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009211/0.2653, allocations: 477 kB / 0.4908 GB, free: 11.91 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002171/0.2675, allocations: 1.083 MB / 0.4918 GB, free: 11.28 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2675, allocations: 1.562 kB / 0.4918 GB, free: 11.28 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006727/0.2681, allocations: 288.2 kB / 0.4921 GB, free: 11.16 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006769/0.2688, allocations: 120.8 kB / 0.4922 GB, free: 11.1 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001792/0.2706, allocations: 1.111 MB / 0.4933 GB, free: 10.32 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004098/0.2711, allocations: 0.8566 MB / 0.4942 GB, free: 9.547 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001977/0.2713, allocations: 63.69 kB / 0.4942 GB, free: 9.52 MB / 330.7 MB Notification: Performance of SimCode: time 5.41e-07/0.2713, allocations: 0 / 0.4942 GB, free: 9.52 MB / 330.7 MB Notification: Performance of Templates: time 0.0109/0.2822, allocations: 7.909 MB / 0.5019 GB, free: 3.32 MB / 330.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe 2>&1)