Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.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.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 94.86 kB / 16.3 MB, free: 5.992 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.0008584/0.0008584, allocations: 181.5 kB / 17.2 MB, free: 5.906 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.654/1.654, allocations: 205.4 MB / 223.4 MB, free: 5.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3907/0.3907, allocations: 38.05 MB / 309.7 MB, free: 8.859 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.0005954/0.0005957, allocations: 12 kB / 376.5 MB, free: 15.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1503/0.1509, allocations: 56.34 MB / 432.8 MB, free: 6.723 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.008481/0.1595, allocations: 5.957 MB / 438.8 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003594/0.1631, allocations: 1.864 MB / 440.6 MB, free: 14.87 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003815/0.1635, allocations: 47.62 kB / 440.7 MB, free: 14.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004855/0.164, allocations: 147 kB / 440.8 MB, free: 14.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007619/0.1648, allocations: 323 kB / 441.1 MB, free: 14.36 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005618/0.1654, allocations: 279.5 kB / 441.4 MB, free: 14.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007617/0.1662, allocations: 0.7057 MB / 442.1 MB, free: 13.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003875/0.1666, allocations: 263.6 kB / 442.4 MB, free: 13.11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006004/0.1672, allocations: 414.7 kB / 442.8 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005568/0.1677, allocations: 398.8 kB / 443.2 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.441e-05/0.1678, allocations: 40 kB / 443.2 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001055/0.1679, allocations: 40 kB / 443.3 MB, free: 12.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002849/0.1682, allocations: 267.4 kB / 443.5 MB, free: 11.97 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000191/0.1684, allocations: 157.3 kB / 443.7 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007883/0.1692, allocations: 0.7988 MB / 444.5 MB, free: 11.01 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.1692, allocations: 4 kB / 444.5 MB, free: 11.01 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1693, allocations: 0 / 444.5 MB, free: 11.01 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.1693, allocations: 0 / 444.5 MB, free: 11.01 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002278/0.1716, allocations: 1.079 MB / 445.5 MB, free: 9.871 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.1716, allocations: 15.98 kB / 445.6 MB, free: 9.855 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001875/0.1718, allocations: 79.25 kB / 445.6 MB, free: 9.777 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001279/0.1731, allocations: 0.6226 MB / 446.3 MB, free: 9.113 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004438/0.1735, allocations: 350.8 kB / 446.6 MB, free: 8.723 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001209/0.1737, allocations: 60 kB / 446.7 MB, free: 8.664 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002184/0.1759, allocations: 1.101 MB / 447.8 MB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.1759, allocations: 0 / 447.8 MB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.195e-05/0.176, allocations: 20 kB / 447.8 MB, free: 7.508 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.503e-05/0.176, allocations: 16 kB / 447.8 MB, free: 7.492 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002686/0.1787, allocations: 1.202 MB / 449 MB, free: 6.289 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005065/0.1838, allocations: 3.256 MB / 452.3 MB, free: 2.934 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002185/0.186, allocations: 0.8588 MB / 453.1 MB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.076e-05/0.186, allocations: 4.438 kB / 453.1 MB, free: 2.055 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001448/0.1875, allocations: 0.6773 MB / 453.8 MB, free: 1.352 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 1.894e-06/0.1875, allocations: 0 / 453.8 MB, free: 1.352 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.2752/0.4627, allocations: 1.55 MB / 455.4 MB, free: 51.98 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.965e-05/0.4628, allocations: 146.5 kB / 455.5 MB, free: 51.83 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004784/0.4633, allocations: 386.2 kB / 455.9 MB, free: 51.72 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001242/0.4634, allocations: 39.02 kB / 455.9 MB, free: 51.69 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002046/0.4636, allocations: 297.9 kB / 456.2 MB, free: 51.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001362/0.4638, allocations: 168.8 kB / 456.4 MB, free: 51.5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.585e-05/0.4638, allocations: 9.906 kB / 456.4 MB, free: 51.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.129e-05/0.4639, allocations: 356.6 kB / 456.7 MB, free: 51.19 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009291/0.4648, allocations: 494.2 kB / 457.2 MB, free: 51.19 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009408/0.4658, allocations: 0.5909 MB / 457.8 MB, free: 51.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000959/0.4668, allocations: 0.4899 MB / 458.3 MB, free: 51.05 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.4668, allocations: 0 / 458.3 MB, free: 51.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002246/0.469, allocations: 1.166 MB / 459.5 MB, free: 50.95 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.312e-05/0.4691, allocations: 50.67 kB / 459.5 MB, free: 50.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.4691, allocations: 6.688 kB / 459.5 MB, free: 50.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.405e-05/0.4691, allocations: 9.453 kB / 459.5 MB, free: 50.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005719/0.4749, allocations: 1.584 MB / 461.1 MB, free: 50.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007294/0.4822, allocations: 4.979 MB / 466.1 MB, free: 48.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009382/0.4832, allocations: 140.4 kB / 466.2 MB, free: 48.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.692e-05/0.4833, allocations: 36.16 kB / 466.3 MB, free: 48.09 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,system.initime,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.sigdel_t,inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,inverter.modulator.t0) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005102/0.4838, allocations: 245 kB / 466.5 MB, free: 47.96 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.501e-05/0.4839, allocations: 53.83 kB / 466.5 MB, free: 47.94 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002517/0.4864, allocations: 1.11 MB / 467.7 MB, free: 47.86 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.4865, allocations: 3.406 kB / 467.7 MB, free: 47.86 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.4865, allocations: 3.281 kB / 467.7 MB, free: 47.86 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.4865, allocations: 0 / 467.7 MB, free: 47.86 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00371/0.4902, allocations: 2.219 MB / 469.9 MB, free: 47.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.4902, allocations: 4.797 kB / 469.9 MB, free: 47.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00695/0.4972, allocations: 1.846 MB / 471.7 MB, free: 47.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.298e-05/0.4972, allocations: 3.031 kB / 471.7 MB, free: 47.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.963e-05/0.4973, allocations: 18.55 kB / 471.8 MB, free: 47.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.4973, allocations: 2.656 kB / 471.8 MB, free: 47.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.4973, allocations: 2.906 kB / 471.8 MB, free: 47.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003771/0.5011, allocations: 1.961 MB / 473.7 MB, free: 46.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003227/0.5014, allocations: 213.2 kB / 473.9 MB, free: 46.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001074/0.5015, allocations: 31.14 kB / 474 MB, free: 46.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006641/0.5022, allocations: 126.6 kB / 474.1 MB, free: 46.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001943/0.5024, allocations: 93.42 kB / 474.2 MB, free: 46.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.513e-05/0.5025, allocations: 17.09 kB / 474.2 MB, free: 46.1 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002612/0.5027, allocations: 266 kB / 474.4 MB, free: 45.96 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5027, allocations: 0 / 474.4 MB, free: 45.96 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006379/0.5034, allocations: 180.3 kB / 474.6 MB, free: 45.93 MB / 382.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) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * 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 (52): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001703/0.5036, allocations: 127.4 kB / 474.7 MB, free: 45.83 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007327/0.5109, allocations: 2.631 MB / 477.4 MB, free: 45.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.531e-06/0.5109, allocations: 0 / 477.4 MB, free: 45.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003574/0.5145, allocations: 1.187 MB / 478.6 MB, free: 45.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007732/0.5153, allocations: 123 kB / 478.7 MB, free: 45.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003692/0.519, allocations: 1.885 MB / 480.6 MB, free: 44.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004308/0.5195, allocations: 0.9411 MB / 481.5 MB, free: 43.42 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005912/0.5201, allocations: 163.3 kB / 481.7 MB, free: 43.39 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001933/0.5203, allocations: 41.17 kB / 481.7 MB, free: 43.39 MB / 382.1 MB Notification: Performance of SimCode: time 1.142e-06/0.5203, allocations: 0 / 481.7 MB, free: 43.39 MB / 382.1 MB Notification: Performance of Templates: time 0.01916/0.5394, allocations: 7.712 MB / 489.4 MB, free: 42.91 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1) Environment - environmentSimulation: