Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001092/0.001092, allocations: 178.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.245/1.245, allocations: 194.5 MB / 211.6 MB, free: 3.059 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001631/0.001631, allocations: 106 kB / 256.9 MB, free: 4.352 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1582/0.1582, allocations: 38 MB / 340.1 MB, free: 1.352 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003277/0.0003276, allocations: 11.98 kB / 403.8 MB, free: 68.79 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06977/0.07012, allocations: 53.23 MB / 457 MB, free: 15.55 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2676/0.3377, allocations: 97.14 MB / 0.5412 GB, free: 14.15 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003054/0.3381, allocations: 94.06 kB / 0.5413 GB, free: 14.1 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03916/0.3773, allocations: 14.34 MB / 0.5553 GB, free: 1.746 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3773, allocations: 0 / 0.5553 GB, free: 1.746 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.032e-05/0.3774, allocations: 24.16 kB / 0.5553 GB, free: 1.723 MB / 362.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.00267/0.3801, allocations: 1.044 MB / 0.5563 GB, free: 0.668 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.3801, allocations: 16.02 kB / 0.5563 GB, free: 0.6523 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003208/0.3805, allocations: 86.97 kB / 0.5564 GB, free: 0.5664 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003627/0.3841, allocations: 1.188 MB / 0.5576 GB, free: 15.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001349/0.3843, allocations: 115.3 kB / 0.5577 GB, free: 15.44 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001924/0.3845, allocations: 66.17 kB / 0.5577 GB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00165/0.3861, allocations: 0.8715 MB / 0.5586 GB, free: 14.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.955e-05/0.3862, allocations: 3.938 kB / 0.5586 GB, free: 14.7 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.58e-05/0.3862, allocations: 29.5 kB / 0.5586 GB, free: 14.7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.538e-05/0.3863, allocations: 16 kB / 0.5586 GB, free: 14.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001163/0.3874, allocations: 0.6111 MB / 0.5592 GB, free: 14.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003983/0.3914, allocations: 2.758 MB / 0.5619 GB, free: 11.87 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001623/0.3931, allocations: 0.9114 MB / 0.5628 GB, free: 11.01 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.895e-05/0.3931, allocations: 4.391 kB / 0.5628 GB, free: 11.01 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006733/0.3938, allocations: 358 kB / 0.5632 GB, free: 10.71 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 3.186e-06/0.3938, allocations: 0 / 0.5632 GB, free: 10.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.004209/0.398, allocations: 1.965 MB / 0.5651 GB, free: 8.914 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.022e-05/0.3981, allocations: 117.7 kB / 0.5652 GB, free: 8.777 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005576/0.3987, allocations: 462.4 kB / 0.5656 GB, free: 8.406 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.702e-05/0.3987, allocations: 36.7 kB / 0.5657 GB, free: 8.371 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002611/0.399, allocations: 359.7 kB / 0.566 GB, free: 8.109 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001196/0.3991, allocations: 139 kB / 0.5661 GB, free: 7.992 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.34e-05/0.3992, allocations: 6.688 kB / 0.5661 GB, free: 7.992 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.3993, allocations: 374.5 kB / 0.5665 GB, free: 7.641 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003102/0.3996, allocations: 203.2 kB / 0.5667 GB, free: 7.512 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004052/0.4001, allocations: 371.7 kB / 0.5671 GB, free: 7.148 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004001/0.4005, allocations: 289.7 kB / 0.5673 GB, free: 6.957 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.4005, allocations: 0 / 0.5673 GB, free: 6.957 MB / 378.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001097/0.4016, allocations: 0.8334 MB / 0.5681 GB, free: 6.266 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.151e-05/0.4016, allocations: 56.88 kB / 0.5682 GB, free: 6.211 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/0.4017, allocations: 4 kB / 0.5682 GB, free: 6.207 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002244/0.4019, allocations: 76.52 kB / 0.5683 GB, free: 6.137 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004149/0.4023, allocations: 107.2 kB / 0.5684 GB, free: 6.035 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002122/0.4045, allocations: 2.853 MB / 0.5712 GB, free: 3.059 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003953/0.4049, allocations: 41.91 kB / 0.5712 GB, free: 3.027 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.417e-05/0.405, allocations: 36.55 kB / 0.5712 GB, free: 2.996 MB / 378.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.0003691/0.4054, allocations: 272 kB / 0.5715 GB, free: 2.777 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.571e-05/0.4054, allocations: 67.17 kB / 0.5716 GB, free: 2.711 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001361/0.4068, allocations: 0.6918 MB / 0.5722 GB, free: 2.137 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.4068, allocations: 4 kB / 0.5722 GB, free: 2.133 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.4068, allocations: 3.938 kB / 0.5722 GB, free: 2.129 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.4069, allocations: 7.984 kB / 0.5723 GB, free: 2.121 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002434/0.4093, allocations: 1.541 MB / 0.5738 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.4093, allocations: 4 kB / 0.5738 GB, free: 0.7773 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002957/0.4096, allocations: 59.97 kB / 0.5738 GB, free: 0.7188 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001898/0.4098, allocations: 67.16 kB / 0.5739 GB, free: 0.6562 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.949e-05/0.4099, allocations: 18.17 kB / 0.5739 GB, free: 0.6445 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001986/0.4119, allocations: 2.85 MB / 0.5767 GB, free: 13.67 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4119, allocations: 0 / 0.5767 GB, free: 13.67 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001837/0.4137, allocations: 1.092 MB / 0.5777 GB, free: 12.72 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002782/0.414, allocations: 171.2 kB / 0.5779 GB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.778e-05/0.4141, allocations: 31.36 kB / 0.5779 GB, free: 12.54 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003889/0.4145, allocations: 47.39 kB / 0.578 GB, free: 12.49 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.863e-05/0.4146, allocations: 39.22 kB / 0.578 GB, free: 12.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.282e-05/0.4146, allocations: 19.86 kB / 0.578 GB, free: 12.44 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003681/0.415, allocations: 354.6 kB / 0.5784 GB, free: 12.17 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.415, allocations: 0 / 0.5784 GB, free: 12.17 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006516/0.4157, allocations: 159.4 kB / 0.5785 GB, free: 12.03 MB / 394.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.0001802/0.4159, allocations: 130.6 kB / 0.5787 GB, free: 11.9 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001358/0.4172, allocations: 0.8829 MB / 0.5795 GB, free: 11.15 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4172, allocations: 0 / 0.5795 GB, free: 11.15 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008189/0.4181, allocations: 0.4947 MB / 0.58 GB, free: 10.69 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006302/0.4187, allocations: 136.7 kB / 0.5801 GB, free: 10.59 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002563/0.4213, allocations: 1.801 MB / 0.5819 GB, free: 8.875 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005625/0.4219, allocations: 0.9861 MB / 0.5829 GB, free: 7.887 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003691/0.4222, allocations: 112.9 kB / 0.583 GB, free: 7.777 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.4224, allocations: 39.44 kB / 0.583 GB, free: 7.738 MB / 394.7 MB Notification: Performance of SimCode: time 6.11e-07/0.4224, allocations: 0 / 0.583 GB, free: 7.738 MB / 394.7 MB Notification: Performance of Templates: time 0.01164/0.434, allocations: 6.734 MB / 0.5896 GB, free: 1.02 MB / 394.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)