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.0008741/0.0008744, allocations: 92.73 kB / 16.65 MB, free: 6.586 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.001125/0.001125, allocations: 185.3 kB / 17.56 MB, free: 6.203 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.274/1.274, allocations: 205.4 MB / 223.7 MB, free: 13 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1664/0.1664, allocations: 38.06 MB / 310.1 MB, free: 5.895 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.0005139/0.000514, allocations: 19.12 kB / 377.3 MB, free: 2.602 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2026/0.2031, allocations: 56.33 MB / 433.6 MB, free: 18.65 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest): time 0.003203/0.2063, allocations: 3.666 MB / 437.3 MB, free: 14.96 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001826/0.2082, allocations: 1.41 MB / 438.7 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003649/0.2086, allocations: 27.88 kB / 438.7 MB, free: 13.52 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003336/0.2089, allocations: 79.47 kB / 438.8 MB, free: 13.44 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003375/0.2093, allocations: 135.2 kB / 438.9 MB, free: 13.31 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005038/0.2098, allocations: 299.1 kB / 439.2 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00044/0.2102, allocations: 0.6906 MB / 439.9 MB, free: 12.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002625/0.2105, allocations: 203.2 kB / 440.1 MB, free: 12.12 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003089/0.2108, allocations: 234.8 kB / 440.3 MB, free: 11.89 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001926/0.211, allocations: 230.8 kB / 440.5 MB, free: 11.67 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.321e-05/0.2111, allocations: 16 kB / 440.6 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001336/0.2112, allocations: 71.97 kB / 440.6 MB, free: 11.58 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.864e-05/0.2113, allocations: 107.5 kB / 440.7 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001413/0.2115, allocations: 268.1 kB / 441 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004263/0.2119, allocations: 0.7317 MB / 441.7 MB, free: 10.47 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.2119, allocations: 3.938 kB / 441.7 MB, free: 10.47 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2119, allocations: 0 / 441.7 MB, free: 10.47 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.2119, allocations: 4 kB / 441.7 MB, free: 10.46 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.001398/0.2133, allocations: 0.9202 MB / 442.7 MB, free: 9.484 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.2134, allocations: 16.03 kB / 442.7 MB, free: 9.469 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.362e-05/0.2134, allocations: 70.72 kB / 442.7 MB, free: 9.391 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.861e-05/0.2135, allocations: 68.09 kB / 442.8 MB, free: 9.324 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005341/0.2141, allocations: 0.5162 MB / 443.3 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.429e-05/0.2141, allocations: 29.38 kB / 443.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.864e-05/0.2142, allocations: 43.92 kB / 443.4 MB, free: 8.695 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009707/0.2152, allocations: 0.5809 MB / 444 MB, free: 8.062 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.2152, allocations: 0 / 444 MB, free: 8.062 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.956e-05/0.2152, allocations: 16 kB / 444 MB, free: 8.047 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.487e-06/0.2152, allocations: 12 kB / 444 MB, free: 8.035 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001197/0.2164, allocations: 0.5707 MB / 444.6 MB, free: 7.465 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/0.2181, allocations: 2.099 MB / 446.7 MB, free: 5.273 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00143/0.2196, allocations: 0.6508 MB / 447.3 MB, free: 4.586 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005737/0.2202, allocations: 267.3 kB / 447.6 MB, free: 4.312 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.169e-05/0.2202, allocations: 15.98 kB / 447.6 MB, free: 4.297 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007511/0.221, allocations: 394.1 kB / 448 MB, free: 3.887 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 2.244e-06/0.221, allocations: 0 / 448 MB, free: 3.887 MB / 318.1 MB Notification: Performance of matching and sorting (n=37): time 0.001947/0.2229, allocations: 0.83 MB / 448.8 MB, free: 3.051 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.13e-05/0.223, allocations: 191.9 kB / 449 MB, free: 2.82 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004831/0.2235, allocations: 0.5106 MB / 449.5 MB, free: 2.297 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.228e-05/0.2236, allocations: 37.7 kB / 449.6 MB, free: 2.254 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.2237, allocations: 276.3 kB / 449.8 MB, free: 1.98 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.733e-05/0.2238, allocations: 122.3 kB / 449.9 MB, free: 1.859 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.408e-05/0.2239, allocations: 45.69 kB / 450 MB, free: 1.809 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.136e-05/0.2239, allocations: 366.8 kB / 450.3 MB, free: 1.441 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005835/0.2245, allocations: 248.7 kB / 450.6 MB, free: 1.199 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006052/0.2251, allocations: 369.9 kB / 450.9 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001142/0.2263, allocations: 0.6426 MB / 451.6 MB, free: 96 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.2263, allocations: 4 kB / 451.6 MB, free: 92 kB / 318.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001668/0.228, allocations: 0.7694 MB / 452.4 MB, free: 15.3 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001328/0.2281, allocations: 227.7 kB / 452.6 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.2281, allocations: 3.984 kB / 452.6 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.2282, allocations: 8 kB / 452.6 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004838/0.2287, allocations: 119.9 kB / 452.7 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.2287, allocations: 7.938 kB / 452.7 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004639/0.2291, allocations: 95.53 kB / 452.8 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.853e-05/0.2292, allocations: 20 kB / 452.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.094e-06/0.2292, allocations: 7.938 kB / 452.8 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001481/0.2307, allocations: 0.684 MB / 453.5 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.156e-06/0.2307, allocations: 0 / 453.5 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.506e-06/0.2307, allocations: 11.94 kB / 453.5 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004344/0.2312, allocations: 120.1 kB / 453.7 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.2312, allocations: 4 kB / 453.7 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004174/0.2316, allocations: 83.58 kB / 453.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.521e-05/0.2316, allocations: 27.98 kB / 453.8 MB, free: 13.82 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 ($PRE.loadDispatcher.data.nextTimeEvent,$whenCondition2,loadDispatcher.hydroDaily.count,$PRE.loadDispatcher.hydroDaily.count,loadDispatcher.hydroDaily.T_start,$PRE.loadDispatcher.hydroDaily.T_start,loadDispatcher.data.nextTimeEventScaled,$PRE.loadDispatcher.data.nextTimeEventScaled,loadDispatcher.data.nextTimeEvent,$whenCondition3,frequency.count,$PRE.frequency.count,frequency.T_start,$PRE.frequency.T_start,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002825/0.2319, allocations: 275.3 kB / 454 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.508e-05/0.232, allocations: 79.03 kB / 454.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001458/0.2322, allocations: 72.59 kB / 454.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.2322, allocations: 7.938 kB / 454.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.2322, allocations: 0 / 454.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.2322, allocations: 0 / 454.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005325/0.2327, allocations: 0.5361 MB / 454.7 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2328, allocations: 4 kB / 454.7 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004128/0.2332, allocations: 91.92 kB / 454.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.52e-06/0.2332, allocations: 11.88 kB / 454.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.023e-05/0.2332, allocations: 8 kB / 454.8 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.2332, allocations: 8 kB / 454.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.2332, allocations: 0 / 454.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002134/0.2354, allocations: 0.9472 MB / 455.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001927/0.2356, allocations: 184.3 kB / 456 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.871e-05/0.2357, allocations: 23.92 kB / 456 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004081/0.2361, allocations: 60 kB / 456.1 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/0.2363, allocations: 47.88 kB / 456.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.393e-05/0.2363, allocations: 16 kB / 456.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003792/0.2367, allocations: 362.8 kB / 456.5 MB, free: 11.01 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2367, allocations: 0 / 456.5 MB, free: 11.01 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000583/0.2373, allocations: 199.6 kB / 456.7 MB, free: 10.81 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003432/0.2407, allocations: 1.847 MB / 458.5 MB, free: 8.977 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002284/0.243, allocations: 1.095 MB / 459.6 MB, free: 7.832 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.243, allocations: 0 / 459.6 MB, free: 7.832 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007283/0.2438, allocations: 299.9 kB / 459.9 MB, free: 7.539 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007209/0.2445, allocations: 122.2 kB / 460 MB, free: 7.422 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008459/0.253, allocations: 5.411 MB / 465.4 MB, free: 1.805 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004074/0.2534, allocations: 0.8632 MB / 466.3 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003998/0.2538, allocations: 116.3 kB / 466.4 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002933/0.2541, allocations: 195.4 kB / 466.6 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of SimCode: time 7.21e-07/0.2541, allocations: 0 / 466.6 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02573/0.2799, allocations: 12.12 MB / 478.7 MB, free: 4.457 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001921/0.2801, allocations: 250.2 kB / 479 MB, free: 4.199 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.937/2.217, allocations: 4 kB / 479 MB, free: 4.195 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/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)