Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,fileNamePrefix="PowerSystems_latest_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.001088/0.001088, allocations: 108 kB / 16.92 MB, free: 6.332 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.001141/0.001141, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.3/1.3, allocations: 222.9 MB / 241.6 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1706/0.1706, allocations: 38.04 MB / 329.7 MB, free: 8.867 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 61 kB / 398.9 MB, free: 34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09734/0.09864, allocations: 58.06 MB / 457 MB, free: 7.988 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.005816/0.1045, allocations: 3.676 MB / 460.7 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003149/0.1077, allocations: 2.05 MB / 462.7 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003347/0.108, allocations: 11.94 kB / 462.7 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008812/0.109, allocations: 242.9 kB / 462.9 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007042/0.1097, allocations: 278.8 kB / 463.2 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007549/0.1104, allocations: 284.8 kB / 463.5 MB, free: 1.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005445/0.111, allocations: 0.5222 MB / 464 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003463/0.1113, allocations: 223.5 kB / 464.2 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003721/0.1117, allocations: 219.2 kB / 464.5 MB, free: 480 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002598/0.112, allocations: 215.3 kB / 464.7 MB, free: 264 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.448e-05/0.1121, allocations: 40 kB / 464.7 MB, free: 224 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000595/0.1127, allocations: 403.1 kB / 465.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.1128, allocations: 123.6 kB / 465.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001811/0.113, allocations: 187.1 kB / 465.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007046/0.1137, allocations: 0.631 MB / 466 MB, free: 14.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1137, allocations: 0 / 466 MB, free: 14.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1137, allocations: 0 / 466 MB, free: 14.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.277e-05/0.1137, allocations: 0 / 466 MB, free: 14.89 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.001201/0.1149, allocations: 0.7432 MB / 466.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.115, allocations: 15.89 kB / 466.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.138e-05/0.1151, allocations: 62.72 kB / 466.9 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008246/0.1159, allocations: 104.4 kB / 467 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005135/0.1164, allocations: 403.5 kB / 467.3 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.574e-05/0.1165, allocations: 24.8 kB / 467.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.931e-05/0.1165, allocations: 23.94 kB / 467.4 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000832/0.1173, allocations: 438.8 kB / 467.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.1174, allocations: 7.938 kB / 467.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.69e-05/0.1174, allocations: 11.98 kB / 467.8 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.413e-05/0.1175, allocations: 20.44 kB / 467.9 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001019/0.1185, allocations: 0.4934 MB / 468.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002093/0.1206, allocations: 1.682 MB / 470 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009598/0.1216, allocations: 373 kB / 470.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003438/0.1219, allocations: 141.6 kB / 470.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.488e-05/0.122, allocations: 4 kB / 470.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005101/0.1225, allocations: 286.9 kB / 470.8 MB, free: 9.797 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.244e-06/0.1225, allocations: 0 / 470.8 MB, free: 9.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.001282/0.1238, allocations: 0.5271 MB / 471.4 MB, free: 9.266 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/0.1239, allocations: 299.3 kB / 471.6 MB, free: 8.906 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003405/0.1243, allocations: 332.4 kB / 472 MB, free: 8.574 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.589e-05/0.1243, allocations: 37.7 kB / 472 MB, free: 8.531 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.1244, allocations: 196.4 kB / 472.2 MB, free: 8.332 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.058e-05/0.1245, allocations: 106.6 kB / 472.3 MB, free: 8.227 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.1246, allocations: 65.7 kB / 472.4 MB, free: 8.156 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.1248, allocations: 350.8 kB / 472.7 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003815/0.1252, allocations: 143.9 kB / 472.8 MB, free: 7.664 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004172/0.1256, allocations: 283.9 kB / 473.1 MB, free: 7.328 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007866/0.1264, allocations: 474.3 kB / 473.6 MB, free: 6.801 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1264, allocations: 0 / 473.6 MB, free: 6.801 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001001/0.1274, allocations: 0.5063 MB / 474.1 MB, free: 6.281 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.042e-05/0.1274, allocations: 44.03 kB / 474.1 MB, free: 6.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.1275, allocations: 4 kB / 474.1 MB, free: 6.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.1275, allocations: 8 kB / 474.2 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003154/0.1278, allocations: 84.2 kB / 474.2 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.1278, allocations: 12 kB / 474.2 MB, free: 6.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002684/0.1281, allocations: 47.66 kB / 474.3 MB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.104e-05/0.1281, allocations: 20 kB / 474.3 MB, free: 6.062 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.0001963/0.1283, allocations: 205.5 kB / 474.5 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.198e-05/0.1284, allocations: 43.41 kB / 474.6 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.272e-05/0.1285, allocations: 51.16 kB / 474.6 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.1285, allocations: 4 kB / 474.6 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.1285, allocations: 11.98 kB / 474.6 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.1286, allocations: 4 kB / 474.6 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008339/0.1294, allocations: 1.023 MB / 475.6 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/0.1294, allocations: 8.188 kB / 475.7 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002412/0.1297, allocations: 59.91 kB / 475.7 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.1297, allocations: 7.984 kB / 475.7 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.295e-05/0.1297, allocations: 8 kB / 475.7 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.1297, allocations: 7.938 kB / 475.7 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.1297, allocations: 7.938 kB / 475.7 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009256/0.1307, allocations: 467.3 kB / 476.2 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.72e-05/0.1308, allocations: 108.7 kB / 476.3 MB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.658e-05/0.1308, allocations: 15.98 kB / 476.3 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002223/0.1311, allocations: 27.91 kB / 476.3 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.1312, allocations: 35.91 kB / 476.4 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.338e-05/0.1312, allocations: 19.98 kB / 476.4 MB, free: 3.816 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002431/0.1315, allocations: 235.1 kB / 476.6 MB, free: 3.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1315, allocations: 0 / 476.6 MB, free: 3.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004122/0.1319, allocations: 87.89 kB / 476.7 MB, free: 3.504 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.002125/0.134, allocations: 1.355 MB / 478.1 MB, free: 2.273 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009173/0.135, allocations: 442.8 kB / 478.5 MB, free: 1.828 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.135, allocations: 0 / 478.5 MB, free: 1.828 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004714/0.1355, allocations: 211.8 kB / 478.7 MB, free: 1.625 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004791/0.136, allocations: 74.95 kB / 478.8 MB, free: 1.555 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005331/0.1413, allocations: 3.687 MB / 482.5 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003865/0.1417, allocations: 0.7995 MB / 483.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002481/0.142, allocations: 87.2 kB / 483.4 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001962/0.1422, allocations: 119.4 kB / 483.5 MB, free: 12.59 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1422, allocations: 0 / 483.5 MB, free: 12.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02949/0.1717, allocations: 8.255 MB / 491.7 MB, free: 4.473 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.334/7.506, allocations: 8.047 kB / 491.7 MB, free: 4.465 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1)