Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.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.LoadDispatcherTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest") translateModel(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008034/0.0008033, allocations: 88.94 kB / 16.31 MB, free: 5.684 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.001008/0.001008, allocations: 176.2 kB / 17.21 MB, free: 5.602 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.318/1.318, allocations: 205.4 MB / 223.4 MB, free: 13.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1769/0.1769, allocations: 38.03 MB / 309.7 MB, free: 6.047 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.0004877/0.0004879, allocations: 12 kB / 376.5 MB, free: 3.113 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2169/0.2174, allocations: 56.33 MB / 432.8 MB, free: 18.84 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest): time 0.00333/0.2208, allocations: 3.508 MB / 436.3 MB, free: 15.31 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001956/0.2228, allocations: 1.354 MB / 437.7 MB, free: 13.95 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004621/0.2232, allocations: 19.88 kB / 437.7 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004225/0.2237, allocations: 83.33 kB / 437.8 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005004/0.2242, allocations: 143 kB / 437.9 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006863/0.2249, allocations: 256.5 kB / 438.2 MB, free: 13.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008461/0.2258, allocations: 0.6399 MB / 438.8 MB, free: 12.81 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003396/0.2261, allocations: 162.8 kB / 439 MB, free: 12.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005073/0.2266, allocations: 203 kB / 439.2 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003175/0.2269, allocations: 222.8 kB / 439.4 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.6e-05/0.2271, allocations: 20 kB / 439.4 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002197/0.2273, allocations: 63.98 kB / 439.5 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001275/0.2274, allocations: 107.5 kB / 439.6 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001532/0.2276, allocations: 121.4 kB / 439.7 MB, free: 11.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005966/0.2282, allocations: 0.5962 MB / 440.3 MB, free: 11.33 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.2282, allocations: 0 / 440.3 MB, free: 11.33 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2282, allocations: 0 / 440.3 MB, free: 11.33 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.184e-05/0.2282, allocations: 0 / 440.3 MB, free: 11.33 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: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.001677/0.2299, allocations: 0.9317 MB / 441.2 MB, free: 10.33 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.23, allocations: 8.031 kB / 441.2 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001107/0.2301, allocations: 71.14 kB / 441.3 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005896/0.2307, allocations: 0.5075 MB / 441.8 MB, free: 9.703 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.12e-05/0.2307, allocations: 25 kB / 441.8 MB, free: 9.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.275e-05/0.2308, allocations: 36 kB / 441.9 MB, free: 9.645 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009669/0.2318, allocations: 0.581 MB / 442.5 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.2318, allocations: 0 / 442.5 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.24e-05/0.2318, allocations: 16 kB / 442.5 MB, free: 8.996 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.2319, allocations: 15.89 kB / 442.5 MB, free: 8.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/0.233, allocations: 0.5707 MB / 443.1 MB, free: 8.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001717/0.2347, allocations: 2.079 MB / 445.1 MB, free: 6.238 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001322/0.236, allocations: 0.6547 MB / 445.8 MB, free: 5.547 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005058/0.2365, allocations: 267.3 kB / 446.1 MB, free: 5.273 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.793e-05/0.2366, allocations: 7.984 kB / 446.1 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007139/0.2373, allocations: 398.2 kB / 446.5 MB, free: 4.852 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 2.535e-06/0.2373, allocations: 3.984 kB / 446.5 MB, free: 4.848 MB / 318.1 MB Notification: Performance of matching and sorting (n=37): time 0.001742/0.2391, allocations: 0.8179 MB / 447.3 MB, free: 4.023 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.662e-05/0.2392, allocations: 195.9 kB / 447.5 MB, free: 3.789 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004631/0.2396, allocations: 0.5028 MB / 448 MB, free: 3.273 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.936e-05/0.2397, allocations: 45.75 kB / 448 MB, free: 3.223 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001729/0.2399, allocations: 276.1 kB / 448.3 MB, free: 2.949 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.716e-05/0.2399, allocations: 122.3 kB / 448.4 MB, free: 2.828 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.563e-05/0.24, allocations: 12 kB / 448.4 MB, free: 2.816 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.377e-05/0.2401, allocations: 366.7 kB / 448.8 MB, free: 2.449 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005349/0.2406, allocations: 248.7 kB / 449 MB, free: 2.207 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005433/0.2411, allocations: 370.1 kB / 449.4 MB, free: 1.797 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005508/0.2417, allocations: 328.1 kB / 449.7 MB, free: 1.465 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.2417, allocations: 0 / 449.7 MB, free: 1.465 MB / 318.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001324/0.2431, allocations: 0.7663 MB / 450.5 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.37e-05/0.2431, allocations: 239.9 kB / 450.7 MB, free: 400 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.156e-06/0.2432, allocations: 4 kB / 450.7 MB, free: 396 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.2432, allocations: 4 kB / 450.7 MB, free: 392 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004154/0.2436, allocations: 119.8 kB / 450.8 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.2436, allocations: 11.98 kB / 450.8 MB, free: 260 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003974/0.244, allocations: 83.55 kB / 450.9 MB, free: 176 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.852e-05/0.2441, allocations: 27.94 kB / 450.9 MB, free: 148 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.104e-06/0.2441, allocations: 8 kB / 451 MB, free: 140 kB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001372/0.2455, allocations: 0.6745 MB / 451.6 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.2455, allocations: 4 kB / 451.6 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.594e-06/0.2455, allocations: 4 kB / 451.6 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004161/0.2459, allocations: 120.1 kB / 451.8 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.2459, allocations: 4 kB / 451.8 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000391/0.2463, allocations: 83.62 kB / 451.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.634e-05/0.2464, allocations: 20 kB / 451.9 MB, free: 15.21 MB / 334.1 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.0003117/0.2467, allocations: 295.1 kB / 452.1 MB, free: 14.92 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.194e-05/0.2468, allocations: 63.2 kB / 452.2 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001437/0.247, allocations: 64.59 kB / 452.3 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.247, allocations: 4 kB / 452.3 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.247, allocations: 8 kB / 452.3 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.247, allocations: 3.984 kB / 452.3 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005674/0.2476, allocations: 0.5322 MB / 452.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.2476, allocations: 4 kB / 452.8 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004036/0.248, allocations: 99.86 kB / 452.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.282e-06/0.248, allocations: 3.953 kB / 452.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.652e-05/0.248, allocations: 15.98 kB / 452.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.2481, allocations: 0 / 452.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/0.2481, allocations: 8 kB / 452.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001952/0.25, allocations: 0.9399 MB / 453.9 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002116/0.2503, allocations: 192.2 kB / 454.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.39e-05/0.2503, allocations: 12 kB / 454.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003538/0.2507, allocations: 67.94 kB / 454.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/0.2508, allocations: 51.92 kB / 454.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.469e-05/0.2509, allocations: 8 kB / 454.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004105/0.2513, allocations: 366.8 kB / 454.6 MB, free: 12.4 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.52e-07/0.2513, allocations: 0 / 454.6 MB, free: 12.4 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006503/0.252, allocations: 199.5 kB / 454.8 MB, free: 12.2 MB / 334.1 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.0009547/0.2529, allocations: 463.5 kB / 455.2 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002102/0.255, allocations: 1.085 MB / 456.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.2551, allocations: 0 / 456.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006971/0.2558, allocations: 299.8 kB / 456.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006298/0.2564, allocations: 114.6 kB / 456.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001745/0.2582, allocations: 1.07 MB / 457.8 MB, free: 9.16 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.2586, allocations: 0.8594 MB / 458.6 MB, free: 8.273 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004029/0.259, allocations: 124.2 kB / 458.8 MB, free: 8.148 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000148/0.2592, allocations: 51.42 kB / 458.8 MB, free: 8.098 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2592, allocations: 0 / 458.8 MB, free: 8.098 MB / 334.1 MB Notification: Performance of Templates: time 0.01219/0.2714, allocations: 6.922 MB / 465.7 MB, free: 1.16 MB / 334.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe 2>&1) Environment - environmentSimulation: