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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001463/0.001463, allocations: 103.5 kB / 16.92 MB, free: 5.848 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.001734/0.001734, allocations: 191.3 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 222.9 MB / 241.6 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1724/0.1724, allocations: 38.02 MB / 329.7 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 68.84 kB / 398.9 MB, free: 33.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09001/0.09123, allocations: 58.06 MB / 457 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.005267/0.09653, allocations: 3.676 MB / 460.6 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002688/0.09925, allocations: 2.046 MB / 462.7 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001488/0.09941, allocations: 11.94 kB / 462.7 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007564/0.1002, allocations: 234.9 kB / 462.9 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005658/0.1008, allocations: 286.8 kB / 463.2 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005767/0.1013, allocations: 286 kB / 463.5 MB, free: 1.387 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004943/0.1018, allocations: 0.53 MB / 464 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003184/0.1022, allocations: 211.6 kB / 464.2 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003529/0.1025, allocations: 227.2 kB / 464.4 MB, free: 432 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002504/0.1028, allocations: 215.2 kB / 464.7 MB, free: 216 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.487e-05/0.1029, allocations: 39.94 kB / 464.7 MB, free: 176 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005607/0.1034, allocations: 399.2 kB / 465.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.1036, allocations: 123.7 kB / 465.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001692/0.1037, allocations: 191 kB / 465.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000646/0.1044, allocations: 0.6233 MB / 466 MB, free: 14.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.1044, allocations: 0 / 466 MB, free: 14.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1044, allocations: 0 / 466 MB, free: 14.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.779e-06/0.1044, allocations: 4 kB / 466 MB, free: 14.84 MB / 350.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.001225/0.1057, allocations: 0.7471 MB / 466.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.1057, allocations: 11.89 kB / 466.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.874e-05/0.1058, allocations: 62.66 kB / 466.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008708/0.1067, allocations: 104.4 kB / 466.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005402/0.1072, allocations: 411.5 kB / 467.3 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.319e-05/0.1072, allocations: 20.8 kB / 467.4 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.999e-05/0.1073, allocations: 27.92 kB / 467.4 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008071/0.1081, allocations: 446.8 kB / 467.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.1081, allocations: 0 / 467.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.279e-05/0.1082, allocations: 11.98 kB / 467.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.074e-05/0.1082, allocations: 16.42 kB / 467.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000965/0.1092, allocations: 0.5013 MB / 468.4 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002001/0.1112, allocations: 1.674 MB / 470 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009253/0.1121, allocations: 373.1 kB / 470.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003467/0.1125, allocations: 141.6 kB / 470.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.172e-05/0.1125, allocations: 7.984 kB / 470.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005137/0.1131, allocations: 290.9 kB / 470.8 MB, free: 9.742 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.134e-06/0.1131, allocations: 0 / 470.8 MB, free: 9.742 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.001282/0.1144, allocations: 0.5196 MB / 471.3 MB, free: 9.219 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001331/0.1145, allocations: 298.7 kB / 471.6 MB, free: 8.859 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003377/0.1148, allocations: 340.7 kB / 472 MB, free: 8.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.066e-05/0.1149, allocations: 37.69 kB / 472 MB, free: 8.477 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001255/0.115, allocations: 196.4 kB / 472.2 MB, free: 8.277 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.417e-05/0.1151, allocations: 98.64 kB / 472.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.1152, allocations: 73.69 kB / 472.4 MB, free: 8.102 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1154, allocations: 346.8 kB / 472.7 MB, free: 7.754 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003589/0.1157, allocations: 143.9 kB / 472.8 MB, free: 7.613 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004438/0.1162, allocations: 279.9 kB / 473.1 MB, free: 7.281 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008108/0.117, allocations: 466.3 kB / 473.6 MB, free: 6.762 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.117, allocations: 4 kB / 473.6 MB, free: 6.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000993/0.118, allocations: 0.518 MB / 474.1 MB, free: 6.227 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.827e-05/0.1181, allocations: 33.7 kB / 474.1 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.1181, allocations: 4 kB / 474.1 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.1181, allocations: 4 kB / 474.1 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003111/0.1184, allocations: 91.81 kB / 474.2 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.248e-05/0.1185, allocations: 8 kB / 474.2 MB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002644/0.1187, allocations: 51.97 kB / 474.3 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.962e-05/0.1188, allocations: 19.94 kB / 474.3 MB, free: 6.012 MB / 350.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.0001866/0.119, allocations: 197.6 kB / 474.5 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.833e-05/0.119, allocations: 43.41 kB / 474.5 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001163/0.1192, allocations: 55.14 kB / 474.6 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.922e-06/0.1192, allocations: 8 kB / 474.6 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.1192, allocations: 0 / 474.6 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.1192, allocations: 4 kB / 474.6 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008077/0.12, allocations: 1.034 MB / 475.6 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.12, allocations: 0 / 475.6 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002465/0.1203, allocations: 60.14 kB / 475.7 MB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.932e-06/0.1203, allocations: 8 kB / 475.7 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.365e-05/0.1203, allocations: 15.94 kB / 475.7 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.1203, allocations: 3.984 kB / 475.7 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.1203, allocations: 7.938 kB / 475.7 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009549/0.1213, allocations: 463.4 kB / 476.2 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.926e-05/0.1214, allocations: 116.7 kB / 476.3 MB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.736e-05/0.1215, allocations: 16 kB / 476.3 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002231/0.1217, allocations: 27.97 kB / 476.3 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.097e-05/0.1218, allocations: 35.91 kB / 476.4 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.622e-05/0.1219, allocations: 11.98 kB / 476.4 MB, free: 3.773 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000246/0.1221, allocations: 239 kB / 476.6 MB, free: 3.543 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1221, allocations: 0 / 476.6 MB, free: 3.543 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003925/0.1225, allocations: 83.91 kB / 476.7 MB, free: 3.461 MB / 350.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.002039/0.1246, allocations: 1.357 MB / 478.1 MB, free: 2.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00092/0.1255, allocations: 447.4 kB / 478.5 MB, free: 1.781 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1255, allocations: 0 / 478.5 MB, free: 1.781 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004393/0.126, allocations: 199.2 kB / 478.7 MB, free: 1.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004498/0.1264, allocations: 79.23 kB / 478.8 MB, free: 1.512 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004848/0.1313, allocations: 3.683 MB / 482.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003543/0.1317, allocations: 0.8034 MB / 483.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002441/0.1319, allocations: 87.19 kB / 483.3 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001802/0.1321, allocations: 131.4 kB / 483.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1321, allocations: 0 / 483.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03144/0.1636, allocations: 8.24 MB / 491.7 MB, free: 4.426 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.324/7.488, allocations: 0 / 491.7 MB, free: 4.426 MB / 366.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/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)