Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.InverterToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_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.001007/0.001007, allocations: 112.7 kB / 17.75 MB, free: 5.18 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.001128/0.001129, allocations: 187 kB / 18.68 MB, free: 4.258 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.283/1.283, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1736/0.1736, allocations: 38.03 MB / 330.6 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 59.91 kB / 458.8 MB, free: 6.871 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.295/0.2962, allocations: 58.05 MB / 0.5048 GB, free: 8.047 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.006196/0.3024, allocations: 6.552 MB / 0.5112 GB, free: 3.484 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00233/0.3048, allocations: 1.665 MB / 0.5128 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000268/0.3051, allocations: 27.88 kB / 0.5128 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000446/0.3055, allocations: 150.9 kB / 0.513 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008144/0.3064, allocations: 442 kB / 0.5134 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000619/0.307, allocations: 348.4 kB / 0.5137 GB, free: 1.805 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001286/0.3083, allocations: 1.509 MB / 0.5152 GB, free: 1.141 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004353/0.3087, allocations: 401.5 kB / 0.5156 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007103/0.3095, allocations: 0.6174 MB / 0.5162 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008593/0.3103, allocations: 0.644 MB / 0.5168 GB, free: 496 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001704/0.3105, allocations: 98.91 kB / 0.5169 GB, free: 496 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002674/0.3108, allocations: 98.31 kB / 0.517 GB, free: 496 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004594/0.3113, allocations: 418.1 kB / 0.5174 GB, free: 332 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005592/0.3118, allocations: 469.7 kB / 0.5178 GB, free: 48 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00122/0.313, allocations: 1.192 MB / 0.519 GB, free: 15.61 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.3131, allocations: 0 / 0.519 GB, free: 15.61 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.3131, allocations: 0 / 0.519 GB, free: 15.61 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.098e-05/0.3131, allocations: 0 / 0.519 GB, free: 15.61 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.002725/0.3158, allocations: 1.303 MB / 0.5203 GB, free: 14.8 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.3159, allocations: 12.7 kB / 0.5203 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001821/0.316, allocations: 96.66 kB / 0.5204 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001508/0.3176, allocations: 0.7306 MB / 0.5211 GB, free: 14.33 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004183/0.318, allocations: 352.4 kB / 0.5214 GB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/0.3181, allocations: 68.72 kB / 0.5215 GB, free: 14.01 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00231/0.3205, allocations: 1.142 MB / 0.5226 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.973e-05/0.3205, allocations: 7.922 kB / 0.5226 GB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.745e-05/0.3206, allocations: 24.14 kB / 0.5226 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001168/0.3207, allocations: 42.06 kB / 0.5227 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002757/0.3235, allocations: 1.175 MB / 0.5238 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005305/0.3288, allocations: 3.476 MB / 0.5272 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002513/0.3313, allocations: 0.9633 MB / 0.5282 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001665/0.333, allocations: 0.6946 MB / 0.5288 GB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.458e-05/0.3331, allocations: 6.625 kB / 0.5288 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001448/0.3345, allocations: 0.6866 MB / 0.5295 GB, free: 9.906 MB / 398.1 MB Notification: Performance of pre-optimization done (n=59): time 2.294e-06/0.3345, allocations: 0 / 0.5295 GB, free: 9.906 MB / 398.1 MB Notification: Performance of matching and sorting (n=61): time 0.01869/0.3532, allocations: 5.656 MB / 0.535 GB, free: 6.973 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.038e-05/0.3533, allocations: 94.86 kB / 0.5351 GB, free: 6.871 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006406/0.354, allocations: 464 kB / 0.5356 GB, free: 6.594 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.613e-05/0.3541, allocations: 43.56 kB / 0.5356 GB, free: 6.551 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002873/0.3543, allocations: 334.8 kB / 0.5359 GB, free: 6.254 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001973/0.3546, allocations: 195.6 kB / 0.5361 GB, free: 6.086 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002717/0.3548, allocations: 133.5 kB / 0.5363 GB, free: 6.008 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.355, allocations: 369.6 kB / 0.5366 GB, free: 5.652 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00116/0.3562, allocations: 0.5085 MB / 0.5371 GB, free: 5.402 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001281/0.3575, allocations: 0.6277 MB / 0.5377 GB, free: 5.008 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.006652/0.3641, allocations: 3.126 MB / 0.5408 GB, free: 3.34 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.155e-06/0.3642, allocations: 0 / 0.5408 GB, free: 3.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007186/0.3713, allocations: 2.498 MB / 0.5432 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.125e-05/0.3714, allocations: 49.69 kB / 0.5433 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.3715, allocations: 0 / 0.5433 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002346/0.3738, allocations: 1.083 MB / 0.5443 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004804/0.3743, allocations: 115.8 kB / 0.5444 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01538/0.3897, allocations: 6.869 MB / 0.5511 GB, free: 8.559 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008624/0.3906, allocations: 83.95 kB / 0.5512 GB, free: 8.477 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001389/0.3907, allocations: 47.97 kB / 0.5513 GB, free: 8.43 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.0005403/0.3913, allocations: 287.9 kB / 0.5515 GB, free: 8.141 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001506/0.3914, allocations: 59.38 kB / 0.5516 GB, free: 8.082 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007705/0.3992, allocations: 2.429 MB / 0.554 GB, free: 5.637 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.662e-05/0.3992, allocations: 11.98 kB / 0.554 GB, free: 5.625 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-06/0.3992, allocations: 0 / 0.554 GB, free: 5.625 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004815/0.3997, allocations: 220.3 kB / 0.5542 GB, free: 5.391 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001891/0.3999, allocations: 31.98 kB / 0.5542 GB, free: 5.359 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007605/0.4006, allocations: 99.86 kB / 0.5543 GB, free: 5.262 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006022/0.4013, allocations: 252.1 kB / 0.5545 GB, free: 5.016 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00668/0.408, allocations: 2.18 MB / 0.5567 GB, free: 2.824 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004022/0.412, allocations: 1.894 MB / 0.5585 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001271/0.4133, allocations: 0.6015 MB / 0.5591 GB, free: 320 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003885/0.4137, allocations: 322.9 kB / 0.5594 GB, free: 0 / 414.1 MB Notification: Performance of Backend: time 2.11e-07/0.4137, allocations: 0 / 0.5594 GB, free: 0 / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003656/0.4174, allocations: 1.316 MB / 0.5607 GB, free: 14.64 MB / 430.1 MB Notification: Performance of SimCode: time 0.003076/0.4205, allocations: 1.96 MB / 0.5626 GB, free: 12.64 MB / 430.1 MB Notification: Performance of Templates: time 0.02362/0.4441, allocations: 15.06 MB / 0.5773 GB, free: 13.66 MB / 446.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1)