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.0009366/0.0009366, allocations: 89.17 kB / 16.65 MB, free: 6.59 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.001072/0.001072, allocations: 181.6 kB / 17.56 MB, free: 6.203 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.322/1.322, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1676/0.1676, allocations: 38.06 MB / 310.1 MB, free: 5.902 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.000505/0.000505, allocations: 18.81 kB / 377.3 MB, free: 2.605 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2236/0.2241, allocations: 56.31 MB / 433.6 MB, free: 18.65 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.003393/0.2275, allocations: 3.756 MB / 437.3 MB, free: 14.88 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002211/0.2297, allocations: 2.075 MB / 439.4 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000166/0.2299, allocations: 19.88 kB / 439.4 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002959/0.2302, allocations: 67.67 kB / 439.5 MB, free: 12.7 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004269/0.2307, allocations: 247.1 kB / 439.7 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004173/0.2311, allocations: 241.9 kB / 440 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004228/0.2315, allocations: 0.6196 MB / 440.6 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005488/0.2321, allocations: 388.2 kB / 441 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003353/0.2324, allocations: 179.2 kB / 441.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002209/0.2327, allocations: 203.2 kB / 441.3 MB, free: 10.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.381e-05/0.2327, allocations: 20 kB / 441.4 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004913/0.2332, allocations: 451 kB / 441.8 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.742e-05/0.2333, allocations: 107.6 kB / 441.9 MB, free: 10.27 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000119/0.2334, allocations: 180.8 kB / 442.1 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005064/0.234, allocations: 0.6269 MB / 442.7 MB, free: 9.457 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.234, allocations: 0 / 442.7 MB, free: 9.457 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.234, allocations: 0 / 442.7 MB, free: 9.457 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.234, allocations: 0 / 442.7 MB, free: 9.457 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.001018/0.235, allocations: 0.6888 MB / 443.4 MB, free: 8.715 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.2351, allocations: 8.031 kB / 443.4 MB, free: 8.707 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.378e-05/0.2351, allocations: 54.73 kB / 443.5 MB, free: 8.645 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007881/0.2359, allocations: 120.4 kB / 443.6 MB, free: 8.527 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004387/0.2364, allocations: 395.7 kB / 444 MB, free: 8.102 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.236e-05/0.2364, allocations: 20.75 kB / 444 MB, free: 8.078 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.412e-05/0.2364, allocations: 23.94 kB / 444 MB, free: 8.055 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007094/0.2372, allocations: 458.8 kB / 444.5 MB, free: 7.582 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.2372, allocations: 3.938 kB / 444.5 MB, free: 7.578 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.43e-05/0.2372, allocations: 8 kB / 444.5 MB, free: 7.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.816e-05/0.2373, allocations: 20.42 kB / 444.5 MB, free: 7.551 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008546/0.2381, allocations: 0.5208 MB / 445 MB, free: 7.027 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001595/0.2397, allocations: 1.689 MB / 446.7 MB, free: 5.242 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008381/0.2406, allocations: 389 kB / 447.1 MB, free: 4.844 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003213/0.2409, allocations: 153.6 kB / 447.2 MB, free: 4.688 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.478e-05/0.241, allocations: 12 kB / 447.2 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004692/0.2414, allocations: 302.9 kB / 447.5 MB, free: 4.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 2.535e-06/0.2414, allocations: 3.984 kB / 447.5 MB, free: 4.336 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001213/0.2427, allocations: 0.5597 MB / 448.1 MB, free: 3.77 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.46e-05/0.2427, allocations: 299 kB / 448.4 MB, free: 3.41 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002811/0.243, allocations: 332.5 kB / 448.7 MB, free: 3.074 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.909e-05/0.2431, allocations: 33.7 kB / 448.8 MB, free: 3.035 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.551e-05/0.2432, allocations: 200.3 kB / 449 MB, free: 2.832 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.687e-05/0.2432, allocations: 98.64 kB / 449 MB, free: 2.734 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.645e-05/0.2433, allocations: 41.69 kB / 449.1 MB, free: 2.688 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.944e-05/0.2434, allocations: 346.8 kB / 449.4 MB, free: 2.34 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003364/0.2437, allocations: 159.9 kB / 449.6 MB, free: 2.184 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003579/0.2441, allocations: 288.9 kB / 449.9 MB, free: 1.84 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006788/0.2448, allocations: 481.7 kB / 450.3 MB, free: 1.305 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.2448, allocations: 4 kB / 450.3 MB, free: 1.301 MB / 318.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008711/0.2456, allocations: 0.5389 MB / 450.9 MB, free: 0.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.01e-05/0.2457, allocations: 37.69 kB / 450.9 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.2457, allocations: 4 kB / 450.9 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.2457, allocations: 8 kB / 450.9 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000291/0.246, allocations: 96.14 kB / 451 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.246, allocations: 15.97 kB / 451 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000268/0.2463, allocations: 43.73 kB / 451.1 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.641e-05/0.2463, allocations: 23.98 kB / 451.1 MB, free: 0.5195 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.0001511/0.2465, allocations: 193.6 kB / 451.3 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.877e-05/0.2466, allocations: 35.56 kB / 451.3 MB, free: 292 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.601e-05/0.2467, allocations: 55.16 kB / 451.4 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.2467, allocations: 4 kB / 451.4 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.2467, allocations: 4 kB / 451.4 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.2467, allocations: 4 kB / 451.4 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007666/0.2475, allocations: 1.027 MB / 452.4 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.2475, allocations: 4 kB / 452.4 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002415/0.2477, allocations: 67.89 kB / 452.5 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.2477, allocations: 4 kB / 452.5 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.428e-05/0.2478, allocations: 12 kB / 452.5 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.2478, allocations: 4.125 kB / 452.5 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.2478, allocations: 11.94 kB / 452.5 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009212/0.2487, allocations: 499.2 kB / 453 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.858e-05/0.2488, allocations: 116.7 kB / 453.1 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.638e-05/0.2489, allocations: 11.94 kB / 453.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002203/0.2491, allocations: 31.97 kB / 453.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.595e-05/0.2492, allocations: 43.89 kB / 453.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-05/0.2492, allocations: 12 kB / 453.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002405/0.2495, allocations: 235 kB / 453.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2495, allocations: 0 / 453.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004217/0.2499, allocations: 95.83 kB / 453.5 MB, free: 13.93 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.002237/0.2522, allocations: 1.384 MB / 454.9 MB, free: 12.55 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009755/0.2531, allocations: 435.4 kB / 455.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.2532, allocations: 0 / 455.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004629/0.2536, allocations: 208.7 kB / 455.6 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005781/0.2542, allocations: 78.61 kB / 455.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00563/0.2599, allocations: 3.883 MB / 459.5 MB, free: 7.707 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003737/0.2603, allocations: 0.8073 MB / 460.3 MB, free: 6.871 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002549/0.2605, allocations: 95.17 kB / 460.4 MB, free: 6.777 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001859/0.2607, allocations: 115.4 kB / 460.5 MB, free: 6.664 MB / 334.1 MB Notification: Performance of SimCode: time 8.42e-07/0.2607, allocations: 0 / 460.5 MB, free: 6.664 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02184/0.2826, allocations: 7.603 MB / 468.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001811/0.2828, allocations: 243.8 kB / 468.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.848/2.131, allocations: 0 / 468.4 MB, free: 14.79 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)