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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.0009913/0.0009913, allocations: 188.5 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.292/1.292, allocations: 194.3 MB / 203.1 MB, free: 9.316 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001735/0.001736, allocations: 117.7 kB / 248.1 MB, free: 6.324 MB / 203.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1672/0.1672, allocations: 37.93 MB / 330.9 MB, free: 7.316 MB / 283.1 MB Notification: Performance of FrontEnd - loaded program: time 1.346e-05/1.348e-05, allocations: 4 kB / 390.4 MB, free: 78.22 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09976/0.09979, allocations: 53.24 MB / 443.6 MB, free: 25.09 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4007/0.5006, allocations: 96.27 MB / 0.5272 GB, free: 9.086 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002355/0.5009, allocations: 94.83 kB / 0.5273 GB, free: 9.07 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03964/0.5405, allocations: 15.51 MB / 0.5425 GB, free: 14.45 MB / 363.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.5406, allocations: 3.938 kB / 0.5425 GB, free: 14.45 MB / 363.1 MB Notification: Performance of Transformations before backend: time 3.826e-05/0.5406, allocations: 12 kB / 0.5425 GB, free: 14.43 MB / 363.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.002303/0.5429, allocations: 1.041 MB / 0.5435 GB, free: 13.38 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.543, allocations: 8.031 kB / 0.5435 GB, free: 13.38 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002492/0.5432, allocations: 83.23 kB / 0.5436 GB, free: 13.29 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003449/0.5467, allocations: 1.221 MB / 0.5448 GB, free: 12.26 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004364/0.5471, allocations: 321.9 kB / 0.5451 GB, free: 11.91 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001594/0.5473, allocations: 36 kB / 0.5451 GB, free: 11.87 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001574/0.5489, allocations: 0.7996 MB / 0.5459 GB, free: 11.36 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001269/0.5502, allocations: 0.8217 MB / 0.5467 GB, free: 10.73 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.5502, allocations: 0 / 0.5467 GB, free: 10.73 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.151e-05/0.5503, allocations: 3.984 kB / 0.5467 GB, free: 10.73 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.576e-05/0.5503, allocations: 20 kB / 0.5467 GB, free: 10.71 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004612/0.5549, allocations: 3.144 MB / 0.5498 GB, free: 8.133 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008043/0.5558, allocations: 0.5319 MB / 0.5503 GB, free: 7.762 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005294/0.5563, allocations: 380.1 kB / 0.5507 GB, free: 7.523 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.401e-05/0.5564, allocations: 8.438 kB / 0.5507 GB, free: 7.516 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000601/0.557, allocations: 475.9 kB / 0.5511 GB, free: 7.156 MB / 363.1 MB Notification: Performance of pre-optimization done (n=49): time 2.364e-06/0.557, allocations: 0 / 0.5511 GB, free: 7.156 MB / 363.1 MB Notification: Performance of matching and sorting (n=49): time 0.001/0.558, allocations: 0.6257 MB / 0.5517 GB, free: 6.707 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.679e-05/0.5581, allocations: 143.4 kB / 0.5519 GB, free: 6.539 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000327/0.5584, allocations: 288.1 kB / 0.5522 GB, free: 6.305 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 6.52e-05/0.5585, allocations: 32.27 kB / 0.5522 GB, free: 6.27 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001937/0.5587, allocations: 297.1 kB / 0.5525 GB, free: 6.039 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000144/0.5588, allocations: 164.3 kB / 0.5526 GB, free: 5.898 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.959e-05/0.5589, allocations: 0 / 0.5526 GB, free: 5.898 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.559, allocations: 362.3 kB / 0.553 GB, free: 5.555 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004321/0.5595, allocations: 323.5 kB / 0.5533 GB, free: 5.363 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004691/0.5599, allocations: 426.1 kB / 0.5537 GB, free: 5.047 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004025/0.5604, allocations: 293.1 kB / 0.554 GB, free: 4.859 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.5604, allocations: 0 / 0.554 GB, free: 4.859 MB / 363.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001147/0.5615, allocations: 0.754 MB / 0.5547 GB, free: 4.312 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.794e-05/0.5616, allocations: 52.44 kB / 0.5547 GB, free: 4.262 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.5616, allocations: 0 / 0.5547 GB, free: 4.262 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.683e-05/0.5617, allocations: 8 kB / 0.5548 GB, free: 4.254 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006599/0.5683, allocations: 1.588 MB / 0.5563 GB, free: 2.668 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005044/0.5733, allocations: 3.956 MB / 0.5602 GB, free: 14.85 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007742/0.5741, allocations: 123.5 kB / 0.5603 GB, free: 14.73 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/0.5743, allocations: 47.8 kB / 0.5603 GB, free: 14.68 MB / 379.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 () * 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.0002072/0.5745, allocations: 122.5 kB / 0.5605 GB, free: 14.56 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.5746, allocations: 43.44 kB / 0.5605 GB, free: 14.52 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001128/0.5757, allocations: 0.6731 MB / 0.5611 GB, free: 14.05 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.5758, allocations: 4 kB / 0.5612 GB, free: 14.04 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.5758, allocations: 0 / 0.5612 GB, free: 14.04 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.5758, allocations: 4 kB / 0.5612 GB, free: 14.04 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002337/0.5781, allocations: 1.761 MB / 0.5629 GB, free: 12.63 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.5782, allocations: 7.984 kB / 0.5629 GB, free: 12.62 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007817/0.586, allocations: 1.838 MB / 0.5647 GB, free: 10.79 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.482e-05/0.586, allocations: 7.953 kB / 0.5647 GB, free: 10.78 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.634e-05/0.5861, allocations: 7.984 kB / 0.5647 GB, free: 10.77 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.111e-06/0.5861, allocations: 4 kB / 0.5647 GB, free: 10.77 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.5861, allocations: 4 kB / 0.5647 GB, free: 10.76 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001682/0.5878, allocations: 1.322 MB / 0.566 GB, free: 9.754 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003244/0.5881, allocations: 203.5 kB / 0.5662 GB, free: 9.566 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000129/0.5883, allocations: 19.05 kB / 0.5662 GB, free: 9.555 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000786/0.5891, allocations: 119.9 kB / 0.5663 GB, free: 9.438 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002057/0.5893, allocations: 90.78 kB / 0.5664 GB, free: 9.355 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.62e-05/0.5894, allocations: 23.55 kB / 0.5664 GB, free: 9.336 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0002529/0.5896, allocations: 220.8 kB / 0.5666 GB, free: 9.16 MB / 379.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5896, allocations: 0 / 0.5666 GB, free: 9.16 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.0007771/0.5904, allocations: 179 kB / 0.5668 GB, free: 8.988 MB / 379.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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]) * 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.0002331/0.5907, allocations: 126.6 kB / 0.5669 GB, free: 8.859 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.006086/0.5967, allocations: 2.037 MB / 0.5689 GB, free: 7.086 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.5968, allocations: 3.938 kB / 0.5689 GB, free: 7.082 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003097/0.5999, allocations: 0.9818 MB / 0.5699 GB, free: 6.238 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007155/0.6006, allocations: 99.78 kB / 0.57 GB, free: 6.156 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003299/0.6039, allocations: 1.261 MB / 0.5712 GB, free: 5.027 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006692/0.6046, allocations: 0.943 MB / 0.5721 GB, free: 4.082 MB / 379.1 MB Notification: Performance of simCode: alias equations: time 0.0007489/0.6054, allocations: 156.4 kB / 0.5723 GB, free: 3.926 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002259/0.6056, allocations: 36.81 kB / 0.5723 GB, free: 3.891 MB / 379.1 MB Notification: Performance of SimCode: time 1.934e-06/0.6056, allocations: 3.938 kB / 0.5723 GB, free: 3.887 MB / 379.1 MB Notification: Performance of Templates: time 0.01365/0.6193, allocations: 7.075 MB / 0.5792 GB, free: 12.86 MB / 395.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.makefile (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)