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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001671/0.001671, allocations: 179.4 kB / 8.351 MB, free: 0.7227 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.687/1.687, allocations: 194.3 MB / 203.1 MB, free: 12.95 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.001636/0.001636, allocations: 120.7 kB / 248.1 MB, free: 15.96 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.189/0.189, allocations: 37.93 MB / 330.9 MB, free: 2.641 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.272e-05/2.279e-05, allocations: 8 kB / 390.5 MB, free: 6.984 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3497/0.3498, allocations: 53.23 MB / 443.7 MB, free: 17.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5239/0.8737, allocations: 106.7 MB / 0.5375 GB, free: 37.53 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002549/0.8741, allocations: 88.69 kB / 0.5376 GB, free: 37.53 MB / 378.7 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.07794/0.952, allocations: 23.89 MB / 0.5609 GB, free: 34.47 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.9521, allocations: 0.75 kB / 0.5609 GB, free: 34.47 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.353e-05/0.9521, allocations: 23.53 kB / 0.5609 GB, free: 34.46 MB / 378.7 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.003154/0.9553, allocations: 1.335 MB / 0.5622 GB, free: 33.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.9553, allocations: 15.72 kB / 0.5622 GB, free: 33.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001098/0.9565, allocations: 164.7 kB / 0.5624 GB, free: 33.53 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003459/0.9599, allocations: 1.376 MB / 0.5638 GB, free: 32.86 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001188/0.9601, allocations: 141.2 kB / 0.5639 GB, free: 32.76 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/0.9602, allocations: 66.39 kB / 0.5639 GB, free: 32.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001603/0.9618, allocations: 0.93 MB / 0.5649 GB, free: 32.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001625/0.9635, allocations: 1.307 MB / 0.5661 GB, free: 32.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.788e-05/0.9635, allocations: 3.938 kB / 0.5661 GB, free: 32.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.913e-05/0.9636, allocations: 7.859 kB / 0.5661 GB, free: 32.15 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.956e-05/0.9637, allocations: 56.2 kB / 0.5662 GB, free: 32.15 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005022/0.9687, allocations: 4.597 MB / 0.5707 GB, free: 29.26 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00101/0.9698, allocations: 0.8574 MB / 0.5715 GB, free: 29.02 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005597/0.9703, allocations: 479 kB / 0.572 GB, free: 28.95 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.703e-05/0.9704, allocations: 12.36 kB / 0.572 GB, free: 28.95 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006961/0.9711, allocations: 0.6152 MB / 0.5726 GB, free: 28.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=82): time 3.026e-06/0.9711, allocations: 7.984 kB / 0.5726 GB, free: 28.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=83): time 0.003174/0.9743, allocations: 2.285 MB / 0.5748 GB, free: 27.76 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.893e-05/0.9744, allocations: 118.5 kB / 0.5749 GB, free: 27.63 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004716/0.9749, allocations: 420.8 kB / 0.5753 GB, free: 27.47 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.504e-05/0.9749, allocations: 37.2 kB / 0.5754 GB, free: 27.44 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002969/0.9752, allocations: 464.4 kB / 0.5758 GB, free: 27.12 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000181/0.9754, allocations: 275.6 kB / 0.5761 GB, free: 26.93 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.296e-05/0.9755, allocations: 3.938 kB / 0.5761 GB, free: 26.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.9756, allocations: 385.4 kB / 0.5765 GB, free: 26.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005499/0.9761, allocations: 484.8 kB / 0.5769 GB, free: 26.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006046/0.9768, allocations: 0.7391 MB / 0.5776 GB, free: 26.18 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006422/0.9774, allocations: 0.5845 MB / 0.5782 GB, free: 26.06 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/0.9774, allocations: 3.906 kB / 0.5782 GB, free: 26.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.001821/0.9793, allocations: 1.464 MB / 0.5796 GB, free: 25.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.306e-05/0.9793, allocations: 64.14 kB / 0.5797 GB, free: 25.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001371/0.9807, allocations: 1.229 MB / 0.5809 GB, free: 25.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003394/0.9811, allocations: 102 kB / 0.581 GB, free: 25.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006979/0.9818, allocations: 198.4 kB / 0.5812 GB, free: 25.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00168/0.9835, allocations: 2.857 MB / 0.584 GB, free: 22.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006628/0.9841, allocations: 63.25 kB / 0.584 GB, free: 22.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.718e-05/0.9842, allocations: 66.58 kB / 0.5841 GB, free: 22.57 MB / 378.7 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.000225/0.9845, allocations: 162.5 kB / 0.5843 GB, free: 22.43 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001314/0.9858, allocations: 0.9575 MB / 0.5852 GB, free: 22.13 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/0.9859, allocations: 66.41 kB / 0.5853 GB, free: 22.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001345/0.9873, allocations: 1.056 MB / 0.5863 GB, free: 21.76 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.461e-05/0.9873, allocations: 19.61 kB / 0.5863 GB, free: 21.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.9873, allocations: 3.938 kB / 0.5863 GB, free: 21.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.9873, allocations: 7.891 kB / 0.5863 GB, free: 21.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002734/0.9901, allocations: 2.107 MB / 0.5884 GB, free: 20.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.68e-06/0.9901, allocations: 3.938 kB / 0.5884 GB, free: 20.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006744/0.9908, allocations: 145.2 kB / 0.5885 GB, free: 20.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.961e-05/0.9909, allocations: 31.69 kB / 0.5886 GB, free: 20.83 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.954e-05/0.9909, allocations: 19.47 kB / 0.5886 GB, free: 20.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005853/0.9915, allocations: 1.342 MB / 0.5899 GB, free: 19.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.9915, allocations: 0 / 0.5899 GB, free: 19.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001764/0.9933, allocations: 1.687 MB / 0.5915 GB, free: 18.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000332/0.9937, allocations: 233.7 kB / 0.5918 GB, free: 18.77 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001635/0.9938, allocations: 71.41 kB / 0.5918 GB, free: 18.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006921/0.9945, allocations: 97.48 kB / 0.5919 GB, free: 18.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.9946, allocations: 58.11 kB / 0.592 GB, free: 18.69 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.508e-05/0.9947, allocations: 26.47 kB / 0.592 GB, free: 18.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002842/0.995, allocations: 303.3 kB / 0.5923 GB, free: 18.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.995, allocations: 4 kB / 0.5923 GB, free: 18.56 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000939/0.9959, allocations: 229.8 kB / 0.5925 GB, free: 18.55 MB / 378.7 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.002096/0.998, allocations: 2.593 MB / 0.595 GB, free: 17.15 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001732/0.9998, allocations: 1.503 MB / 0.5965 GB, free: 16.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.9998, allocations: 0.8125 kB / 0.5965 GB, free: 16.73 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005794/1, allocations: 0.5657 MB / 0.5971 GB, free: 16.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006597/1.001, allocations: 109.8 kB / 0.5972 GB, free: 16.54 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003154/1.004, allocations: 2.071 MB / 0.5992 GB, free: 15.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005057/1.005, allocations: 1.134 MB / 0.6003 GB, free: 14.65 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005698/1.005, allocations: 227.5 kB / 0.6005 GB, free: 14.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004406/1.006, allocations: 324.8 kB / 0.6008 GB, free: 14.52 MB / 378.7 MB Notification: Performance of SimCode: time 5.81e-07/1.006, allocations: 0 / 0.6008 GB, free: 14.52 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03449/1.04, allocations: 15.66 MB / 0.6161 GB, free: 15.15 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001887/1.041, allocations: 135.7 kB / 0.6162 GB, free: 14.96 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.531/3.572, allocations: 0 / 0.6162 GB, free: 14.96 MB / 394.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)