Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.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.WindFarmGridTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") translateModel(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008721/0.0008721, allocations: 170 kB / 15.77 MB, free: 6.32 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.506/1.506, allocations: 205.4 MB / 221.9 MB, free: 13.76 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.0008754/0.0008752, allocations: 98.23 kB / 270.3 MB, free: 13.29 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1877/0.1877, allocations: 38.06 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000411/0.000411, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1058, allocations: 56.33 MB / 479.1 MB, free: 2.043 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.0042/0.11, allocations: 3.581 MB / 482.6 MB, free: 14.44 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002914/0.113, allocations: 1.971 MB / 484.6 MB, free: 12.46 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003179/0.1133, allocations: 19.81 kB / 484.6 MB, free: 12.44 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000427/0.1137, allocations: 67.53 kB / 484.7 MB, free: 12.38 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000729/0.1145, allocations: 246.9 kB / 484.9 MB, free: 12.13 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006642/0.1152, allocations: 199.5 kB / 485.1 MB, free: 11.94 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006203/0.1158, allocations: 0.5259 MB / 485.7 MB, free: 11.41 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006629/0.1165, allocations: 343 kB / 486 MB, free: 11.06 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004666/0.1169, allocations: 183.2 kB / 486.2 MB, free: 10.88 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002906/0.1172, allocations: 195.3 kB / 486.4 MB, free: 10.69 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.945e-05/0.1173, allocations: 16 kB / 486.4 MB, free: 10.67 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004587/0.1178, allocations: 219.5 kB / 486.6 MB, free: 10.46 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001114/0.1179, allocations: 107.6 kB / 486.7 MB, free: 10.35 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 9.372e-05/0.118, allocations: 81.52 kB / 486.8 MB, free: 10.27 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005714/0.1186, allocations: 470.9 kB / 487.2 MB, free: 9.805 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1186, allocations: 0 / 487.2 MB, free: 9.805 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1186, allocations: 0 / 487.2 MB, free: 9.805 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.388e-06/0.1186, allocations: 0 / 487.2 MB, free: 9.805 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001238/0.1199, allocations: 0.6926 MB / 487.9 MB, free: 9.059 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.1199, allocations: 8.031 kB / 487.9 MB, free: 9.051 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008557/0.1208, allocations: 115.4 kB / 488.1 MB, free: 8.938 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005826/0.1214, allocations: 390.5 kB / 488.4 MB, free: 8.512 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.808e-05/0.1214, allocations: 20.44 kB / 488.5 MB, free: 8.492 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.182e-05/0.1215, allocations: 27.97 kB / 488.5 MB, free: 8.465 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008624/0.1223, allocations: 454.8 kB / 488.9 MB, free: 7.992 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.1224, allocations: 3.938 kB / 488.9 MB, free: 7.988 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.783e-05/0.1224, allocations: 12 kB / 488.9 MB, free: 7.977 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.38e-05/0.1224, allocations: 20.38 kB / 489 MB, free: 7.957 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.1235, allocations: 0.5247 MB / 489.5 MB, free: 7.43 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002141/0.1256, allocations: 1.674 MB / 491.2 MB, free: 5.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009744/0.1266, allocations: 398 kB / 491.6 MB, free: 5.254 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003744/0.127, allocations: 153.6 kB / 491.7 MB, free: 5.098 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.721e-05/0.1271, allocations: 7.984 kB / 491.7 MB, free: 5.09 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005488/0.1276, allocations: 298.9 kB / 492 MB, free: 4.758 MB / 330.7 MB Notification: Performance of pre-optimization done (n=31): time 1.933e-06/0.1276, allocations: 0 / 492 MB, free: 4.758 MB / 330.7 MB Notification: Performance of matching and sorting (n=31): time 0.001376/0.129, allocations: 0.5557 MB / 492.6 MB, free: 4.195 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001404/0.1292, allocations: 299.1 kB / 492.8 MB, free: 3.836 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003707/0.1295, allocations: 320.5 kB / 493.2 MB, free: 3.508 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.989e-05/0.1296, allocations: 37.7 kB / 493.2 MB, free: 3.465 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000144/0.1297, allocations: 204.2 kB / 493.4 MB, free: 3.258 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.724e-05/0.1298, allocations: 102.6 kB / 493.5 MB, free: 3.156 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.837e-05/0.1299, allocations: 4 kB / 493.5 MB, free: 3.152 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.13, allocations: 350.8 kB / 493.8 MB, free: 2.801 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003888/0.1304, allocations: 151.9 kB / 494 MB, free: 2.652 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004746/0.1309, allocations: 292.9 kB / 494.3 MB, free: 2.305 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000444/0.1314, allocations: 209.5 kB / 494.5 MB, free: 2.094 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.1314, allocations: 4 kB / 494.5 MB, free: 2.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001059/0.1324, allocations: 0.53 MB / 495 MB, free: 1.547 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.138e-05/0.1325, allocations: 37.8 kB / 495.1 MB, free: 1.504 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.1325, allocations: 4 kB / 495.1 MB, free: 1.5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.331e-05/0.1325, allocations: 8 kB / 495.1 MB, free: 1.492 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003628/0.1329, allocations: 95.81 kB / 495.2 MB, free: 1.398 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.197e-05/0.1329, allocations: 8 kB / 495.2 MB, free: 1.391 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003/0.1332, allocations: 59.56 kB / 495.2 MB, free: 1.332 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.68e-05/0.1333, allocations: 20 kB / 495.2 MB, free: 1.312 MB / 330.7 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 ($whenCondition2,$PRE.windFarm.wind.nextTimeEvent,$whenCondition1,windFarm.wind.nextTimeEvent,$PRE.windFarm.wind.nextTimeEventScaled,windFarm.wind.nextTimeEventScaled,$PRE.windFarm.disturbance.T_start,windFarm.disturbance.T_start,$PRE.windFarm.disturbance.count,windFarm.disturbance.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002208/0.1335, allocations: 201.4 kB / 495.4 MB, free: 1.105 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.119e-05/0.1336, allocations: 31.62 kB / 495.5 MB, free: 1.074 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.759e-05/0.1337, allocations: 47.17 kB / 495.5 MB, free: 1.031 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.1337, allocations: 4 kB / 495.5 MB, free: 1.027 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.1337, allocations: 4 kB / 495.5 MB, free: 1.023 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.1337, allocations: 7.984 kB / 495.5 MB, free: 1.016 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009264/0.1347, allocations: 1.027 MB / 496.6 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.1347, allocations: 4 kB / 496.6 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002715/0.135, allocations: 72.08 kB / 496.6 MB, free: 15.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.273e-06/0.135, allocations: 7.938 kB / 496.6 MB, free: 15.83 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.083e-05/0.135, allocations: 15.98 kB / 496.7 MB, free: 15.81 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.135, allocations: 3.938 kB / 496.7 MB, free: 15.81 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.135, allocations: 4 kB / 496.7 MB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009495/0.136, allocations: 499.3 kB / 497.2 MB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.865e-05/0.1361, allocations: 116.6 kB / 497.3 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.927e-05/0.1361, allocations: 19.98 kB / 497.3 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002356/0.1364, allocations: 31.97 kB / 497.3 MB, free: 15.09 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.885e-05/0.1365, allocations: 39.84 kB / 497.4 MB, free: 15.05 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.787e-05/0.1365, allocations: 12 kB / 497.4 MB, free: 15.04 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002953/0.1368, allocations: 239 kB / 497.6 MB, free: 14.81 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1368, allocations: 0 / 497.6 MB, free: 14.81 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004187/0.1373, allocations: 91.92 kB / 497.7 MB, free: 14.72 MB / 346.7 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 (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.0009614/0.1382, allocations: 472.8 kB / 498.2 MB, free: 14.31 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009833/0.1392, allocations: 431.6 kB / 498.6 MB, free: 13.88 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.1393, allocations: 0 / 498.6 MB, free: 13.88 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004693/0.1397, allocations: 204.6 kB / 498.8 MB, free: 13.68 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004973/0.1402, allocations: 69.05 kB / 498.8 MB, free: 13.61 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/0.1416, allocations: 0.8341 MB / 499.7 MB, free: 12.72 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004658/0.1421, allocations: 0.8037 MB / 0.4887 GB, free: 11.89 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001448/0.1423, allocations: 43.42 kB / 0.4888 GB, free: 11.85 MB / 346.7 MB Notification: Performance of SimCode: time 1.002e-06/0.1423, allocations: 0 / 0.4888 GB, free: 11.85 MB / 346.7 MB Notification: Performance of Templates: time 0.00902/0.1513, allocations: 5.349 MB / 0.494 GB, free: 6.492 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1)