Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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.WindFarmHVDCTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTest",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.001274/0.001275, allocations: 114.3 kB / 17.07 MB, free: 6.008 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.001219/0.001219, allocations: 193.4 kB / 18 MB, free: 5.086 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.469/1.469, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1884/0.1884, allocations: 38.03 MB / 329.9 MB, free: 8.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001967, allocations: 67.89 kB / 457.6 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3374, allocations: 58.05 MB / 0.5036 GB, free: 7.527 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest): time 0.005561/0.343, allocations: 4.245 MB / 0.5078 GB, free: 4.57 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003369/0.3464, allocations: 2.498 MB / 0.5102 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003077/0.3467, allocations: 15.28 kB / 0.5102 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001131/0.3479, allocations: 342.4 kB / 0.5105 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009374/0.3488, allocations: 331.8 kB / 0.5109 GB, free: 2.426 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001186/0.35, allocations: 392.3 kB / 0.5112 GB, free: 2.219 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009228/0.351, allocations: 0.6247 MB / 0.5118 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004934/0.3515, allocations: 225.9 kB / 0.512 GB, free: 1.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006091/0.3521, allocations: 265.6 kB / 0.5123 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003859/0.3525, allocations: 250.7 kB / 0.5125 GB, free: 1.594 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.849e-05/0.3526, allocations: 38.75 kB / 0.5126 GB, free: 1.594 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001159/0.3537, allocations: 0.5384 MB / 0.5131 GB, free: 1.383 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001657/0.3539, allocations: 127.1 kB / 0.5132 GB, free: 1.324 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001997/0.3541, allocations: 199.6 kB / 0.5134 GB, free: 1.191 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001238/0.3554, allocations: 0.7014 MB / 0.5141 GB, free: 0.918 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.3554, allocations: 0 / 0.5141 GB, free: 0.918 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.777e-06/0.3554, allocations: 0 / 0.5141 GB, free: 0.918 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.236e-05/0.3554, allocations: 1.156 kB / 0.5141 GB, free: 0.918 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001438/0.3569, allocations: 0.7807 MB / 0.5149 GB, free: 292 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.3569, allocations: 18.97 kB / 0.5149 GB, free: 284 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.37e-05/0.357, allocations: 64.83 kB / 0.5149 GB, free: 224 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001104/0.3581, allocations: 118.4 kB / 0.5151 GB, free: 192 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006782/0.3588, allocations: 423.8 kB / 0.5155 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.526e-05/0.3589, allocations: 23.27 kB / 0.5155 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.663e-05/0.3589, allocations: 32.66 kB / 0.5155 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000967/0.3599, allocations: 451.3 kB / 0.5159 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.3599, allocations: 2.594 kB / 0.5159 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.724e-05/0.36, allocations: 6.781 kB / 0.516 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.314e-05/0.36, allocations: 27.66 kB / 0.516 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001107/0.3611, allocations: 484.7 kB / 0.5164 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002604/0.3638, allocations: 1.782 MB / 0.5182 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0012/0.365, allocations: 394.8 kB / 0.5186 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000407/0.3654, allocations: 139.1 kB / 0.5187 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.69e-05/0.3655, allocations: 10.91 kB / 0.5187 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006362/0.3661, allocations: 288.7 kB / 0.519 GB, free: 13.71 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 2.165e-06/0.3661, allocations: 0 / 0.519 GB, free: 13.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=30): time 0.001527/0.3677, allocations: 0.5174 MB / 0.5195 GB, free: 13.53 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001667/0.3678, allocations: 244.7 kB / 0.5197 GB, free: 13.24 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004811/0.3683, allocations: 354.9 kB / 0.5201 GB, free: 13.05 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.933e-05/0.3684, allocations: 39.02 kB / 0.5201 GB, free: 13.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001869/0.3686, allocations: 209.3 kB / 0.5203 GB, free: 12.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.3687, allocations: 100.6 kB / 0.5204 GB, free: 12.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001368/0.3688, allocations: 70.34 kB / 0.5205 GB, free: 12.73 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.369, allocations: 348.3 kB / 0.5208 GB, free: 12.4 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000425/0.3695, allocations: 140.7 kB / 0.5209 GB, free: 12.35 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005448/0.37, allocations: 279.7 kB / 0.5212 GB, free: 12.13 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009607/0.371, allocations: 464 kB / 0.5216 GB, free: 11.82 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.371, allocations: 1.406 kB / 0.5216 GB, free: 11.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0013/0.3723, allocations: 0.5249 MB / 0.5221 GB, free: 11.58 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.207e-05/0.3724, allocations: 34.89 kB / 0.5222 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.3724, allocations: 4.531 kB / 0.5222 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.549e-05/0.3724, allocations: 5.625 kB / 0.5222 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004104/0.3728, allocations: 95.23 kB / 0.5223 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.601e-05/0.3729, allocations: 6.984 kB / 0.5223 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003871/0.3733, allocations: 51.27 kB / 0.5223 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.364e-05/0.3733, allocations: 24.17 kB / 0.5224 GB, free: 11.51 MB / 398.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 (44): * Single equations (assignments): 43 * 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.0003245/0.3736, allocations: 197.3 kB / 0.5225 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.315e-05/0.3737, allocations: 41.91 kB / 0.5226 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000126/0.3739, allocations: 49.34 kB / 0.5226 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.799e-06/0.3739, allocations: 5.469 kB / 0.5226 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/0.3739, allocations: 2.109 kB / 0.5226 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.507e-06/0.3739, allocations: 4.141 kB / 0.5226 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001075/0.375, allocations: 0.8556 MB / 0.5235 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.375, allocations: 5.406 kB / 0.5235 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002731/0.3753, allocations: 56.78 kB / 0.5235 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.3753, allocations: 3.5 kB / 0.5235 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.859e-05/0.3754, allocations: 14.84 kB / 0.5236 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.686e-06/0.3754, allocations: 15.66 kB / 0.5236 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.3754, allocations: 1.375 kB / 0.5236 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001022/0.3764, allocations: 467.9 kB / 0.524 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001155/0.3765, allocations: 113.4 kB / 0.5241 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.866e-05/0.3766, allocations: 14.72 kB / 0.5241 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002206/0.3769, allocations: 23.92 kB / 0.5242 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.756e-05/0.377, allocations: 37.28 kB / 0.5242 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.376e-05/0.377, allocations: 15.73 kB / 0.5242 GB, free: 10.19 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003294/0.3773, allocations: 249.9 kB / 0.5245 GB, free: 10.05 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3773, allocations: 0 / 0.5245 GB, free: 10.05 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005273/0.3779, allocations: 97.09 kB / 0.5245 GB, free: 10.03 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (30): * Single equations (assignments): 25 * 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.002979/0.3809, allocations: 1.344 MB / 0.5259 GB, free: 9.141 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001134/0.382, allocations: 429.2 kB / 0.5263 GB, free: 8.953 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.382, allocations: 0 / 0.5263 GB, free: 8.953 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004997/0.3826, allocations: 194.2 kB / 0.5265 GB, free: 8.891 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005512/0.3831, allocations: 77.92 kB / 0.5265 GB, free: 8.863 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0064/0.3895, allocations: 3.724 MB / 0.5302 GB, free: 6.473 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005309/0.3901, allocations: 0.8145 MB / 0.531 GB, free: 5.758 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003233/0.3904, allocations: 94.75 kB / 0.531 GB, free: 5.742 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002282/0.3907, allocations: 125.5 kB / 0.5312 GB, free: 5.66 MB / 398.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3907, allocations: 4 kB / 0.5312 GB, free: 5.656 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03617/0.4269, allocations: 8.569 MB / 0.5395 GB, free: 1.801 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.688/9.115, allocations: 5.953 kB / 0.5395 GB, free: 1.797 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTest.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe 2>&1)