Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002319/0.002319, allocations: 173.5 kB / 16.76 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.625/2.625, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007112/0.0007113, allocations: 85.42 kB / 271.3 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2869/0.2869, allocations: 38.07 MB / 357.6 MB, free: 1.738 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006354/0.0006356, allocations: 12 kB / 423.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5989/0.5996, allocations: 56.32 MB / 480.3 MB, free: 9.207 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2361/0.8357, allocations: 102.3 MB / 0.5689 GB, free: 100 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004456/0.8363, allocations: 95.94 kB / 0.569 GB, free: 4 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07169/0.908, allocations: 14.35 MB / 0.583 GB, free: 1.504 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.707e-06/0.9081, allocations: 0 / 0.583 GB, free: 1.504 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001589/0.9083, allocations: 20.16 kB / 0.583 GB, free: 1.484 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.005003/0.9133, allocations: 1.03 MB / 0.584 GB, free: 400 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.86e-05/0.9134, allocations: 8.031 kB / 0.584 GB, free: 392 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007298/0.9142, allocations: 87.91 kB / 0.5841 GB, free: 304 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005872/0.9201, allocations: 0.8732 MB / 0.5849 GB, free: 15.38 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002627/0.9204, allocations: 109.3 kB / 0.585 GB, free: 15.26 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004223/0.9208, allocations: 68.55 kB / 0.5851 GB, free: 15.2 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0035/0.9243, allocations: 0.8786 MB / 0.586 GB, free: 14.27 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.572e-05/0.9244, allocations: 0 / 0.586 GB, free: 14.27 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001732/0.9246, allocations: 28 kB / 0.586 GB, free: 14.24 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.313e-05/0.9247, allocations: 16 kB / 0.586 GB, free: 14.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002367/0.927, allocations: 0.61 MB / 0.5866 GB, free: 13.62 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00783/0.9349, allocations: 2.758 MB / 0.5893 GB, free: 10.75 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003065/0.9381, allocations: 0.9044 MB / 0.5902 GB, free: 9.754 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001175/0.9393, allocations: 294.2 kB / 0.5905 GB, free: 9.461 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.264e-05/0.9394, allocations: 8.312 kB / 0.5905 GB, free: 9.453 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001303/0.9408, allocations: 354.5 kB / 0.5908 GB, free: 9.086 MB / 426.7 MB Notification: Performance of pre-optimization done (n=41): time 9.387e-06/0.9408, allocations: 0 / 0.5908 GB, free: 9.086 MB / 426.7 MB Notification: Performance of matching and sorting (n=42): time 0.008664/0.9495, allocations: 1.972 MB / 0.5927 GB, free: 6.996 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001415/0.9497, allocations: 114.8 kB / 0.5928 GB, free: 6.859 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001427/0.9512, allocations: 0.5066 MB / 0.5933 GB, free: 6.348 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001107/0.9513, allocations: 33.7 kB / 0.5934 GB, free: 6.309 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005688/0.9519, allocations: 366.5 kB / 0.5937 GB, free: 5.945 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002849/0.9522, allocations: 146 kB / 0.5939 GB, free: 5.801 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.763e-05/0.9523, allocations: 12 kB / 0.5939 GB, free: 5.789 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003009/0.9526, allocations: 374.7 kB / 0.5942 GB, free: 5.414 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006912/0.9533, allocations: 217 kB / 0.5944 GB, free: 5.203 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008728/0.9542, allocations: 386.2 kB / 0.5948 GB, free: 4.754 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001607/0.9559, allocations: 0.6059 MB / 0.5954 GB, free: 4.07 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.9559, allocations: 0 / 0.5954 GB, free: 4.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002573/0.9585, allocations: 0.8508 MB / 0.5962 GB, free: 3.184 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001281/0.9586, allocations: 57.62 kB / 0.5963 GB, free: 3.121 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.7e-05/0.9587, allocations: 8.594 kB / 0.5963 GB, free: 3.113 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005112/0.9592, allocations: 73.61 kB / 0.5964 GB, free: 3.035 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007468/0.96, allocations: 107.8 kB / 0.5965 GB, free: 2.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004133/0.9642, allocations: 2.845 MB / 0.5992 GB, free: 15.81 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001644/0.9659, allocations: 39.88 kB / 0.5993 GB, free: 15.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005001/0.9665, allocations: 39.92 kB / 0.5993 GB, free: 15.73 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.dc_ac.modulator.gates[1],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.t0,dc_ac.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): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008948/0.9674, allocations: 277.4 kB / 0.5996 GB, free: 15.45 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002337/0.9677, allocations: 55.34 kB / 0.5996 GB, free: 15.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00278/0.9705, allocations: 0.6963 MB / 0.6003 GB, free: 14.67 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.334e-05/0.9705, allocations: 8 kB / 0.6003 GB, free: 14.66 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.9705, allocations: 0 / 0.6003 GB, free: 14.66 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.215e-05/0.9706, allocations: 3.984 kB / 0.6003 GB, free: 14.66 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005086/0.9757, allocations: 1.535 MB / 0.6018 GB, free: 13.03 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.221e-05/0.9757, allocations: 4 kB / 0.6018 GB, free: 13.03 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005208/0.9763, allocations: 55.91 kB / 0.6019 GB, free: 12.97 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004065/0.9767, allocations: 81.56 kB / 0.602 GB, free: 12.89 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.239e-05/0.9768, allocations: 15.98 kB / 0.602 GB, free: 12.87 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003591/0.9804, allocations: 2.833 MB / 0.6047 GB, free: 9.773 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/0.9805, allocations: 4.062 kB / 0.6047 GB, free: 9.77 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003874/0.9843, allocations: 1.051 MB / 0.6058 GB, free: 8.668 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005826/0.985, allocations: 172.4 kB / 0.6059 GB, free: 8.48 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002914/0.9853, allocations: 31.98 kB / 0.606 GB, free: 8.449 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007757/0.9861, allocations: 47.94 kB / 0.606 GB, free: 8.402 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001552/0.9863, allocations: 27.91 kB / 0.606 GB, free: 8.375 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.124e-05/0.9864, allocations: 19.98 kB / 0.6061 GB, free: 8.355 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001003/0.9874, allocations: 354.8 kB / 0.6064 GB, free: 8.012 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.186e-06/0.9874, allocations: 0 / 0.6064 GB, free: 8.012 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001497/0.989, allocations: 155.9 kB / 0.6065 GB, free: 7.859 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 34 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003874/0.9894, allocations: 131.7 kB / 0.6067 GB, free: 7.723 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002935/0.9923, allocations: 0.9021 MB / 0.6075 GB, free: 6.777 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/0.9924, allocations: 0 / 0.6075 GB, free: 6.777 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001531/0.9939, allocations: 0.5058 MB / 0.608 GB, free: 6.246 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001732/0.9957, allocations: 138.2 kB / 0.6082 GB, free: 6.109 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005541/1.001, allocations: 1.862 MB / 0.61 GB, free: 4.203 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001121/1.002, allocations: 0.9798 MB / 0.6109 GB, free: 3.195 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002942/1.003, allocations: 43.42 kB / 0.611 GB, free: 3.152 MB / 442.7 MB Notification: Performance of SimCode: time 1.252e-06/1.003, allocations: 0 / 0.611 GB, free: 3.152 MB / 442.7 MB Notification: Performance of Templates: time 0.03584/1.039, allocations: 13.37 MB / 0.624 GB, free: 5.781 MB / 458.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)