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.001169/0.001169, allocations: 114.2 kB / 17.75 MB, free: 5.355 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.001256/0.001256, allocations: 185.4 kB / 18.68 MB, free: 4.434 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.307/1.307, allocations: 205.1 MB / 224.6 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.2182/0.2182, allocations: 37.98 MB / 309.9 MB, free: 5.961 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.001437/0.001437, allocations: 68.47 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1206, allocations: 55.24 MB / 487.8 MB, free: 8.363 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.0092/0.1298, allocations: 6.559 MB / 494.3 MB, free: 1.766 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003405/0.1333, allocations: 1.692 MB / 496 MB, free: 68 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005614/0.1338, allocations: 27.81 kB / 496.1 MB, free: 40 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007045/0.1346, allocations: 158.8 kB / 496.2 MB, free: 15.88 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001383/0.136, allocations: 445.8 kB / 496.7 MB, free: 15.45 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007791/0.1368, allocations: 351.4 kB / 497 MB, free: 15.1 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001661/0.1385, allocations: 1.496 MB / 498.5 MB, free: 13.6 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004916/0.139, allocations: 401.7 kB / 498.9 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008725/0.1399, allocations: 0.6073 MB / 499.5 MB, free: 12.6 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008666/0.1407, allocations: 0.6465 MB / 0.4884 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001542/0.1409, allocations: 100 kB / 0.4885 GB, free: 11.85 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000194/0.1411, allocations: 96 kB / 0.4886 GB, free: 11.76 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004352/0.1415, allocations: 427 kB / 0.489 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000525/0.1421, allocations: 470 kB / 0.4895 GB, free: 10.88 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001172/0.1433, allocations: 1.184 MB / 0.4906 GB, free: 9.691 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1433, allocations: 0 / 0.4906 GB, free: 9.691 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1433, allocations: 0 / 0.4906 GB, free: 9.691 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.32e-05/0.1433, allocations: 0 / 0.4906 GB, free: 9.691 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.002786/0.1461, allocations: 1.309 MB / 0.4919 GB, free: 8.32 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.1462, allocations: 19.83 kB / 0.4919 GB, free: 8.301 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001787/0.1464, allocations: 96 kB / 0.492 GB, free: 8.207 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00146/0.1478, allocations: 0.7327 MB / 0.4927 GB, free: 7.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004055/0.1482, allocations: 343 kB / 0.493 GB, free: 7.047 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001349/0.1484, allocations: 67.98 kB / 0.4931 GB, free: 6.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002175/0.1506, allocations: 1.141 MB / 0.4942 GB, free: 5.801 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/0.1506, allocations: 0 / 0.4942 GB, free: 5.801 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.649e-05/0.1507, allocations: 28 kB / 0.4943 GB, free: 5.773 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001106/0.1508, allocations: 37.28 kB / 0.4943 GB, free: 5.738 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002682/0.1535, allocations: 1.176 MB / 0.4954 GB, free: 4.559 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005103/0.1586, allocations: 3.48 MB / 0.4988 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002491/0.1611, allocations: 0.9643 MB / 0.4998 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00165/0.1628, allocations: 0.6826 MB / 0.5004 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.03e-05/0.1628, allocations: 20.48 kB / 0.5005 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001519/0.1644, allocations: 0.681 MB / 0.5011 GB, free: 14.59 MB / 398.1 MB Notification: Performance of pre-optimization done (n=59): time 2.234e-06/0.1644, allocations: 0 / 0.5011 GB, free: 14.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=61): time 0.01878/0.1832, allocations: 5.659 MB / 0.5067 GB, free: 8.848 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.58e-05/0.1833, allocations: 97.66 kB / 0.5067 GB, free: 8.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006286/0.1839, allocations: 465.9 kB / 0.5072 GB, free: 8.266 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.787e-05/0.184, allocations: 41.7 kB / 0.5072 GB, free: 8.219 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002829/0.1843, allocations: 320.3 kB / 0.5075 GB, free: 7.898 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002031/0.1845, allocations: 209 kB / 0.5077 GB, free: 7.691 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002406/0.1848, allocations: 134.2 kB / 0.5079 GB, free: 7.555 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002139/0.185, allocations: 370.7 kB / 0.5082 GB, free: 7.184 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001074/0.1861, allocations: 0.509 MB / 0.5087 GB, free: 6.676 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001159/0.1872, allocations: 0.6219 MB / 0.5093 GB, free: 6.012 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.006651/0.1939, allocations: 3.131 MB / 0.5124 GB, free: 2.793 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.1939, allocations: 8 kB / 0.5124 GB, free: 2.785 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007162/0.2011, allocations: 2.49 MB / 0.5148 GB, free: 288 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.557e-05/0.2012, allocations: 57.58 kB / 0.5149 GB, free: 224 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.2012, allocations: 3.938 kB / 0.5149 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002444/0.2036, allocations: 1.09 MB / 0.5159 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004659/0.2041, allocations: 107.9 kB / 0.516 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01537/0.2195, allocations: 6.857 MB / 0.5227 GB, free: 8.012 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006913/0.2202, allocations: 91.95 kB / 0.5228 GB, free: 7.922 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.409e-05/0.2203, allocations: 39.97 kB / 0.5229 GB, free: 7.883 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.0004438/0.2208, allocations: 283.6 kB / 0.5231 GB, free: 7.598 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.2209, allocations: 59.25 kB / 0.5232 GB, free: 7.539 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007769/0.2286, allocations: 2.436 MB / 0.5256 GB, free: 5.086 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.2287, allocations: 7.984 kB / 0.5256 GB, free: 5.078 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.2287, allocations: 0 / 0.5256 GB, free: 5.078 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000424/0.2291, allocations: 220.3 kB / 0.5258 GB, free: 4.844 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001237/0.2292, allocations: 31.98 kB / 0.5258 GB, free: 4.812 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006893/0.2299, allocations: 95.86 kB / 0.5259 GB, free: 4.719 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005129/0.2305, allocations: 256.1 kB / 0.5262 GB, free: 4.469 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006489/0.237, allocations: 2.177 MB / 0.5283 GB, free: 2.277 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004014/0.241, allocations: 1.898 MB / 0.5301 GB, free: 372 kB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.2096/0.4506, allocations: 0.5947 MB / 0.5307 GB, free: 52.71 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003749/0.4511, allocations: 326.6 kB / 0.531 GB, free: 52.62 MB / 414.1 MB Notification: Performance of Backend: time 7.21e-07/0.4511, allocations: 0 / 0.531 GB, free: 52.62 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00376/0.4548, allocations: 1.313 MB / 0.5323 GB, free: 52.38 MB / 414.1 MB Notification: Performance of SimCode: time 0.002194/0.457, allocations: 1.977 MB / 0.5342 GB, free: 51.38 MB / 414.1 MB Notification: Performance of Templates: time 0.02318/0.4802, allocations: 15.06 MB / 0.5489 GB, free: 47.41 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)