Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 110.2 kB / 17.06 MB, free: 5.969 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.001129/0.001129, allocations: 198.8 kB / 18.01 MB, free: 5.051 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.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2045/0.2045, allocations: 38.03 MB / 329.9 MB, free: 8.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001324, allocations: 67.88 kB / 458.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3618/0.3631, allocations: 58.05 MB / 0.5041 GB, free: 7.777 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.007067/0.3702, allocations: 6.481 MB / 0.5104 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003014/0.3732, allocations: 1.874 MB / 0.5123 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003543/0.3736, allocations: 29.56 kB / 0.5123 GB, free: 1.953 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00119/0.3748, allocations: 442.9 kB / 0.5127 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008357/0.3757, allocations: 421.2 kB / 0.5131 GB, free: 1.445 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001012/0.3767, allocations: 344.2 kB / 0.5134 GB, free: 1.297 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001338/0.378, allocations: 1.028 MB / 0.5144 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007553/0.3788, allocations: 0.4948 MB / 0.5149 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007361/0.3795, allocations: 459.9 kB / 0.5154 GB, free: 456 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009067/0.3805, allocations: 0.5771 MB / 0.5159 GB, free: 236 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001589/0.3806, allocations: 67.12 kB / 0.516 GB, free: 236 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007016/0.3813, allocations: 256.8 kB / 0.5162 GB, free: 176 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005154/0.3819, allocations: 372.7 kB / 0.5166 GB, free: 40 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005587/0.3824, allocations: 428.8 kB / 0.517 GB, free: 15.79 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001703/0.3842, allocations: 1.046 MB / 0.518 GB, free: 15.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.3842, allocations: 4.484 kB / 0.518 GB, free: 15.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.827e-06/0.3842, allocations: 0 / 0.518 GB, free: 15.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.527e-05/0.3842, allocations: 3.938 kB / 0.518 GB, free: 15.39 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.002448/0.3867, allocations: 1.137 MB / 0.5191 GB, free: 14.62 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.3867, allocations: 13.55 kB / 0.5191 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000757/0.3875, allocations: 130 kB / 0.5193 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001136/0.3886, allocations: 0.6149 MB / 0.5199 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.7e-05/0.3887, allocations: 55.05 kB / 0.5199 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001871/0.3889, allocations: 75.22 kB / 0.52 GB, free: 14.13 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001828/0.3907, allocations: 1.007 MB / 0.521 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.855e-05/0.3907, allocations: 5.406 kB / 0.521 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.241e-05/0.3908, allocations: 30.09 kB / 0.521 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002183/0.3911, allocations: 71.7 kB / 0.5211 GB, free: 13.67 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00177/0.3928, allocations: 0.9818 MB / 0.522 GB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005015/0.3979, allocations: 3.262 MB / 0.5252 GB, free: 11.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001103/0.399, allocations: 0.6936 MB / 0.5259 GB, free: 11.15 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006334/0.3996, allocations: 432.2 kB / 0.5263 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.123e-05/0.3997, allocations: 9.094 kB / 0.5263 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.851e-05/0.3997, allocations: 37.72 kB / 0.5264 GB, free: 10.95 MB / 398.1 MB Notification: Performance of pre-optimization done (n=73): time 2.895e-06/0.3997, allocations: 1.188 kB / 0.5264 GB, free: 10.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=75): time 0.004535/0.4043, allocations: 2.45 MB / 0.5288 GB, free: 9.645 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/0.4044, allocations: 94.3 kB / 0.5288 GB, free: 9.543 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000557/0.4049, allocations: 440.1 kB / 0.5293 GB, free: 9.336 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.935e-05/0.405, allocations: 35.3 kB / 0.5293 GB, free: 9.297 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002822/0.4053, allocations: 371.9 kB / 0.5297 GB, free: 8.996 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002247/0.4055, allocations: 280.8 kB / 0.5299 GB, free: 8.762 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000231/0.4057, allocations: 143.3 kB / 0.5301 GB, free: 8.68 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.4059, allocations: 379.3 kB / 0.5304 GB, free: 8.316 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005511/0.4065, allocations: 342.4 kB / 0.5307 GB, free: 8.156 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006409/0.4071, allocations: 0.5174 MB / 0.5313 GB, free: 7.77 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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.005251/0.4124, allocations: 2.242 MB / 0.5334 GB, free: 6.496 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.4124, allocations: 1.125 kB / 0.5334 GB, free: 6.496 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002006/0.4144, allocations: 1.102 MB / 0.5345 GB, free: 5.891 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.449e-05/0.4144, allocations: 7.031 kB / 0.5345 GB, free: 5.891 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.601e-05/0.4145, allocations: 6.031 kB / 0.5345 GB, free: 5.891 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000178/0.4146, allocations: 39.14 kB / 0.5346 GB, free: 5.871 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007454/0.4154, allocations: 187 kB / 0.5347 GB, free: 5.824 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001275/0.4167, allocations: 1.501 MB / 0.5362 GB, free: 4.312 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005065/0.4172, allocations: 43.77 kB / 0.5363 GB, free: 4.285 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.501e-05/0.4173, allocations: 39.89 kB / 0.5363 GB, free: 4.27 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[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (95): * Single equations (assignments): 92 * Array equations: 2 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004701/0.4178, allocations: 279 kB / 0.5366 GB, free: 4.055 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001502/0.4179, allocations: 64.17 kB / 0.5366 GB, free: 4.02 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001699/0.4196, allocations: 0.9675 MB / 0.5376 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.21e-05/0.4197, allocations: 17.62 kB / 0.5376 GB, free: 3.418 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.4197, allocations: 1.094 kB / 0.5376 GB, free: 3.418 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/0.4197, allocations: 9.078 kB / 0.5376 GB, free: 3.41 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003743/0.4235, allocations: 2.011 MB / 0.5396 GB, free: 2.047 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.498e-06/0.4235, allocations: 5.344 kB / 0.5396 GB, free: 2.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00068/0.4242, allocations: 147.1 kB / 0.5397 GB, free: 2.012 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001235/0.4243, allocations: 41.45 kB / 0.5397 GB, free: 1.988 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.492e-05/0.4244, allocations: 21.62 kB / 0.5398 GB, free: 1.977 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001138/0.4255, allocations: 1.497 MB / 0.5412 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/0.4255, allocations: 9.438 kB / 0.5412 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002001/0.4275, allocations: 1.531 MB / 0.5427 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001866/0.4277, allocations: 146.3 kB / 0.5429 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.135e-05/0.4278, allocations: 22.91 kB / 0.5429 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003519/0.4282, allocations: 29.97 kB / 0.5429 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001234/0.4283, allocations: 62.58 kB / 0.543 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.318e-05/0.4284, allocations: 23.09 kB / 0.543 GB, free: 15.25 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004393/0.4288, allocations: 303.2 kB / 0.5433 GB, free: 15.07 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4288, allocations: 1.094 kB / 0.5433 GB, free: 15.07 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008545/0.4297, allocations: 185.8 kB / 0.5435 GB, free: 15.04 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],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 (75): * Single equations (assignments): 71 * Array equations: 2 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000294/0.43, allocations: 158.9 kB / 0.5436 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001466/0.4315, allocations: 0.9659 MB / 0.5446 GB, free: 13.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.4315, allocations: 1.438 kB / 0.5446 GB, free: 13.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006472/0.4322, allocations: 0.5216 MB / 0.5451 GB, free: 13.45 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000828/0.433, allocations: 149 kB / 0.5452 GB, free: 13.3 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002797/0.4358, allocations: 1.995 MB / 0.5472 GB, free: 11.22 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006201/0.4364, allocations: 1.009 MB / 0.5481 GB, free: 10.18 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005419/0.437, allocations: 209.3 kB / 0.5483 GB, free: 9.973 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001793/0.4372, allocations: 59.44 kB / 0.5484 GB, free: 9.914 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.4372, allocations: 0 / 0.5484 GB, free: 9.914 MB / 414.1 MB Notification: Performance of Templates: time 0.01448/0.4517, allocations: 8.216 MB / 0.5564 GB, free: 1.754 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)