Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") translateModel(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009004/0.0009005, allocations: 169 kB / 16.07 MB, free: 5.562 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.209/1.209, allocations: 205.4 MB / 222.2 MB, free: 13.6 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006939/0.0006939, allocations: 90.3 kB / 270.6 MB, free: 13.12 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1606/0.1606, allocations: 38.07 MB / 356.9 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003302/0.0003302, allocations: 16 kB / 423.3 MB, free: 26.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08216/0.0825, allocations: 56.33 MB / 479.6 MB, free: 1.688 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.003797/0.08633, allocations: 3.616 MB / 483.2 MB, free: 14.05 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002395/0.08875, allocations: 1.967 MB / 485.2 MB, free: 12.07 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001634/0.08893, allocations: 15.88 kB / 485.2 MB, free: 12.06 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002977/0.08924, allocations: 75.47 kB / 485.3 MB, free: 11.98 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005284/0.08978, allocations: 274.8 kB / 485.6 MB, free: 11.71 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004924/0.09028, allocations: 234.8 kB / 485.8 MB, free: 11.49 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004845/0.09078, allocations: 0.5259 MB / 486.3 MB, free: 10.96 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005681/0.09136, allocations: 376.4 kB / 486.7 MB, free: 10.58 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003137/0.09168, allocations: 179.2 kB / 486.9 MB, free: 10.4 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000228/0.09192, allocations: 195.3 kB / 487.1 MB, free: 10.21 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.824e-05/0.09197, allocations: 16 kB / 487.1 MB, free: 10.2 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005616/0.09253, allocations: 427 kB / 487.5 MB, free: 9.777 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.648e-05/0.09264, allocations: 103.7 kB / 487.6 MB, free: 9.676 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000166/0.09282, allocations: 180.8 kB / 487.8 MB, free: 9.492 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000476/0.0933, allocations: 478.9 kB / 488.2 MB, free: 9.023 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.09331, allocations: 0 / 488.2 MB, free: 9.023 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.09332, allocations: 0 / 488.2 MB, free: 9.023 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.616e-06/0.09333, allocations: 0 / 488.2 MB, free: 9.023 MB / 330.7 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.001009/0.09435, allocations: 0.6927 MB / 488.9 MB, free: 8.277 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.036e-05/0.09439, allocations: 8.031 kB / 488.9 MB, free: 8.27 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007363/0.09513, allocations: 108.4 kB / 489 MB, free: 8.164 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004906/0.09563, allocations: 403.6 kB / 489.4 MB, free: 7.727 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.675e-05/0.09567, allocations: 20.81 kB / 489.5 MB, free: 7.703 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.399e-05/0.09572, allocations: 28.12 kB / 489.5 MB, free: 7.676 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007474/0.09647, allocations: 458.8 kB / 489.9 MB, free: 7.203 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.09649, allocations: 3.938 kB / 489.9 MB, free: 7.199 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.351e-05/0.09653, allocations: 11.98 kB / 489.9 MB, free: 7.188 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.883e-05/0.09657, allocations: 12.44 kB / 490 MB, free: 7.176 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009754/0.09755, allocations: 0.5285 MB / 490.5 MB, free: 6.645 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001882/0.09944, allocations: 1.674 MB / 492.2 MB, free: 4.875 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008778/0.1003, allocations: 394 kB / 492.5 MB, free: 4.473 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003258/0.1007, allocations: 153.6 kB / 492.7 MB, free: 4.316 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.282e-05/0.1007, allocations: 11.98 kB / 492.7 MB, free: 4.305 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004962/0.1012, allocations: 298.9 kB / 493 MB, free: 3.973 MB / 330.7 MB Notification: Performance of pre-optimization done (n=31): time 1.973e-06/0.1012, allocations: 0 / 493 MB, free: 3.973 MB / 330.7 MB Notification: Performance of matching and sorting (n=31): time 0.001207/0.1025, allocations: 0.56 MB / 493.6 MB, free: 3.406 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001186/0.1026, allocations: 294.7 kB / 493.9 MB, free: 3.051 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003367/0.1029, allocations: 336.3 kB / 494.2 MB, free: 2.711 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.16e-05/0.103, allocations: 37.7 kB / 494.2 MB, free: 2.668 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.1031, allocations: 196.4 kB / 494.4 MB, free: 2.469 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.829e-05/0.1032, allocations: 98.64 kB / 494.5 MB, free: 2.371 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.99e-05/0.1032, allocations: 12 kB / 494.5 MB, free: 2.359 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.1033, allocations: 342.8 kB / 494.9 MB, free: 2.016 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003414/0.1037, allocations: 151.9 kB / 495 MB, free: 1.867 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004012/0.1041, allocations: 289 kB / 495.3 MB, free: 1.523 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000776/0.1049, allocations: 485.6 kB / 495.8 MB, free: 0.9844 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.1049, allocations: 0 / 495.8 MB, free: 0.9844 MB / 330.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009493/0.1058, allocations: 0.5415 MB / 496.3 MB, free: 440 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.092e-05/0.1059, allocations: 37.69 kB / 496.3 MB, free: 396 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.1059, allocations: 4 kB / 496.3 MB, free: 392 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.1059, allocations: 8 kB / 496.3 MB, free: 384 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000303/0.1062, allocations: 87.89 kB / 496.4 MB, free: 296 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.377e-05/0.1063, allocations: 15.92 kB / 496.4 MB, free: 280 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000249/0.1065, allocations: 55.77 kB / 496.5 MB, free: 224 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.99e-05/0.1065, allocations: 19.98 kB / 496.5 MB, free: 204 kB / 330.7 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 ($whenCondition2,$PRE.windFarm.wind.nextTimeEvent,$whenCondition1,windFarm.wind.nextTimeEvent,$PRE.windFarm.wind.nextTimeEventScaled,windFarm.wind.nextTimeEventScaled,$PRE.windFarm.disturbance.T_start,windFarm.disturbance.T_start,$PRE.windFarm.disturbance.count,windFarm.disturbance.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001902/0.1067, allocations: 185.8 kB / 496.7 MB, free: 8 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.046e-05/0.1068, allocations: 43.52 kB / 496.7 MB, free: 15.96 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.055e-05/0.1069, allocations: 51.09 kB / 496.8 MB, free: 15.92 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.1069, allocations: 4 kB / 496.8 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.246e-05/0.1069, allocations: 4 kB / 496.8 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.107, allocations: 8 kB / 496.8 MB, free: 15.9 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007881/0.1078, allocations: 1.027 MB / 497.8 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.1078, allocations: 12.12 kB / 497.8 MB, free: 14.79 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002377/0.108, allocations: 63.89 kB / 497.9 MB, free: 14.72 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.108, allocations: 4 kB / 497.9 MB, free: 14.72 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.337e-05/0.1081, allocations: 12 kB / 497.9 MB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.1081, allocations: 0 / 497.9 MB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.1081, allocations: 11.88 kB / 497.9 MB, free: 14.7 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008492/0.1089, allocations: 499.2 kB / 498.4 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.211e-05/0.109, allocations: 120.6 kB / 498.5 MB, free: 14.03 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.718e-05/0.1091, allocations: 20 kB / 498.6 MB, free: 14.01 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002054/0.1093, allocations: 31.97 kB / 498.6 MB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.893e-05/0.1094, allocations: 35.83 kB / 498.6 MB, free: 13.94 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.746e-05/0.1094, allocations: 19.98 kB / 498.6 MB, free: 13.92 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002249/0.1097, allocations: 231.1 kB / 498.9 MB, free: 13.7 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1097, allocations: 0 / 498.9 MB, free: 13.7 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003583/0.11, allocations: 91.89 kB / 499 MB, free: 13.61 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008647/0.1109, allocations: 463.2 kB / 499.4 MB, free: 13.21 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008248/0.1117, allocations: 431.6 kB / 499.8 MB, free: 12.77 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.1117, allocations: 0 / 499.8 MB, free: 12.77 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000408/0.1122, allocations: 208.5 kB / 0.4883 GB, free: 12.57 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004476/0.1126, allocations: 65.05 kB / 0.4884 GB, free: 12.5 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001112/0.1137, allocations: 0.8377 MB / 0.4892 GB, free: 11.61 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003373/0.1141, allocations: 0.8076 MB / 0.49 GB, free: 10.78 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.1142, allocations: 39.42 kB / 0.49 GB, free: 10.74 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.1142, allocations: 0 / 0.49 GB, free: 10.74 MB / 346.7 MB Notification: Performance of Templates: time 0.0069/0.1211, allocations: 5.342 MB / 0.4952 GB, free: 5.391 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1)