Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 110.5 kB / 17.71 MB, free: 5.383 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.001228/0.001228, allocations: 188.1 kB / 18.63 MB, free: 4.469 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.336/1.336, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1655/0.1655, allocations: 37.99 MB / 309.8 MB, free: 5.965 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.001403/0.001403, allocations: 72.3 kB / 432.5 MB, free: 15.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09812/0.09953, allocations: 55.24 MB / 487.7 MB, free: 8.379 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.007012/0.1066, allocations: 6.562 MB / 494.3 MB, free: 1.777 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002617/0.1092, allocations: 1.696 MB / 496 MB, free: 76 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002818/0.1095, allocations: 27.81 kB / 496 MB, free: 48 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004717/0.11, allocations: 158.8 kB / 496.2 MB, free: 15.89 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007677/0.1108, allocations: 445.8 kB / 496.6 MB, free: 15.45 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005731/0.1114, allocations: 347.4 kB / 496.9 MB, free: 15.11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001261/0.1127, allocations: 1.5 MB / 498.4 MB, free: 13.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000431/0.1131, allocations: 401.7 kB / 498.8 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006903/0.1138, allocations: 0.5956 MB / 499.4 MB, free: 12.62 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007732/0.1146, allocations: 0.6465 MB / 0.4883 GB, free: 11.97 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001227/0.1147, allocations: 100 kB / 0.4884 GB, free: 11.87 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001511/0.1149, allocations: 96 kB / 0.4885 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003584/0.1152, allocations: 423 kB / 0.4889 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004324/0.1157, allocations: 474 kB / 0.4894 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009308/0.1166, allocations: 1.176 MB / 0.4905 GB, free: 9.719 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1166, allocations: 0 / 0.4905 GB, free: 9.719 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1166, allocations: 4 kB / 0.4905 GB, free: 9.715 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.122e-05/0.1167, allocations: 0 / 0.4905 GB, free: 9.715 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.002464/0.1191, allocations: 1.309 MB / 0.4918 GB, free: 8.344 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.1192, allocations: 11.89 kB / 0.4918 GB, free: 8.332 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001655/0.1193, allocations: 92 kB / 0.4919 GB, free: 8.242 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001235/0.1206, allocations: 0.7404 MB / 0.4926 GB, free: 7.457 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003853/0.121, allocations: 351 kB / 0.493 GB, free: 7.066 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001269/0.1211, allocations: 68 kB / 0.493 GB, free: 7 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002126/0.1233, allocations: 1.141 MB / 0.4942 GB, free: 5.82 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.1233, allocations: 0 / 0.4942 GB, free: 5.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.62e-05/0.1234, allocations: 28 kB / 0.4942 GB, free: 5.793 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001024/0.1235, allocations: 37.28 kB / 0.4942 GB, free: 5.758 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002564/0.126, allocations: 1.172 MB / 0.4954 GB, free: 4.582 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004641/0.1307, allocations: 3.484 MB / 0.4988 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002355/0.1331, allocations: 0.9604 MB / 0.4997 GB, free: 16 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001636/0.1347, allocations: 0.6826 MB / 0.5004 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.18e-05/0.1348, allocations: 8.562 kB / 0.5004 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001447/0.1362, allocations: 0.681 MB / 0.501 GB, free: 14.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=59): time 2.215e-06/0.1362, allocations: 0 / 0.501 GB, free: 14.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=61): time 0.01871/0.1549, allocations: 5.663 MB / 0.5066 GB, free: 8.879 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.479e-05/0.155, allocations: 97.66 kB / 0.5067 GB, free: 8.762 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005042/0.1555, allocations: 469.8 kB / 0.5071 GB, free: 8.293 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.249e-05/0.1556, allocations: 41.7 kB / 0.5072 GB, free: 8.246 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002337/0.1559, allocations: 316.3 kB / 0.5075 GB, free: 7.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001946/0.1561, allocations: 213 kB / 0.5077 GB, free: 7.719 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002282/0.1563, allocations: 134.2 kB / 0.5078 GB, free: 7.582 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.1565, allocations: 370.8 kB / 0.5081 GB, free: 7.211 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001073/0.1576, allocations: 0.5051 MB / 0.5086 GB, free: 6.707 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001118/0.1587, allocations: 0.6335 MB / 0.5093 GB, free: 6.031 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.006614/0.1653, allocations: 3.131 MB / 0.5123 GB, free: 2.812 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.1653, allocations: 4 kB / 0.5123 GB, free: 2.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007552/0.1729, allocations: 2.486 MB / 0.5147 GB, free: 316 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.883e-05/0.173, allocations: 57.59 kB / 0.5148 GB, free: 252 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.173, allocations: 4 kB / 0.5148 GB, free: 248 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002327/0.1753, allocations: 1.086 MB / 0.5159 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004685/0.1758, allocations: 111.8 kB / 0.516 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01515/0.191, allocations: 6.857 MB / 0.5227 GB, free: 8.039 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007588/0.1918, allocations: 87.95 kB / 0.5227 GB, free: 7.953 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-05/0.1919, allocations: 35.98 kB / 0.5228 GB, free: 7.918 MB / 414.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: 14 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],$PRE.inverter.modulator.t0,$PRE.inverter.modulator.sigdel_t,inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[4],inverter.modulator.gates[3],inverter.modulator.gates[2],inverter.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of prepare postOptimizeDAE: time 0.000445/0.1923, allocations: 279.5 kB / 0.5231 GB, free: 7.637 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.872e-05/0.1924, allocations: 63.25 kB / 0.5231 GB, free: 7.574 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007702/0.2001, allocations: 2.433 MB / 0.5255 GB, free: 5.125 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.2002, allocations: 8 kB / 0.5255 GB, free: 5.117 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.2002, allocations: 0 / 0.5255 GB, free: 5.117 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-06/0.2002, allocations: 3.984 kB / 0.5255 GB, free: 5.113 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009122/0.2093, allocations: 3.563 MB / 0.529 GB, free: 1.461 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.073e-05/0.2094, allocations: 4.156 kB / 0.529 GB, free: 1.457 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000366/0.2097, allocations: 83.83 kB / 0.5291 GB, free: 1.375 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002305/0.212, allocations: 1.098 MB / 0.5301 GB, free: 280 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.402e-05/0.2121, allocations: 19.98 kB / 0.5302 GB, free: 260 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2114/0.4236, allocations: 6.822 MB / 0.5368 GB, free: 50.98 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.4236, allocations: 2.5 kB / 0.5368 GB, free: 50.98 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009151/0.4328, allocations: 3.203 MB / 0.5399 GB, free: 50.21 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003341/0.4331, allocations: 223.1 kB / 0.5402 GB, free: 50.08 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001145/0.4332, allocations: 33.34 kB / 0.5402 GB, free: 50.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007177/0.434, allocations: 93.47 kB / 0.5403 GB, free: 50.06 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003893/0.4344, allocations: 170.5 kB / 0.5404 GB, free: 50.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.698e-05/0.4344, allocations: 26.88 kB / 0.5405 GB, free: 50.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000363/0.4348, allocations: 322.3 kB / 0.5408 GB, free: 49.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4348, allocations: 0 / 0.5408 GB, free: 49.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008571/0.4357, allocations: 223.4 kB / 0.541 GB, free: 49.86 MB / 414.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: 8 ($whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0,system.initime) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001681/0.4358, allocations: 138.2 kB / 0.5411 GB, free: 49.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004378/0.4402, allocations: 1.734 MB / 0.5428 GB, free: 49.21 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.4402, allocations: 0 / 0.5428 GB, free: 49.21 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003033/0.4433, allocations: 1.122 MB / 0.5439 GB, free: 48.87 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008029/0.4441, allocations: 164.2 kB / 0.5441 GB, free: 48.83 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002596/0.4467, allocations: 1.745 MB / 0.5458 GB, free: 47.96 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003942/0.4471, allocations: 0.9882 MB / 0.5467 GB, free: 47.23 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001351/0.4473, allocations: 52.31 kB / 0.5468 GB, free: 47.22 MB / 414.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4473, allocations: 4 kB / 0.5468 GB, free: 47.22 MB / 414.1 MB Notification: Performance of Templates: time 0.01317/0.4604, allocations: 13.43 MB / 0.5599 GB, free: 38.89 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1)