Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.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: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 113.9 kB / 17.07 MB, free: 5.973 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.001807/0.001807, allocations: 198.8 kB / 18 MB, free: 5.059 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.392/1.392, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1724/0.1724, allocations: 38.03 MB / 329.9 MB, free: 8.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 63.89 kB / 458.1 MB, free: 6.824 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3649/0.3662, allocations: 58.06 MB / 0.5041 GB, free: 8.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.007331/0.3736, allocations: 6.085 MB / 0.51 GB, free: 3.781 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002792/0.3764, allocations: 1.417 MB / 0.5114 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003799/0.3768, allocations: 28.16 kB / 0.5114 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005374/0.3773, allocations: 138 kB / 0.5116 GB, free: 2.691 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008407/0.3782, allocations: 386 kB / 0.5119 GB, free: 2.473 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005437/0.3788, allocations: 199.6 kB / 0.5121 GB, free: 2.371 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009851/0.3798, allocations: 0.9261 MB / 0.513 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004107/0.3802, allocations: 271 kB / 0.5133 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006255/0.3808, allocations: 419.5 kB / 0.5137 GB, free: 1.672 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008477/0.3817, allocations: 460.3 kB / 0.5141 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.622e-05/0.3818, allocations: 47.22 kB / 0.5142 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001517/0.3819, allocations: 47.66 kB / 0.5142 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003998/0.3823, allocations: 262.8 kB / 0.5145 GB, free: 1.414 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004083/0.3828, allocations: 326.3 kB / 0.5148 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008522/0.3836, allocations: 0.6723 MB / 0.5154 GB, free: 0.957 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.3836, allocations: 0 / 0.5154 GB, free: 0.957 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3836, allocations: 2.141 kB / 0.5154 GB, free: 0.957 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.15e-05/0.3837, allocations: 0 / 0.5154 GB, free: 0.957 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001771/0.3854, allocations: 0.9529 MB / 0.5164 GB, free: 292 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/0.3855, allocations: 13.3 kB / 0.5164 GB, free: 288 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001636/0.3857, allocations: 68.62 kB / 0.5165 GB, free: 252 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001125/0.3868, allocations: 0.5544 MB / 0.517 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.364e-05/0.3869, allocations: 41.28 kB / 0.517 GB, free: 15.87 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001188/0.387, allocations: 47.97 kB / 0.5171 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001255/0.3882, allocations: 0.6286 MB / 0.5177 GB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.03e-05/0.3883, allocations: 5.266 kB / 0.5177 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.96e-05/0.3883, allocations: 25.12 kB / 0.5177 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001193/0.3885, allocations: 33.56 kB / 0.5178 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009151/0.3894, allocations: 0.5052 MB / 0.5183 GB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003363/0.3928, allocations: 2.221 MB / 0.5204 GB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009465/0.3937, allocations: 0.4961 MB / 0.5209 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007704/0.3945, allocations: 351.1 kB / 0.5212 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.106e-05/0.3945, allocations: 4.406 kB / 0.5212 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.548e-05/0.3946, allocations: 46.94 kB / 0.5213 GB, free: 13.55 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.595e-06/0.3946, allocations: 0 / 0.5213 GB, free: 13.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.003771/0.3984, allocations: 1.733 MB / 0.523 GB, free: 12.65 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.6e-05/0.3984, allocations: 86.02 kB / 0.5231 GB, free: 12.55 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005727/0.399, allocations: 429.6 kB / 0.5235 GB, free: 12.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.188e-05/0.3991, allocations: 31.08 kB / 0.5235 GB, free: 12.31 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001971/0.3993, allocations: 296.9 kB / 0.5238 GB, free: 12.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001362/0.3994, allocations: 164.5 kB / 0.5239 GB, free: 11.94 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001563/0.3996, allocations: 94.8 kB / 0.524 GB, free: 11.89 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.3997, allocations: 363 kB / 0.5244 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003215/0.4001, allocations: 183.4 kB / 0.5246 GB, free: 11.49 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003921/0.4005, allocations: 314.5 kB / 0.5249 GB, free: 11.29 MB / 398.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.002809/0.4033, allocations: 1.24 MB / 0.5261 GB, free: 10.71 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.4033, allocations: 2.281 kB / 0.5261 GB, free: 10.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001306/0.4046, allocations: 0.7154 MB / 0.5268 GB, free: 10.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.4047, allocations: 6.156 kB / 0.5268 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.4047, allocations: 8.172 kB / 0.5268 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004337/0.4051, allocations: 135.2 kB / 0.5269 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005198/0.4056, allocations: 116.2 kB / 0.527 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003222/0.4089, allocations: 2.602 MB / 0.5296 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004146/0.4093, allocations: 26.11 kB / 0.5296 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.926e-05/0.4094, allocations: 20.27 kB / 0.5296 GB, free: 8.414 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004189/0.4098, allocations: 231.2 kB / 0.5298 GB, free: 8.242 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.4099, allocations: 56.11 kB / 0.5299 GB, free: 8.211 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00123/0.4111, allocations: 0.6544 MB / 0.5305 GB, free: 7.934 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.094e-06/0.4112, allocations: 5.797 kB / 0.5305 GB, free: 7.934 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.4112, allocations: 10.5 kB / 0.5305 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.263e-05/0.4112, allocations: 6.75 kB / 0.5305 GB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002336/0.4135, allocations: 1.37 MB / 0.5319 GB, free: 7.082 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.4136, allocations: 2.094 kB / 0.5319 GB, free: 7.082 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003776/0.4139, allocations: 75.7 kB / 0.532 GB, free: 7.062 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004264/0.4144, allocations: 148.6 kB / 0.5321 GB, free: 6.992 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.875e-05/0.4144, allocations: 16.66 kB / 0.5321 GB, free: 6.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0028/0.4172, allocations: 2.613 MB / 0.5347 GB, free: 4.805 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.4172, allocations: 2.906 kB / 0.5347 GB, free: 4.805 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001541/0.4188, allocations: 0.9923 MB / 0.5356 GB, free: 4.188 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000144/0.419, allocations: 129.4 kB / 0.5358 GB, free: 4.059 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.367e-05/0.419, allocations: 12.03 kB / 0.5358 GB, free: 4.051 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002654/0.4193, allocations: 19.11 kB / 0.5358 GB, free: 4.039 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.738e-05/0.4194, allocations: 45.22 kB / 0.5358 GB, free: 4.012 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.245e-05/0.4194, allocations: 11.59 kB / 0.5358 GB, free: 4.012 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003854/0.4198, allocations: 291.5 kB / 0.5361 GB, free: 3.836 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4198, allocations: 4.938 kB / 0.5361 GB, free: 3.832 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000761/0.4206, allocations: 143.5 kB / 0.5363 GB, free: 3.816 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001594/0.4208, allocations: 111.8 kB / 0.5364 GB, free: 3.715 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001217/0.422, allocations: 0.6565 MB / 0.537 GB, free: 3.348 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.422, allocations: 5.125 kB / 0.537 GB, free: 3.344 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006778/0.4227, allocations: 440.4 kB / 0.5374 GB, free: 3.07 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007953/0.4235, allocations: 121.9 kB / 0.5375 GB, free: 3.004 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002283/0.4258, allocations: 1.322 MB / 0.5388 GB, free: 2.145 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006268/0.4264, allocations: 0.9321 MB / 0.5397 GB, free: 1.328 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000349/0.4268, allocations: 100.9 kB / 0.5398 GB, free: 1.281 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001172/0.4269, allocations: 41.92 kB / 0.5399 GB, free: 1.273 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.4269, allocations: 0 / 0.5399 GB, free: 1.273 MB / 398.1 MB Notification: Performance of Templates: time 0.01372/0.4407, allocations: 6.863 MB / 0.5466 GB, free: 12.25 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1)