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.00229/0.00229, allocations: 181.5 kB / 15.77 MB, free: 6.375 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.011/2.011, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001194/0.001194, allocations: 90.84 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2762/0.2762, allocations: 38.06 MB / 356.6 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000619/0.0006192, allocations: 12 kB / 422.7 MB, free: 26.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1079, allocations: 56.33 MB / 479 MB, free: 2.074 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest): time 0.006229/0.1142, allocations: 3.455 MB / 482.5 MB, free: 14.6 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003657/0.1179, allocations: 1.362 MB / 483.8 MB, free: 13.23 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000593/0.1185, allocations: 19.88 kB / 483.9 MB, free: 13.21 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004864/0.119, allocations: 67.47 kB / 483.9 MB, free: 13.14 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008579/0.1199, allocations: 183.4 kB / 484.1 MB, free: 12.96 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001136/0.1211, allocations: 255.4 kB / 484.4 MB, free: 12.71 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001152/0.1222, allocations: 436.2 kB / 484.8 MB, free: 12.29 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004672/0.1228, allocations: 160.8 kB / 484.9 MB, free: 12.13 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007328/0.1235, allocations: 219.1 kB / 485.2 MB, free: 11.91 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003879/0.1239, allocations: 203 kB / 485.4 MB, free: 11.71 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.346e-05/0.124, allocations: 20 kB / 485.4 MB, free: 11.7 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002781/0.1243, allocations: 55.92 kB / 485.4 MB, free: 11.64 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001716/0.1245, allocations: 103.6 kB / 485.5 MB, free: 11.54 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001796/0.1247, allocations: 129.3 kB / 485.7 MB, free: 11.41 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001027/0.1257, allocations: 0.5887 MB / 486.2 MB, free: 10.82 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1258, allocations: 0 / 486.2 MB, free: 10.82 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1258, allocations: 4 kB / 486.2 MB, free: 10.81 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.214e-05/0.1258, allocations: 0 / 486.2 MB, free: 10.81 MB / 330.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.002884/0.1287, allocations: 0.9317 MB / 487.2 MB, free: 9.816 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.1288, allocations: 8.031 kB / 487.2 MB, free: 9.809 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002376/0.129, allocations: 75.09 kB / 487.3 MB, free: 9.734 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001214/0.1302, allocations: 0.4959 MB / 487.8 MB, free: 9.195 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.227e-05/0.1303, allocations: 25 kB / 487.8 MB, free: 9.172 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/0.1304, allocations: 36 kB / 487.8 MB, free: 9.137 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001986/0.1324, allocations: 0.5692 MB / 488.4 MB, free: 8.516 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.949e-05/0.1325, allocations: 0 / 488.4 MB, free: 8.516 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.448e-05/0.1326, allocations: 31.94 kB / 488.4 MB, free: 8.484 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.677e-05/0.1326, allocations: 11.98 kB / 488.4 MB, free: 8.473 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002558/0.1352, allocations: 0.5707 MB / 489 MB, free: 7.902 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004072/0.1393, allocations: 2.091 MB / 491.1 MB, free: 5.719 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003072/0.1424, allocations: 0.647 MB / 491.7 MB, free: 5.035 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.391e-05/0.1426, allocations: 19.97 kB / 491.8 MB, free: 5.016 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001521/0.1441, allocations: 382.2 kB / 492.1 MB, free: 4.617 MB / 330.7 MB Notification: Performance of pre-optimization done (n=37): time 3.937e-06/0.1441, allocations: 4 kB / 492.1 MB, free: 4.613 MB / 330.7 MB Notification: Performance of matching and sorting (n=37): time 0.003969/0.1481, allocations: 0.8249 MB / 493 MB, free: 3.781 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001446/0.1483, allocations: 196 kB / 493.2 MB, free: 3.547 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001016/0.1493, allocations: 0.499 MB / 493.6 MB, free: 3.035 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001361/0.1495, allocations: 41.69 kB / 493.7 MB, free: 2.988 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002988/0.1498, allocations: 298.6 kB / 494 MB, free: 2.695 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002011/0.15, allocations: 126.3 kB / 494.1 MB, free: 2.57 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.29e-05/0.1501, allocations: 8 kB / 494.1 MB, free: 2.562 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.1503, allocations: 330.8 kB / 494.4 MB, free: 2.23 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/0.1515, allocations: 248.7 kB / 494.7 MB, free: 1.988 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001325/0.1529, allocations: 374 kB / 495 MB, free: 1.574 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001289/0.1542, allocations: 324.1 kB / 495.4 MB, free: 1.246 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.1542, allocations: 0 / 495.4 MB, free: 1.246 MB / 330.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.003052/0.1573, allocations: 0.7279 MB / 496.1 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000667/0.158, allocations: 1.279 MB / 497.4 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.158, allocations: 4 kB / 497.4 MB, free: 15.11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.878e-05/0.1581, allocations: 7.953 kB / 497.4 MB, free: 15.11 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/0.1591, allocations: 131.8 kB / 497.5 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.924e-05/0.1591, allocations: 7.938 kB / 497.5 MB, free: 14.97 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008841/0.16, allocations: 91.62 kB / 497.6 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.065e-05/0.1601, allocations: 19.98 kB / 497.6 MB, free: 14.86 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.1601, allocations: 4 kB / 497.6 MB, free: 14.86 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002707/0.1629, allocations: 0.6745 MB / 498.3 MB, free: 14.17 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.1629, allocations: 4 kB / 498.3 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.1629, allocations: 8 kB / 498.3 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008645/0.1638, allocations: 116.1 kB / 498.4 MB, free: 14.04 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.362e-05/0.1638, allocations: 7.938 kB / 498.4 MB, free: 14.04 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006893/0.1645, allocations: 79.62 kB / 498.5 MB, free: 13.96 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.132e-05/0.1646, allocations: 20 kB / 498.5 MB, free: 13.94 MB / 346.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.0005184/0.1652, allocations: 295.2 kB / 498.8 MB, free: 13.64 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001744/0.1653, allocations: 59.25 kB / 498.9 MB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002329/0.1656, allocations: 64.59 kB / 498.9 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/0.1656, allocations: 4 kB / 498.9 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.084e-05/0.1656, allocations: 4 kB / 499 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.799e-06/0.1656, allocations: 3.984 kB / 499 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009195/0.1666, allocations: 0.5361 MB / 499.5 MB, free: 12.92 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.1666, allocations: 0 / 499.5 MB, free: 12.92 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000886/0.1675, allocations: 99.86 kB / 499.6 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.241e-05/0.1675, allocations: 4 kB / 499.6 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.154e-05/0.1676, allocations: 11.98 kB / 499.6 MB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.741e-06/0.1676, allocations: 0 / 499.6 MB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/0.1676, allocations: 7.938 kB / 499.6 MB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004191/0.1718, allocations: 0.9832 MB / 0.4889 GB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004107/0.1723, allocations: 184.3 kB / 0.489 GB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001375/0.1725, allocations: 16 kB / 0.4891 GB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007457/0.1732, allocations: 67.95 kB / 0.4891 GB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002354/0.1735, allocations: 51.92 kB / 0.4892 GB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.506e-05/0.1736, allocations: 12 kB / 0.4892 GB, free: 11.42 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007023/0.1743, allocations: 354.8 kB / 0.4895 GB, free: 11.08 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.1743, allocations: 11.94 kB / 0.4895 GB, free: 11.07 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001084/0.1754, allocations: 199.8 kB / 0.4897 GB, free: 10.87 MB / 346.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.001405/0.1768, allocations: 467.4 kB / 0.4902 GB, free: 10.46 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004296/0.1811, allocations: 1.081 MB / 0.4912 GB, free: 9.336 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.1812, allocations: 0 / 0.4912 GB, free: 9.336 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001364/0.1826, allocations: 287.9 kB / 0.4915 GB, free: 9.055 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001056/0.1837, allocations: 114.4 kB / 0.4916 GB, free: 8.941 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003056/0.1868, allocations: 1.107 MB / 0.4927 GB, free: 7.797 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006261/0.1874, allocations: 0.875 MB / 0.4935 GB, free: 6.895 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004001/0.1879, allocations: 51.42 kB / 0.4936 GB, free: 6.844 MB / 346.7 MB Notification: Performance of SimCode: time 1.152e-06/0.1879, allocations: 4 kB / 0.4936 GB, free: 6.84 MB / 346.7 MB Notification: Performance of Templates: time 0.01957/0.2074, allocations: 7.807 MB / 0.5012 GB, free: 15.01 MB / 362.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)