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.001007/0.001007, allocations: 98.64 kB / 16.5 MB, free: 6.641 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.000978/0.0009781, allocations: 194.3 kB / 17.42 MB, free: 6.066 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.349/1.349, allocations: 205.1 MB / 223.3 MB, free: 12.46 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1694/0.1694, allocations: 37.99 MB / 308.6 MB, free: 6.246 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.001495/0.001495, allocations: 63.59 kB / 374.7 MB, free: 4.027 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2188/0.2203, allocations: 55.24 MB / 430 MB, free: 19.79 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.004455/0.2248, allocations: 4.141 MB / 434.1 MB, free: 15.63 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002211/0.2271, allocations: 2.102 MB / 436.2 MB, free: 13.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001964/0.2273, allocations: 19.88 kB / 436.2 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007165/0.228, allocations: 222.3 kB / 436.4 MB, free: 13.28 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004918/0.2285, allocations: 259.1 kB / 436.7 MB, free: 13.03 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004808/0.229, allocations: 243.4 kB / 436.9 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003853/0.2294, allocations: 0.6196 MB / 437.5 MB, free: 12.17 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002947/0.2297, allocations: 211.4 kB / 437.8 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003105/0.23, allocations: 187.2 kB / 437.9 MB, free: 11.78 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001966/0.2302, allocations: 211.2 kB / 438.1 MB, free: 11.57 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.941e-05/0.2303, allocations: 20 kB / 438.2 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005066/0.2308, allocations: 451 kB / 438.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.809e-05/0.2309, allocations: 111.6 kB / 438.7 MB, free: 11 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001183/0.231, allocations: 171.1 kB / 438.9 MB, free: 10.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004943/0.2315, allocations: 0.6349 MB / 439.5 MB, free: 10.2 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2315, allocations: 0 / 439.5 MB, free: 10.2 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.2315, allocations: 0 / 439.5 MB, free: 10.2 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.2315, allocations: 0 / 439.5 MB, free: 10.2 MB / 318.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.001058/0.2326, allocations: 0.7471 MB / 440.3 MB, free: 9.398 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.2327, allocations: 12.03 kB / 440.3 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.851e-05/0.2327, allocations: 62.72 kB / 440.3 MB, free: 9.316 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008398/0.2336, allocations: 104.4 kB / 440.4 MB, free: 9.215 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004213/0.234, allocations: 403.6 kB / 440.8 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.979e-05/0.234, allocations: 20.81 kB / 440.8 MB, free: 8.758 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.062e-05/0.2341, allocations: 27.92 kB / 440.9 MB, free: 8.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006716/0.2347, allocations: 442.8 kB / 441.3 MB, free: 8.273 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.2348, allocations: 0 / 441.3 MB, free: 8.273 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.296e-05/0.2348, allocations: 8 kB / 441.3 MB, free: 8.266 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.805e-05/0.2348, allocations: 20.42 kB / 441.3 MB, free: 8.246 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008087/0.2357, allocations: 0.5013 MB / 441.8 MB, free: 7.742 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001556/0.2372, allocations: 1.682 MB / 443.5 MB, free: 5.965 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007871/0.238, allocations: 361.1 kB / 443.9 MB, free: 5.594 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002892/0.2383, allocations: 145.6 kB / 444 MB, free: 5.445 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.432e-05/0.2384, allocations: 4 kB / 444 MB, free: 5.441 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004465/0.2388, allocations: 290.8 kB / 444.3 MB, free: 5.117 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 1.903e-06/0.2388, allocations: 3.938 kB / 444.3 MB, free: 5.113 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001121/0.24, allocations: 0.5215 MB / 444.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.271e-05/0.24, allocations: 302.7 kB / 445.1 MB, free: 4.223 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002919/0.2403, allocations: 324.5 kB / 445.4 MB, free: 3.895 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.086e-05/0.2404, allocations: 46.05 kB / 445.5 MB, free: 3.844 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.299e-05/0.2405, allocations: 192.3 kB / 445.7 MB, free: 3.648 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.864e-05/0.2405, allocations: 102.6 kB / 445.8 MB, free: 3.547 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.02e-05/0.2406, allocations: 73.62 kB / 445.8 MB, free: 3.469 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.905e-05/0.2407, allocations: 350.8 kB / 446.2 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003073/0.241, allocations: 131.9 kB / 446.3 MB, free: 2.988 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003411/0.2414, allocations: 284.9 kB / 446.6 MB, free: 2.648 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006362/0.242, allocations: 457.7 kB / 447 MB, free: 2.137 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.242, allocations: 0 / 447 MB, free: 2.137 MB / 318.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000842/0.2429, allocations: 0.5203 MB / 447.6 MB, free: 1.605 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.287e-05/0.2429, allocations: 37.7 kB / 447.6 MB, free: 1.562 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.2429, allocations: 4 kB / 447.6 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.243, allocations: 8 kB / 447.6 MB, free: 1.551 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002892/0.2432, allocations: 87.81 kB / 447.7 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.2433, allocations: 8 kB / 447.7 MB, free: 1.457 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002535/0.2435, allocations: 47.72 kB / 447.7 MB, free: 1.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.771e-05/0.2436, allocations: 20.16 kB / 447.8 MB, free: 1.391 MB / 318.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.0001503/0.2437, allocations: 193.6 kB / 448 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.17e-05/0.2438, allocations: 39.55 kB / 448 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.619e-05/0.2439, allocations: 51.16 kB / 448 MB, free: 1.105 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.2439, allocations: 4 kB / 448 MB, free: 1.102 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.2439, allocations: 4 kB / 448.1 MB, free: 1.098 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.2439, allocations: 11.97 kB / 448.1 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006376/0.2446, allocations: 1.023 MB / 449.1 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.2446, allocations: 7.938 kB / 449.1 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002355/0.2448, allocations: 59.95 kB / 449.2 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.139e-06/0.2448, allocations: 4.188 kB / 449.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.557e-05/0.2449, allocations: 15.98 kB / 449.2 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.322e-06/0.2449, allocations: 11.94 kB / 449.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.2449, allocations: 7.938 kB / 449.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008565/0.2457, allocations: 463.3 kB / 449.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.388e-05/0.2458, allocations: 116.7 kB / 449.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.234e-05/0.2459, allocations: 19.94 kB / 449.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002102/0.2461, allocations: 23.97 kB / 449.8 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.388e-05/0.2462, allocations: 35.89 kB / 449.8 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.897e-05/0.2462, allocations: 16 kB / 449.9 MB, free: 15.15 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002359/0.2465, allocations: 235 kB / 450.1 MB, free: 14.93 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2465, allocations: 0 / 450.1 MB, free: 14.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004126/0.2469, allocations: 95.83 kB / 450.2 MB, free: 14.83 MB / 334.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.0021/0.249, allocations: 1.356 MB / 451.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008653/0.2499, allocations: 415.6 kB / 451.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.2499, allocations: 0 / 451.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004501/0.2504, allocations: 195.7 kB / 452.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004739/0.2509, allocations: 74.23 kB / 452.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005472/0.2563, allocations: 3.808 MB / 456 MB, free: 8.746 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003993/0.2568, allocations: 0.8073 MB / 456.8 MB, free: 7.91 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002686/0.257, allocations: 83.22 kB / 456.9 MB, free: 7.824 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002041/0.2573, allocations: 119.4 kB / 457 MB, free: 7.707 MB / 334.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2573, allocations: 0 / 457 MB, free: 7.707 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02293/0.2802, allocations: 7.856 MB / 464.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002916/0.2805, allocations: 244.4 kB / 465.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.802/2.082, allocations: 0 / 465.1 MB, free: 15.56 MB / 350.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)