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.002157/0.002157, allocations: 112.8 kB / 17.06 MB, free: 5.996 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.002331/0.002331, allocations: 198.9 kB / 18 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.003/2.003, allocations: 205.1 MB / 223.9 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1714/0.1714, allocations: 37.98 MB / 309.2 MB, free: 5.953 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.001411/0.001411, allocations: 63.91 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09338/0.0948, allocations: 55.25 MB / 486.6 MB, free: 8.84 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.005636/0.1005, allocations: 3.677 MB / 490.3 MB, free: 5.141 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00335/0.1039, allocations: 1.973 MB / 492.3 MB, free: 3.156 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002332/0.1041, allocations: 11.94 kB / 492.3 MB, free: 3.145 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008356/0.105, allocations: 238.9 kB / 492.5 MB, free: 2.91 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.0006808/0.1057, allocations: 282.8 kB / 492.8 MB, free: 2.633 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006212/0.1063, allocations: 255.3 kB / 493 MB, free: 2.383 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006081/0.1069, allocations: 0.5299 MB / 493.6 MB, free: 1.852 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003805/0.1073, allocations: 215.6 kB / 493.8 MB, free: 1.641 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006524/0.108, allocations: 227.2 kB / 494 MB, free: 1.418 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004846/0.1085, allocations: 219.1 kB / 494.2 MB, free: 1.203 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.093e-05/0.1086, allocations: 36 kB / 494.2 MB, free: 1.168 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006509/0.1093, allocations: 403.2 kB / 494.6 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.1094, allocations: 123.7 kB / 494.8 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001985/0.1096, allocations: 191 kB / 494.9 MB, free: 476 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008195/0.1105, allocations: 0.6314 MB / 495.6 MB, free: 15.83 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.1105, allocations: 0 / 495.6 MB, free: 15.83 MB / 382.1 MB Notification: Performance of FrontEnd: time 6.261e-06/0.1105, allocations: 4 kB / 495.6 MB, free: 15.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.579e-05/0.1105, allocations: 3.938 kB / 495.6 MB, free: 15.82 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.001317/0.1118, allocations: 0.7353 MB / 496.3 MB, free: 15.04 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.1119, allocations: 15.89 kB / 496.3 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.201e-05/0.112, allocations: 62.66 kB / 496.4 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009733/0.113, allocations: 104.4 kB / 496.5 MB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006448/0.1136, allocations: 411.6 kB / 496.9 MB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.845e-05/0.1137, allocations: 32.73 kB / 496.9 MB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.803e-05/0.1137, allocations: 27.88 kB / 497 MB, free: 14.35 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008558/0.1146, allocations: 442.8 kB / 497.4 MB, free: 13.89 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.1146, allocations: 8 kB / 497.4 MB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.629e-05/0.1146, allocations: 7.984 kB / 497.4 MB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.984e-05/0.1147, allocations: 24.42 kB / 497.4 MB, free: 13.85 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000994/0.1157, allocations: 0.4934 MB / 497.9 MB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001987/0.1177, allocations: 1.682 MB / 499.6 MB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009165/0.1186, allocations: 372.9 kB / 500 MB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003368/0.119, allocations: 145.6 kB / 0.4884 GB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.63e-05/0.119, allocations: 4 kB / 0.4884 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005495/0.1196, allocations: 290.9 kB / 0.4887 GB, free: 10.72 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 2.485e-06/0.1196, allocations: 0 / 0.4887 GB, free: 10.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.001243/0.1208, allocations: 0.5208 MB / 0.4892 GB, free: 10.19 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001292/0.121, allocations: 294.7 kB / 0.4895 GB, free: 9.836 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003578/0.1213, allocations: 336.7 kB / 0.4898 GB, free: 9.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.548e-05/0.1214, allocations: 37.7 kB / 0.4898 GB, free: 9.457 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001369/0.1215, allocations: 196.4 kB / 0.49 GB, free: 9.258 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.977e-05/0.1216, allocations: 98.64 kB / 0.4901 GB, free: 9.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001132/0.1217, allocations: 77.59 kB / 0.4902 GB, free: 9.078 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.1219, allocations: 346.8 kB / 0.4905 GB, free: 8.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003397/0.1222, allocations: 139.9 kB / 0.4906 GB, free: 8.594 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004103/0.1226, allocations: 280.8 kB / 0.4909 GB, free: 8.258 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007655/0.1234, allocations: 453.7 kB / 0.4913 GB, free: 7.75 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.1234, allocations: 0 / 0.4913 GB, free: 7.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000984/0.1244, allocations: 0.5259 MB / 0.4918 GB, free: 7.211 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.324e-05/0.1244, allocations: 33.7 kB / 0.4919 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.1245, allocations: 4 kB / 0.4919 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.1245, allocations: 4 kB / 0.4919 GB, free: 7.164 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003116/0.1248, allocations: 87.88 kB / 0.492 GB, free: 7.078 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.325e-05/0.1248, allocations: 11.94 kB / 0.492 GB, free: 7.066 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002674/0.1251, allocations: 47.88 kB / 0.492 GB, free: 7.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.938e-05/0.1251, allocations: 20 kB / 0.492 GB, free: 7 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.0001804/0.1253, allocations: 193.7 kB / 0.4922 GB, free: 6.801 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.249e-05/0.1254, allocations: 43.45 kB / 0.4923 GB, free: 6.758 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.631e-05/0.1255, allocations: 47.17 kB / 0.4923 GB, free: 6.707 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-06/0.1255, allocations: 4 kB / 0.4923 GB, free: 6.703 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.1255, allocations: 4 kB / 0.4923 GB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.363e-06/0.1255, allocations: 3.938 kB / 0.4923 GB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008006/0.1263, allocations: 1.038 MB / 0.4933 GB, free: 5.578 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.1264, allocations: 4 kB / 0.4933 GB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002426/0.1266, allocations: 63.89 kB / 0.4934 GB, free: 5.512 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.1266, allocations: 4.188 kB / 0.4934 GB, free: 5.508 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.508e-05/0.1266, allocations: 12 kB / 0.4934 GB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.1267, allocations: 4 kB / 0.4934 GB, free: 5.492 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/0.1267, allocations: 11.86 kB / 0.4934 GB, free: 5.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008532/0.1275, allocations: 460.4 kB / 0.4939 GB, free: 4.988 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.622e-05/0.1276, allocations: 112.7 kB / 0.494 GB, free: 4.859 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.356e-05/0.1277, allocations: 20 kB / 0.494 GB, free: 4.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002072/0.1279, allocations: 23.97 kB / 0.494 GB, free: 4.816 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.307e-05/0.128, allocations: 43.83 kB / 0.4941 GB, free: 4.773 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.734e-05/0.128, allocations: 15.98 kB / 0.4941 GB, free: 4.758 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000227/0.1283, allocations: 235 kB / 0.4943 GB, free: 4.527 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1283, allocations: 0 / 0.4943 GB, free: 4.527 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003973/0.1287, allocations: 91.84 kB / 0.4944 GB, free: 4.438 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.002117/0.1308, allocations: 1.342 MB / 0.4957 GB, free: 3.039 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009397/0.1317, allocations: 415.9 kB / 0.4961 GB, free: 2.621 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.1318, allocations: 4 kB / 0.4961 GB, free: 2.617 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004491/0.1322, allocations: 199.8 kB / 0.4963 GB, free: 2.422 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004492/0.1327, allocations: 73.94 kB / 0.4964 GB, free: 2.352 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004844/0.1375, allocations: 3.68 MB / 0.5 GB, free: 14.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003497/0.1379, allocations: 0.8034 MB / 0.5007 GB, free: 13.59 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002316/0.1381, allocations: 99.17 kB / 0.5008 GB, free: 13.5 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00018/0.1383, allocations: 115.4 kB / 0.501 GB, free: 13.38 MB / 398.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1383, allocations: 0 / 0.501 GB, free: 13.38 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02658/0.1649, allocations: 8.498 MB / 0.5093 GB, free: 4.789 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.759/7.924, allocations: 23.7 kB / 0.5093 GB, free: 4.766 MB / 398.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)