Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter") translateModel(PowerSystems.Examples.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001361/0.00136, allocations: 187.9 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.377/1.377, allocations: 194.3 MB / 203.1 MB, free: 9.32 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.001691/0.001691, allocations: 116.9 kB / 248.1 MB, free: 6.344 MB / 203.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.2361/0.2361, allocations: 37.92 MB / 330.9 MB, free: 7.32 MB / 283.1 MB Notification: Performance of FrontEnd - loaded program: time 1.442e-05/1.444e-05, allocations: 4 kB / 390.4 MB, free: 78.23 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1129, allocations: 53.24 MB / 443.6 MB, free: 25.1 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3697/0.4827, allocations: 106.7 MB / 0.5374 GB, free: 1.695 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002462/0.483, allocations: 86.83 kB / 0.5375 GB, free: 1.652 MB / 347.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/Control/Modulation.mo:17:7-17:46:writable] Error: Variable ac_dc.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter.Modulator.$for loop scope$. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/Control/Modulation.mo:20:7-20:46:writable] Error: Variable ac_dc.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter.Modulator.$for loop scope$. Notification: Performance of FrontEnd - DAE generated: time 0.06789/0.5509, allocations: 23.88 MB / 0.5608 GB, free: 13.36 MB / 379.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.5509, allocations: 3.984 kB / 0.5608 GB, free: 13.36 MB / 379.1 MB Notification: Performance of Transformations before backend: time 6.159e-05/0.551, allocations: 27.98 kB / 0.5608 GB, free: 13.33 MB / 379.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.003046/0.554, allocations: 1.326 MB / 0.5621 GB, free: 12 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.5541, allocations: 8.031 kB / 0.5621 GB, free: 11.99 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001054/0.5552, allocations: 166.6 kB / 0.5623 GB, free: 11.82 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003964/0.5591, allocations: 1.384 MB / 0.5637 GB, free: 10.64 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001812/0.5593, allocations: 146.8 kB / 0.5638 GB, free: 10.48 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002628/0.5596, allocations: 59.91 kB / 0.5639 GB, free: 10.42 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001655/0.5613, allocations: 0.9383 MB / 0.5648 GB, free: 9.805 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002028/0.5633, allocations: 1.299 MB / 0.566 GB, free: 8.766 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.921e-05/0.5634, allocations: 0 / 0.566 GB, free: 8.766 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.987e-05/0.5635, allocations: 11.94 kB / 0.566 GB, free: 8.754 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.148e-05/0.5636, allocations: 61.11 kB / 0.5661 GB, free: 8.699 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006301/0.5699, allocations: 4.601 MB / 0.5706 GB, free: 4.711 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00131/0.5713, allocations: 0.8452 MB / 0.5714 GB, free: 4.086 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006714/0.572, allocations: 483.8 kB / 0.5719 GB, free: 3.766 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.577e-05/0.572, allocations: 12.48 kB / 0.5719 GB, free: 3.75 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008192/0.5729, allocations: 0.6148 MB / 0.5725 GB, free: 3.277 MB / 379.1 MB Notification: Performance of pre-optimization done (n=82): time 2.986e-06/0.5729, allocations: 0 / 0.5725 GB, free: 3.277 MB / 379.1 MB Notification: Performance of matching and sorting (n=83): time 0.003691/0.5766, allocations: 2.289 MB / 0.5747 GB, free: 1.352 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.99e-05/0.5767, allocations: 131.1 kB / 0.5749 GB, free: 1.199 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004909/0.5772, allocations: 420.7 kB / 0.5753 GB, free: 0.8711 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 7.275e-05/0.5772, allocations: 36.33 kB / 0.5753 GB, free: 0.832 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003337/0.5776, allocations: 458.6 kB / 0.5757 GB, free: 480 kB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002331/0.5778, allocations: 273.5 kB / 0.576 GB, free: 240 kB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.86e-05/0.5779, allocations: 4 kB / 0.576 GB, free: 236 kB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.5781, allocations: 384.9 kB / 0.5764 GB, free: 15.88 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006265/0.5787, allocations: 480.6 kB / 0.5768 GB, free: 15.57 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008277/0.5795, allocations: 0.7469 MB / 0.5776 GB, free: 14.91 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008609/0.5804, allocations: 0.5791 MB / 0.5781 GB, free: 14.5 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.5804, allocations: 0 / 0.5781 GB, free: 14.5 MB / 395.1 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002269/0.5827, allocations: 1.469 MB / 0.5796 GB, free: 13.35 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.968e-05/0.5828, allocations: 64.3 kB / 0.5796 GB, free: 13.29 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001835/0.5846, allocations: 1.225 MB / 0.5808 GB, free: 12.22 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003932/0.585, allocations: 102.1 kB / 0.5809 GB, free: 12.11 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007816/0.5858, allocations: 203.6 kB / 0.5811 GB, free: 11.91 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00253/0.5884, allocations: 2.867 MB / 0.5839 GB, free: 8.816 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007312/0.5891, allocations: 59.8 kB / 0.584 GB, free: 8.758 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001429/0.5893, allocations: 67.95 kB / 0.584 GB, free: 8.691 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.ac_dc.modulator.gates[1],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 108 * Array equations: 2 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002866/0.5896, allocations: 159.9 kB / 0.5842 GB, free: 8.527 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001682/0.5898, allocations: 71.16 kB / 0.5842 GB, free: 8.457 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00184/0.5916, allocations: 1.045 MB / 0.5853 GB, free: 7.383 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.8e-05/0.5916, allocations: 19.98 kB / 0.5853 GB, free: 7.363 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.5917, allocations: 3.953 kB / 0.5853 GB, free: 7.359 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.5917, allocations: 3.984 kB / 0.5853 GB, free: 7.355 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003089/0.5948, allocations: 2.117 MB / 0.5874 GB, free: 5.16 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.5948, allocations: 0 / 0.5874 GB, free: 5.16 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000754/0.5956, allocations: 147.8 kB / 0.5875 GB, free: 5.016 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.666e-05/0.5957, allocations: 20.86 kB / 0.5875 GB, free: 4.992 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.96e-05/0.5957, allocations: 19.97 kB / 0.5875 GB, free: 4.973 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008902/0.5966, allocations: 1.333 MB / 0.5888 GB, free: 3.523 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/0.5967, allocations: 7.969 kB / 0.5888 GB, free: 3.516 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002236/0.5989, allocations: 1.692 MB / 0.5905 GB, free: 1.75 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003768/0.5993, allocations: 240.1 kB / 0.5907 GB, free: 1.496 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001884/0.5995, allocations: 71.88 kB / 0.5908 GB, free: 1.426 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000784/0.6003, allocations: 99.8 kB / 0.5909 GB, free: 1.328 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.6004, allocations: 52.7 kB / 0.5909 GB, free: 1.273 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.474e-05/0.6005, allocations: 31.98 kB / 0.591 GB, free: 1.242 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0003601/0.6009, allocations: 298.9 kB / 0.5913 GB, free: 0.9492 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6009, allocations: 4 kB / 0.5913 GB, free: 0.9453 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0009489/0.6018, allocations: 232.2 kB / 0.5915 GB, free: 0.7188 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,ac_dc.modulator.gates[1],ac_dc.modulator.gates[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.t0[1],ac_dc.modulator.t0[2],ac_dc.modulator.t0[3],system.initime) * Number of discrete states: 12 (ac_dc.modulator.t0[3],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.t0[2],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[1],ac_dc.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 61 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003244/0.6022, allocations: 179.3 kB / 0.5917 GB, free: 0.5352 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.002089/0.6043, allocations: 1.513 MB / 0.5931 GB, free: 14.99 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.6043, allocations: 0 / 0.5931 GB, free: 14.99 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007375/0.605, allocations: 0.5529 MB / 0.5937 GB, free: 14.43 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006666/0.6057, allocations: 104.8 kB / 0.5938 GB, free: 14.33 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002848/0.6086, allocations: 1.853 MB / 0.5956 GB, free: 12.44 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007218/0.6093, allocations: 1.126 MB / 0.5967 GB, free: 11.29 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.0006524/0.61, allocations: 225.8 kB / 0.5969 GB, free: 11.07 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002063/0.6102, allocations: 67.36 kB / 0.597 GB, free: 11 MB / 411.1 MB Notification: Performance of SimCode: time 3.5e-07/0.6102, allocations: 0 / 0.597 GB, free: 11 MB / 411.1 MB Notification: Performance of Templates: time 0.01509/0.6253, allocations: 8.684 MB / 0.6054 GB, free: 2.352 MB / 411.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)