Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002479/0.002479, allocations: 195.4 kB / 7.809 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.674/1.674, allocations: 205.2 MB / 213.4 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001257/0.001257, allocations: 98.62 kB / 261.4 MB, free: 13.64 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2693/0.2693, allocations: 37.98 MB / 347.3 MB, free: 7.562 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.564e-06/7.715e-06, allocations: 0 / 409.3 MB, free: 47.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09508/0.09511, allocations: 56.32 MB / 465.6 MB, free: 6.859 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3252/0.4204, allocations: 93.88 MB / 0.5464 GB, free: 0.9961 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.009784/0.4302, allocations: 2.208 MB / 0.5486 GB, free: 14.8 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.05145/0.4817, allocations: 11.19 MB / 0.5595 GB, free: 3.59 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.84e-05/0.4819, allocations: 12 kB / 0.5595 GB, free: 3.578 MB / 394.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.0028/0.4847, allocations: 0.9123 MB / 0.5604 GB, free: 2.602 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.4847, allocations: 19.97 kB / 0.5604 GB, free: 2.582 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002691/0.485, allocations: 67.16 kB / 0.5605 GB, free: 2.516 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001451/0.4865, allocations: 0.5073 MB / 0.561 GB, free: 1.965 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.236e-05/0.4866, allocations: 12 kB / 0.561 GB, free: 1.953 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000111/0.4867, allocations: 27.91 kB / 0.561 GB, free: 1.926 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001342/0.488, allocations: 409.3 kB / 0.5614 GB, free: 1.527 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001186/0.4892, allocations: 456.2 kB / 0.5618 GB, free: 1.031 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.4893, allocations: 4 kB / 0.5618 GB, free: 1.027 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.977e-05/0.4894, allocations: 3.984 kB / 0.5618 GB, free: 1.023 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.013e-05/0.4894, allocations: 16 kB / 0.5619 GB, free: 1.008 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004163/0.4936, allocations: 2.064 MB / 0.5639 GB, free: 14.86 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001416/0.495, allocations: 443 kB / 0.5643 GB, free: 14.39 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000507/0.4956, allocations: 175.6 kB / 0.5645 GB, free: 14.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.365e-05/0.4957, allocations: 12 kB / 0.5645 GB, free: 14.2 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007135/0.4964, allocations: 290.1 kB / 0.5647 GB, free: 13.89 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 5.531e-06/0.4964, allocations: 3.984 kB / 0.5648 GB, free: 13.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=37): time 0.00145/0.4979, allocations: 410.3 kB / 0.5651 GB, free: 13.48 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001239/0.498, allocations: 191.9 kB / 0.5653 GB, free: 13.25 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009299/0.499, allocations: 437.2 kB / 0.5657 GB, free: 12.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.712e-05/0.4991, allocations: 29.7 kB / 0.5658 GB, free: 12.78 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000178/0.4993, allocations: 238.7 kB / 0.566 GB, free: 12.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001797/0.4994, allocations: 118.4 kB / 0.5661 GB, free: 12.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.286e-05/0.4995, allocations: 0 / 0.5661 GB, free: 12.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.4997, allocations: 334.8 kB / 0.5664 GB, free: 12.09 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005182/0.5002, allocations: 160.8 kB / 0.5666 GB, free: 11.94 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006197/0.5008, allocations: 277.4 kB / 0.5669 GB, free: 11.62 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005626/0.5014, allocations: 183.3 kB / 0.567 GB, free: 11.44 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.5014, allocations: 0 / 0.567 GB, free: 11.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001452/0.5029, allocations: 467.8 kB / 0.5675 GB, free: 10.98 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005744/0.5035, allocations: 1.222 MB / 0.5687 GB, free: 9.664 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.5035, allocations: 4 kB / 0.5687 GB, free: 9.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.829e-05/0.5035, allocations: 4 kB / 0.5687 GB, free: 9.656 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001106/0.5047, allocations: 131.8 kB / 0.5688 GB, free: 9.527 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.721e-05/0.5047, allocations: 11.94 kB / 0.5688 GB, free: 9.516 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00085/0.5056, allocations: 87.62 kB / 0.5689 GB, free: 9.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.115e-05/0.5056, allocations: 19.98 kB / 0.5689 GB, free: 9.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.5057, allocations: 4 kB / 0.5689 GB, free: 9.406 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001329/0.507, allocations: 416.9 kB / 0.5693 GB, free: 9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.5071, allocations: 384 / 0.5693 GB, free: 9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.5071, allocations: 12 kB / 0.5693 GB, free: 8.988 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009775/0.5081, allocations: 119.9 kB / 0.5694 GB, free: 8.871 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.577e-05/0.5081, allocations: 11.92 kB / 0.5695 GB, free: 8.859 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007824/0.5089, allocations: 75.7 kB / 0.5695 GB, free: 8.785 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.075e-05/0.509, allocations: 16 kB / 0.5695 GB, free: 8.77 MB / 410.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 () * 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.0002154/0.5092, allocations: 55.47 kB / 0.5696 GB, free: 8.711 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002/0.5094, allocations: 55.34 kB / 0.5696 GB, free: 8.656 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00126/0.5107, allocations: 382.6 kB / 0.57 GB, free: 8.266 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.084e-05/0.5107, allocations: 7.938 kB / 0.57 GB, free: 8.258 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.542e-05/0.5107, allocations: 11.91 kB / 0.57 GB, free: 8.246 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.5108, allocations: 7.984 kB / 0.57 GB, free: 8.238 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001054/0.5118, allocations: 0.521 MB / 0.5705 GB, free: 7.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.5119, allocations: 0 / 0.5705 GB, free: 7.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001033/0.5129, allocations: 115.9 kB / 0.5707 GB, free: 7.566 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.271e-05/0.5129, allocations: 4 kB / 0.5707 GB, free: 7.562 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.013e-05/0.513, allocations: 7.984 kB / 0.5707 GB, free: 7.555 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.513, allocations: 4 kB / 0.5707 GB, free: 7.551 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.513, allocations: 4 kB / 0.5707 GB, free: 7.547 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002145/0.5152, allocations: 0.782 MB / 0.5714 GB, free: 6.719 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004156/0.5156, allocations: 196.2 kB / 0.5716 GB, free: 6.508 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001561/0.5158, allocations: 8 kB / 0.5716 GB, free: 6.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008732/0.5167, allocations: 68 kB / 0.5717 GB, free: 6.434 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002042/0.5169, allocations: 51.83 kB / 0.5717 GB, free: 6.383 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.132e-05/0.517, allocations: 16 kB / 0.5718 GB, free: 6.367 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.000715/0.5177, allocations: 338.9 kB / 0.5721 GB, free: 6.039 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001051/0.5188, allocations: 191.5 kB / 0.5723 GB, free: 5.852 MB / 410.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.nextTimeEvent,loadDispatcher.data.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 39 * 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.001102/0.5199, allocations: 373.1 kB / 0.5726 GB, free: 5.516 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002103/0.522, allocations: 0.7193 MB / 0.5733 GB, free: 4.773 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.301e-06/0.5221, allocations: 0 / 0.5733 GB, free: 4.773 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006978/0.5228, allocations: 223.8 kB / 0.5735 GB, free: 4.555 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.5239, allocations: 110.3 kB / 0.5736 GB, free: 4.449 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002939/0.5268, allocations: 0.7574 MB / 0.5744 GB, free: 3.648 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001061/0.528, allocations: 0.9377 MB / 0.5753 GB, free: 2.684 MB / 410.7 MB Notification: Performance of SimCode: time 1.503e-06/0.528, allocations: 0 / 0.5753 GB, free: 2.684 MB / 410.7 MB Notification: Performance of Templates: time 0.01935/0.5473, allocations: 7.869 MB / 0.583 GB, free: 10.8 MB / 426.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)