Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_cpp_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.3+maint.om/package.mo): time 0.001421/0.001421, allocations: 189 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.153/2.153, allocations: 205.3 MB / 213.7 MB, free: 1.746 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001042/0.001042, allocations: 90.64 kB / 261.8 MB, free: 1.684 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2605/0.2605, allocations: 37.99 MB / 347.7 MB, free: 5.773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.715e-05/2.73e-05, allocations: 8 kB / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1107, allocations: 56.32 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5268/0.6376, allocations: 111.7 MB / 0.5644 GB, free: 80 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003306/0.638, allocations: 93.69 kB / 0.5645 GB, free: 32 kB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/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.1-master/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.109/0.7469, allocations: 23.91 MB / 0.5878 GB, free: 11.7 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.747, allocations: 0 / 0.5878 GB, free: 11.7 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.51e-05/0.7471, allocations: 23.94 kB / 0.5879 GB, free: 11.68 MB / 394.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.004622/0.7517, allocations: 1.325 MB / 0.5891 GB, free: 10.35 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.038e-05/0.7518, allocations: 8.031 kB / 0.5892 GB, free: 10.34 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001558/0.7534, allocations: 170.4 kB / 0.5893 GB, free: 10.18 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006403/0.7598, allocations: 1.388 MB / 0.5907 GB, free: 8.988 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002284/0.76, allocations: 142.9 kB / 0.5908 GB, free: 8.836 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003041/0.7604, allocations: 59.98 kB / 0.5909 GB, free: 8.777 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002514/0.7629, allocations: 0.9265 MB / 0.5918 GB, free: 8.172 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002927/0.7658, allocations: 1.309 MB / 0.5931 GB, free: 7.125 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.193e-05/0.7659, allocations: 3.984 kB / 0.5931 GB, free: 7.121 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00014/0.7661, allocations: 4 kB / 0.5931 GB, free: 7.117 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001503/0.7662, allocations: 60.86 kB / 0.5931 GB, free: 7.066 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009692/0.7759, allocations: 4.587 MB / 0.5976 GB, free: 3.09 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002049/0.778, allocations: 0.8658 MB / 0.5984 GB, free: 2.441 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001094/0.7791, allocations: 471.9 kB / 0.5989 GB, free: 2.133 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.809e-05/0.7792, allocations: 16.44 kB / 0.5989 GB, free: 2.121 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001364/0.7806, allocations: 0.6174 MB / 0.5995 GB, free: 1.641 MB / 394.7 MB Notification: Performance of pre-optimization done (n=82): time 3.557e-06/0.7806, allocations: 0 / 0.5995 GB, free: 1.641 MB / 394.7 MB Notification: Performance of matching and sorting (n=83): time 0.005864/0.7865, allocations: 2.287 MB / 0.6017 GB, free: 15.72 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.868e-05/0.7866, allocations: 127.2 kB / 0.6019 GB, free: 15.58 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000711/0.7874, allocations: 416.5 kB / 0.6023 GB, free: 15.25 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001159/0.7875, allocations: 37.58 kB / 0.6023 GB, free: 15.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004946/0.788, allocations: 498.5 kB / 0.6028 GB, free: 14.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000384/0.7884, allocations: 282.7 kB / 0.603 GB, free: 14.56 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.552e-05/0.7885, allocations: 0 / 0.603 GB, free: 14.56 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002114/0.7887, allocations: 354.8 kB / 0.6034 GB, free: 14.22 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001076/0.7898, allocations: 491.9 kB / 0.6039 GB, free: 13.91 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001272/0.7911, allocations: 0.7375 MB / 0.6046 GB, free: 13.24 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001342/0.7924, allocations: 0.5704 MB / 0.6051 GB, free: 12.85 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.7925, allocations: 8 kB / 0.6051 GB, free: 12.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.003606/0.7961, allocations: 1.441 MB / 0.6065 GB, free: 11.71 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001051/0.7962, allocations: 60.73 kB / 0.6066 GB, free: 11.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002908/0.7991, allocations: 1.239 MB / 0.6078 GB, free: 10.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005663/0.7998, allocations: 95.02 kB / 0.6079 GB, free: 10.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001447/0.8012, allocations: 192.2 kB / 0.6081 GB, free: 10.47 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003295/0.8045, allocations: 2.868 MB / 0.6109 GB, free: 7.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001226/0.8058, allocations: 63.98 kB / 0.6109 GB, free: 7.438 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000174/0.806, allocations: 71.88 kB / 0.611 GB, free: 7.367 MB / 410.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.0003708/0.8064, allocations: 167.7 kB / 0.6112 GB, free: 7.199 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002359/0.8087, allocations: 0.9646 MB / 0.6121 GB, free: 6.207 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001789/0.8089, allocations: 71.14 kB / 0.6122 GB, free: 6.137 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002603/0.8115, allocations: 1.041 MB / 0.6132 GB, free: 5.062 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.345e-05/0.8116, allocations: 23.95 kB / 0.6132 GB, free: 5.039 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.8116, allocations: 0 / 0.6132 GB, free: 5.039 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.426e-05/0.8116, allocations: 3.984 kB / 0.6132 GB, free: 5.035 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005081/0.8167, allocations: 2.117 MB / 0.6153 GB, free: 2.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.193e-06/0.8168, allocations: 0 / 0.6153 GB, free: 2.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001389/0.8182, allocations: 147.8 kB / 0.6154 GB, free: 2.695 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001036/0.8183, allocations: 24.84 kB / 0.6155 GB, free: 2.668 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.894e-05/0.8184, allocations: 19.97 kB / 0.6155 GB, free: 2.648 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001175/0.8196, allocations: 1.329 MB / 0.6168 GB, free: 1.203 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.8196, allocations: 0 / 0.6168 GB, free: 1.203 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00365/0.8233, allocations: 1.702 MB / 0.6184 GB, free: 15.43 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005978/0.8239, allocations: 240.1 kB / 0.6187 GB, free: 15.18 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002772/0.8242, allocations: 59.95 kB / 0.6187 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001363/0.8256, allocations: 103.9 kB / 0.6188 GB, free: 15.02 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001967/0.8258, allocations: 48.7 kB / 0.6189 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.8259, allocations: 35.95 kB / 0.6189 GB, free: 14.93 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005267/0.8264, allocations: 310.9 kB / 0.6192 GB, free: 14.63 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.8264, allocations: 0 / 0.6192 GB, free: 14.63 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001345/0.8278, allocations: 220.2 kB / 0.6194 GB, free: 14.41 MB / 426.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.004332/0.8321, allocations: 2.591 MB / 0.6219 GB, free: 11.75 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00343/0.8356, allocations: 1.521 MB / 0.6234 GB, free: 10.19 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.8356, allocations: 0 / 0.6234 GB, free: 10.19 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001235/0.8369, allocations: 0.5519 MB / 0.624 GB, free: 9.633 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001135/0.838, allocations: 110 kB / 0.6241 GB, free: 9.523 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005844/0.8439, allocations: 2.156 MB / 0.6262 GB, free: 7.309 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001063/0.845, allocations: 1.134 MB / 0.6273 GB, free: 6.148 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008884/0.8459, allocations: 331.3 kB / 0.6276 GB, free: 5.824 MB / 426.7 MB Notification: Performance of SimCode: time 1.022e-06/0.8459, allocations: 0 / 0.6276 GB, free: 5.824 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.514/4.36, allocations: 20.81 MB / 0.6479 GB, free: 1.004 MB / 442.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Inverter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Inverter.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)