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: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",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.001141/0.001141, allocations: 94.55 kB / 16.3 MB, free: 5.992 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.001313/0.001313, allocations: 181.3 kB / 17.19 MB, free: 5.906 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.652/1.652, allocations: 205.4 MB / 223.4 MB, free: 5.758 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3552/0.3552, allocations: 38.06 MB / 309.7 MB, free: 8.816 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.000535/0.000535, allocations: 18.19 kB / 376.6 MB, free: 15.21 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1119, allocations: 56.33 MB / 432.9 MB, free: 6.773 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.004446/0.1164, allocations: 3.502 MB / 436.4 MB, free: 3.25 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002779/0.1192, allocations: 1.924 MB / 438.3 MB, free: 1.316 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002489/0.1195, allocations: 19.88 kB / 438.4 MB, free: 1.297 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000339/0.1198, allocations: 75.52 kB / 438.4 MB, free: 1.223 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005458/0.1204, allocations: 211.3 kB / 438.6 MB, free: 1.016 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006109/0.121, allocations: 211.5 kB / 438.9 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003884/0.1214, allocations: 283.4 kB / 439.1 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006174/0.122, allocations: 343 kB / 439.5 MB, free: 184 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003631/0.1224, allocations: 179.3 kB / 439.6 MB, free: 4 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002158/0.1226, allocations: 139.6 kB / 439.8 MB, free: 15.86 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.939e-05/0.1227, allocations: 16 kB / 439.8 MB, free: 15.85 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004034/0.1231, allocations: 207.5 kB / 440 MB, free: 15.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001108/0.1232, allocations: 95.7 kB / 440.1 MB, free: 15.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.578e-05/0.1233, allocations: 85.52 kB / 440.2 MB, free: 15.46 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004574/0.1238, allocations: 470.9 kB / 440.6 MB, free: 15 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.044e-06/0.1238, allocations: 7.938 kB / 440.6 MB, free: 15 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1238, allocations: 0 / 440.6 MB, free: 15 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.1238, allocations: 0 / 440.6 MB, free: 15 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.001283/0.1251, allocations: 0.6925 MB / 441.3 MB, free: 14.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.1251, allocations: 12.03 kB / 441.3 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.7e-05/0.1252, allocations: 58.55 kB / 441.4 MB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008438/0.1261, allocations: 115.4 kB / 441.5 MB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005619/0.1266, allocations: 398.5 kB / 441.9 MB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.1267, allocations: 16.42 kB / 441.9 MB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.599e-05/0.1267, allocations: 27.98 kB / 441.9 MB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007872/0.1275, allocations: 454.7 kB / 442.4 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.1275, allocations: 0 / 442.4 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.621e-05/0.1276, allocations: 11.98 kB / 442.4 MB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-05/0.1276, allocations: 20.42 kB / 442.4 MB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009599/0.1286, allocations: 0.5169 MB / 442.9 MB, free: 12.56 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002035/0.1306, allocations: 1.682 MB / 444.6 MB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009317/0.1316, allocations: 393.1 kB / 445 MB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.62e-05/0.1316, allocations: 4 kB / 445 MB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005493/0.1322, allocations: 302.8 kB / 445.3 MB, free: 10.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 2.224e-06/0.1322, allocations: 0 / 445.3 MB, free: 10.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.001332/0.1335, allocations: 0.5559 MB / 445.9 MB, free: 9.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002769/0.1338, allocations: 299 kB / 446.1 MB, free: 9.121 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003658/0.1342, allocations: 332.5 kB / 446.5 MB, free: 8.789 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.208e-05/0.1343, allocations: 37.7 kB / 446.5 MB, free: 8.746 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/0.1344, allocations: 192.4 kB / 446.7 MB, free: 8.555 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.849e-05/0.1345, allocations: 106.5 kB / 446.8 MB, free: 8.449 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.845e-05/0.1345, allocations: 8 kB / 446.8 MB, free: 8.441 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.1347, allocations: 346.8 kB / 447.1 MB, free: 8.094 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003664/0.1351, allocations: 151.9 kB / 447.3 MB, free: 7.945 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004405/0.1355, allocations: 289 kB / 447.6 MB, free: 7.602 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004303/0.1359, allocations: 217.6 kB / 447.8 MB, free: 7.383 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.136, allocations: 0 / 447.8 MB, free: 7.383 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.00104/0.137, allocations: 0.5301 MB / 448.3 MB, free: 6.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.701e-05/0.1371, allocations: 37.73 kB / 448.4 MB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.1371, allocations: 4 kB / 448.4 MB, free: 6.793 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.126e-05/0.1371, allocations: 8 kB / 448.4 MB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003453/0.1375, allocations: 99.81 kB / 448.5 MB, free: 6.688 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/0.1375, allocations: 4 kB / 448.5 MB, free: 6.684 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002979/0.1378, allocations: 59.66 kB / 448.5 MB, free: 6.625 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.245e-05/0.1378, allocations: 16 kB / 448.5 MB, free: 6.609 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 ($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.0002467/0.1381, allocations: 201.3 kB / 448.7 MB, free: 6.402 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.481e-05/0.1382, allocations: 35.53 kB / 448.8 MB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001158/0.1383, allocations: 55.14 kB / 448.8 MB, free: 6.309 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.892e-06/0.1383, allocations: 4 kB / 448.8 MB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/0.1383, allocations: 4 kB / 448.8 MB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.1383, allocations: 7.938 kB / 448.8 MB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001128/0.1395, allocations: 1.027 MB / 449.9 MB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.1395, allocations: 4 kB / 449.9 MB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002574/0.1397, allocations: 72.08 kB / 449.9 MB, free: 5.113 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.074e-06/0.1398, allocations: 4 kB / 450 MB, free: 5.109 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.885e-05/0.1398, allocations: 12 kB / 450 MB, free: 5.098 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.01e-05/0.1398, allocations: 15.88 kB / 450 MB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.1398, allocations: 0 / 450 MB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001046/0.1409, allocations: 0.5761 MB / 450.6 MB, free: 4.414 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.141, allocations: 116.7 kB / 450.7 MB, free: 4.281 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.53e-05/0.1411, allocations: 15.98 kB / 450.7 MB, free: 4.266 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002216/0.1413, allocations: 35.97 kB / 450.7 MB, free: 4.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.638e-05/0.1414, allocations: 31.95 kB / 450.8 MB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.084e-05/0.1415, allocations: 16 kB / 450.8 MB, free: 4.184 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002755/0.1417, allocations: 239 kB / 451 MB, free: 3.949 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1417, allocations: 0 / 451 MB, free: 3.949 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004781/0.1422, allocations: 79.91 kB / 451.1 MB, free: 3.871 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 (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.002597/0.1448, allocations: 2.03 MB / 453.1 MB, free: 1.754 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009656/0.1458, allocations: 443.4 kB / 453.5 MB, free: 1.309 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.686e-06/0.1458, allocations: 0 / 453.5 MB, free: 1.309 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004577/0.1463, allocations: 212.7 kB / 453.7 MB, free: 1.102 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004097/0.1467, allocations: 64.91 kB / 453.8 MB, free: 1.039 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1947/0.3414, allocations: 4.974 MB / 458.8 MB, free: 48.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002514/0.3417, allocations: 0.8132 MB / 459.6 MB, free: 47.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000296/0.342, allocations: 90.3 kB / 459.7 MB, free: 47.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001662/0.3422, allocations: 123.4 kB / 459.8 MB, free: 47.49 MB / 382.1 MB Notification: Performance of SimCode: time 9.21e-07/0.3422, allocations: 0 / 459.8 MB, free: 47.49 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01942/0.3616, allocations: 7.546 MB / 467.4 MB, free: 47 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001408/0.3618, allocations: 227.5 kB / 467.6 MB, free: 46.76 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.879/2.241, allocations: 3.656 kB / 467.6 MB, free: 46.76 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1) Environment - environmentSimulation: