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: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_LoadDispatcherTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_LoadDispatcherTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008092/0.0008091, allocations: 88.72 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.0008152/0.0008152, allocations: 179.7 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.541/1.541, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.176/0.176, allocations: 38.05 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.0005001/0.0005002, allocations: 12 kB / 376.6 MB, free: 3.004 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.2605, allocations: 56.32 MB / 432.9 MB, free: 18.8 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest): time 0.003497/0.264, allocations: 3.504 MB / 436.4 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002001/0.2661, allocations: 1.356 MB / 437.8 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002978/0.2664, allocations: 19.88 kB / 437.8 MB, free: 13.89 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003749/0.2668, allocations: 83.33 kB / 437.9 MB, free: 13.81 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003275/0.2671, allocations: 143 kB / 438 MB, free: 13.67 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005271/0.2677, allocations: 259.2 kB / 438.3 MB, free: 13.42 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004818/0.2682, allocations: 0.6399 MB / 438.9 MB, free: 12.78 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002385/0.2684, allocations: 156.8 kB / 439.1 MB, free: 12.62 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003367/0.2687, allocations: 211 kB / 439.3 MB, free: 12.42 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002016/0.269, allocations: 218.9 kB / 439.5 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.717e-05/0.269, allocations: 20 kB / 439.5 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.2692, allocations: 71.95 kB / 439.6 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.102e-05/0.2693, allocations: 107.5 kB / 439.7 MB, free: 12.01 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.981e-05/0.2693, allocations: 125.4 kB / 439.8 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003952/0.2697, allocations: 0.5923 MB / 440.4 MB, free: 11.29 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.2698, allocations: 0 / 440.4 MB, free: 11.29 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.2698, allocations: 0 / 440.4 MB, free: 11.29 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.2698, allocations: 0 / 440.4 MB, free: 11.29 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.001427/0.2712, allocations: 0.9356 MB / 441.4 MB, free: 10.29 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.2713, allocations: 12.03 kB / 441.4 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.114e-05/0.2713, allocations: 70.53 kB / 441.4 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.945e-05/0.2714, allocations: 75.08 kB / 441.5 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005793/0.272, allocations: 0.5036 MB / 442 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.442e-05/0.272, allocations: 25 kB / 442 MB, free: 9.551 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.506e-05/0.2721, allocations: 36 kB / 442.1 MB, free: 9.516 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009865/0.2731, allocations: 0.5732 MB / 442.6 MB, free: 8.891 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.519e-05/0.2731, allocations: 3.938 kB / 442.6 MB, free: 8.887 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.343e-05/0.2732, allocations: 19.95 kB / 442.7 MB, free: 8.867 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.2732, allocations: 12 kB / 442.7 MB, free: 8.855 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001189/0.2744, allocations: 0.5668 MB / 443.2 MB, free: 8.289 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002212/0.2766, allocations: 2.087 MB / 445.3 MB, free: 6.109 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001346/0.278, allocations: 0.6509 MB / 446 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005175/0.2785, allocations: 271.2 kB / 446.2 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.119e-05/0.2786, allocations: 11.98 kB / 446.3 MB, free: 5.133 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007575/0.2794, allocations: 394.2 kB / 446.6 MB, free: 4.723 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 2.705e-06/0.2794, allocations: 0 / 446.6 MB, free: 4.723 MB / 318.1 MB Notification: Performance of matching and sorting (n=37): time 0.001969/0.2813, allocations: 0.8219 MB / 447.5 MB, free: 3.895 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/0.2814, allocations: 191.9 kB / 447.7 MB, free: 3.664 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005128/0.2819, allocations: 0.5067 MB / 448.2 MB, free: 3.145 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.66e-05/0.282, allocations: 41.7 kB / 448.2 MB, free: 3.098 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001567/0.2822, allocations: 276.1 kB / 448.5 MB, free: 2.824 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.889e-05/0.2823, allocations: 118.4 kB / 448.6 MB, free: 2.707 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.565e-05/0.2823, allocations: 8 kB / 448.6 MB, free: 2.699 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.32e-05/0.2824, allocations: 382.7 kB / 449 MB, free: 2.316 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005232/0.2829, allocations: 240.7 kB / 449.2 MB, free: 2.082 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005605/0.2835, allocations: 374.6 kB / 449.6 MB, free: 1.668 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005472/0.284, allocations: 324.1 kB / 449.9 MB, free: 1.34 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.284, allocations: 0 / 449.9 MB, free: 1.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001306/0.2854, allocations: 0.7666 MB / 450.7 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001008/0.2855, allocations: 231.6 kB / 450.9 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.2855, allocations: 7.984 kB / 450.9 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.2855, allocations: 4 kB / 450.9 MB, free: 268 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004855/0.286, allocations: 127.8 kB / 451 MB, free: 140 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/0.286, allocations: 4 kB / 451 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004359/0.2865, allocations: 99.48 kB / 451.1 MB, free: 36 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.495e-05/0.2865, allocations: 16 kB / 451.1 MB, free: 20 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.751e-06/0.2865, allocations: 4 kB / 451.1 MB, free: 16 kB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001347/0.2879, allocations: 0.6785 MB / 451.8 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.2879, allocations: 4 kB / 451.8 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.969e-06/0.2879, allocations: 8 kB / 451.8 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004024/0.2883, allocations: 120.1 kB / 451.9 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.2883, allocations: 4 kB / 451.9 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003749/0.2887, allocations: 75.64 kB / 452 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.504e-05/0.2888, allocations: 19.98 kB / 452 MB, free: 15.09 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.0003268/0.2891, allocations: 291.2 kB / 452.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001195/0.2892, allocations: 67.19 kB / 452.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001516/0.2894, allocations: 64.59 kB / 452.5 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.2894, allocations: 8 kB / 452.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.2894, allocations: 0 / 452.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.2894, allocations: 0 / 452.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005939/0.29, allocations: 0.5361 MB / 453 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.2901, allocations: 4 kB / 453 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003982/0.2905, allocations: 103.8 kB / 453.1 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.733e-06/0.2905, allocations: 4 kB / 453.1 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.165e-05/0.2905, allocations: 8 kB / 453.1 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.2905, allocations: 4 kB / 453.1 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.2905, allocations: 0 / 453.1 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001992/0.2925, allocations: 0.955 MB / 454.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001857/0.2927, allocations: 180.3 kB / 454.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.029e-05/0.2928, allocations: 23.92 kB / 454.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003531/0.2932, allocations: 60 kB / 454.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/0.2933, allocations: 47.94 kB / 454.4 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.444e-05/0.2933, allocations: 19.92 kB / 454.4 MB, free: 12.63 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000392/0.2937, allocations: 358.8 kB / 454.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2938, allocations: 0 / 454.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006478/0.2944, allocations: 191.5 kB / 454.9 MB, free: 12.09 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.003166/0.2976, allocations: 1.856 MB / 456.8 MB, free: 10.26 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002065/0.2997, allocations: 1.078 MB / 457.9 MB, free: 9.137 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.2997, allocations: 4.062 kB / 457.9 MB, free: 9.133 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006633/0.3003, allocations: 295.8 kB / 458.2 MB, free: 8.844 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006283/0.301, allocations: 122.5 kB / 458.3 MB, free: 8.723 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005729/0.3067, allocations: 3.485 MB / 461.8 MB, free: 5.125 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003712/0.3071, allocations: 0.8633 MB / 462.6 MB, free: 4.234 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004135/0.3075, allocations: 120.3 kB / 462.7 MB, free: 4.117 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002945/0.3078, allocations: 191.4 kB / 462.9 MB, free: 3.93 MB / 334.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3079, allocations: 4 kB / 462.9 MB, free: 3.926 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02636/0.3342, allocations: 12.04 MB / 475 MB, free: 7.863 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001874/0.3344, allocations: 229.1 kB / 475.2 MB, free: 7.625 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.13/2.464, allocations: 0 / 475.2 MB, free: 7.625 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_LoadDispatcherTest_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_LoadDispatcherTest.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe 2>&1) Environment - environmentSimulation: