Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.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.WindFarmGridTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") translateModel(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 103.8 kB / 17.74 MB, free: 5.188 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.001266/0.001266, allocations: 192.2 kB / 18.67 MB, free: 4.266 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.192/1.192, allocations: 205.1 MB / 224.5 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1639/0.1639, allocations: 37.98 MB / 309.9 MB, free: 5.938 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.001307/0.001307, allocations: 67.91 kB / 432.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09102/0.09234, allocations: 55.24 MB / 487.8 MB, free: 8.34 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.005492/0.09787, allocations: 3.685 MB / 491.5 MB, free: 4.629 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002752/0.1006, allocations: 1.981 MB / 493.4 MB, free: 2.637 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002156/0.1009, allocations: 11.94 kB / 493.5 MB, free: 2.625 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000849/0.1017, allocations: 234.9 kB / 493.7 MB, free: 2.395 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0006657/0.1024, allocations: 278.8 kB / 494 MB, free: 2.121 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006205/0.1031, allocations: 255.3 kB / 494.2 MB, free: 1.871 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006264/0.1037, allocations: 0.526 MB / 494.7 MB, free: 1.344 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003723/0.1041, allocations: 223.5 kB / 495 MB, free: 1.125 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004539/0.1045, allocations: 235.2 kB / 495.2 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003256/0.1049, allocations: 215.2 kB / 495.4 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.721e-05/0.105, allocations: 36 kB / 495.4 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006257/0.1056, allocations: 399.1 kB / 495.8 MB, free: 264 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001419/0.1058, allocations: 127.7 kB / 495.9 MB, free: 136 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002465/0.106, allocations: 183.1 kB / 496.1 MB, free: 15.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008275/0.1068, allocations: 0.6309 MB / 496.8 MB, free: 15.32 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1069, allocations: 4 kB / 496.8 MB, free: 15.32 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1069, allocations: 4 kB / 496.8 MB, free: 15.31 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.19e-05/0.1069, allocations: 0 / 496.8 MB, free: 15.31 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001322/0.1082, allocations: 0.7393 MB / 497.5 MB, free: 14.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.1083, allocations: 11.89 kB / 497.5 MB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008957/0.1092, allocations: 108.4 kB / 497.6 MB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000619/0.1098, allocations: 419.6 kB / 498 MB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.408e-05/0.1098, allocations: 20.81 kB / 498 MB, free: 13.94 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.28e-05/0.1099, allocations: 20.12 kB / 498.1 MB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008162/0.1107, allocations: 450.7 kB / 498.5 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.1107, allocations: 3.984 kB / 498.5 MB, free: 13.44 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.405e-05/0.1108, allocations: 12 kB / 498.5 MB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.119e-05/0.1108, allocations: 16.44 kB / 498.5 MB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009389/0.1117, allocations: 0.4973 MB / 499 MB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001977/0.1137, allocations: 1.682 MB / 0.489 GB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008486/0.1146, allocations: 377 kB / 0.4893 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003261/0.1149, allocations: 145.6 kB / 0.4895 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.401e-05/0.115, allocations: 8 kB / 0.4895 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005118/0.1155, allocations: 286.9 kB / 0.4898 GB, free: 10.28 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.934e-06/0.1155, allocations: 0 / 0.4898 GB, free: 10.28 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.001307/0.1168, allocations: 0.5211 MB / 0.4903 GB, free: 9.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001469/0.117, allocations: 294.7 kB / 0.4905 GB, free: 9.395 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000376/0.1174, allocations: 328.5 kB / 0.4909 GB, free: 9.066 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.718e-05/0.1174, allocations: 41.7 kB / 0.4909 GB, free: 9.02 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.1176, allocations: 188.4 kB / 0.4911 GB, free: 8.828 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.11e-05/0.1177, allocations: 106.6 kB / 0.4912 GB, free: 8.723 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.1178, allocations: 69.73 kB / 0.4913 GB, free: 8.648 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.1179, allocations: 350.8 kB / 0.4916 GB, free: 8.297 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003382/0.1183, allocations: 131.9 kB / 0.4917 GB, free: 8.168 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004237/0.1187, allocations: 288.8 kB / 0.492 GB, free: 7.824 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007639/0.1195, allocations: 457.7 kB / 0.4924 GB, free: 7.312 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.1195, allocations: 0 / 0.4924 GB, free: 7.312 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009525/0.1204, allocations: 0.5138 MB / 0.4929 GB, free: 6.785 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.488e-05/0.1205, allocations: 38.27 kB / 0.493 GB, free: 6.742 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.1205, allocations: 7.938 kB / 0.493 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.959e-05/0.1205, allocations: 12 kB / 0.493 GB, free: 6.723 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003004/0.1208, allocations: 83.88 kB / 0.4931 GB, free: 6.641 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.469e-05/0.1209, allocations: 8 kB / 0.4931 GB, free: 6.633 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002687/0.1211, allocations: 55.59 kB / 0.4931 GB, free: 6.578 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.887e-05/0.1212, allocations: 16 kB / 0.4931 GB, free: 6.562 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.windFarm.wind.nextTimeEvent,$whenCondition2,windFarm.disturbance.count,$PRE.windFarm.disturbance.count,windFarm.disturbance.T_start,$PRE.windFarm.disturbance.T_start,windFarm.wind.nextTimeEventScaled,$PRE.windFarm.wind.nextTimeEventScaled,windFarm.wind.nextTimeEvent,$whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 1 * 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.0002149/0.1214, allocations: 193.7 kB / 0.4933 GB, free: 6.363 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.309e-05/0.1215, allocations: 43.47 kB / 0.4934 GB, free: 6.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001061/0.1216, allocations: 43.17 kB / 0.4934 GB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.906e-06/0.1216, allocations: 8 kB / 0.4934 GB, free: 6.266 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.1216, allocations: 4 kB / 0.4934 GB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-06/0.1217, allocations: 7.984 kB / 0.4934 GB, free: 6.254 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009585/0.1226, allocations: 1.027 MB / 0.4944 GB, free: 5.148 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.501e-06/0.1226, allocations: 0 / 0.4944 GB, free: 5.148 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002448/0.1229, allocations: 67.83 kB / 0.4945 GB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.1229, allocations: 4 kB / 0.4945 GB, free: 5.078 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.726e-05/0.1229, allocations: 11.98 kB / 0.4945 GB, free: 5.066 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.1229, allocations: 0 / 0.4945 GB, free: 5.066 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1229, allocations: 4 kB / 0.4945 GB, free: 5.062 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008309/0.1238, allocations: 476.4 kB / 0.495 GB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.989e-05/0.1239, allocations: 116.7 kB / 0.4951 GB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.124e-05/0.1239, allocations: 8 kB / 0.4951 GB, free: 4.414 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001966/0.1241, allocations: 31.91 kB / 0.4951 GB, free: 4.383 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.616e-05/0.1242, allocations: 47.83 kB / 0.4952 GB, free: 4.336 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.418e-05/0.1243, allocations: 12 kB / 0.4952 GB, free: 4.324 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002121/0.1245, allocations: 235 kB / 0.4954 GB, free: 4.094 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1245, allocations: 0 / 0.4954 GB, free: 4.094 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003912/0.1249, allocations: 95.83 kB / 0.4955 GB, free: 4 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition2,$whenCondition1,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled,windFarm.disturbance.T_start,windFarm.disturbance.count) * Number of discrete states: 3 (windFarm.wind.nextTimeEventScaled,windFarm.disturbance.count,windFarm.wind.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0009418/0.1258, allocations: 456 kB / 0.4959 GB, free: 3.543 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008226/0.1267, allocations: 415.4 kB / 0.4963 GB, free: 3.125 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.1267, allocations: 4 kB / 0.4963 GB, free: 3.121 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003933/0.1271, allocations: 184 kB / 0.4965 GB, free: 2.941 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004376/0.1275, allocations: 73.94 kB / 0.4966 GB, free: 2.871 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001188/0.1287, allocations: 0.743 MB / 0.4973 GB, free: 2.074 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003848/0.1291, allocations: 0.8072 MB / 0.4981 GB, free: 1.238 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.1292, allocations: 47.42 kB / 0.4981 GB, free: 1.191 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1293, allocations: 0 / 0.4981 GB, free: 1.191 MB / 382.1 MB Notification: Performance of Templates: time 0.008184/0.1374, allocations: 5.419 MB / 0.5034 GB, free: 11.76 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1)