Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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_latest_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009803/0.0009803, allocations: 180.7 kB / 8.132 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.09/1.09, allocations: 205.2 MB / 213.7 MB, free: 13.85 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.0008792/0.0008793, allocations: 91.72 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1614/0.1614, allocations: 37.97 MB / 347.7 MB, free: 7.488 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1616/0.3231, allocations: 62.44 MB / 410.1 MB, free: 46.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0808/0.4039, allocations: 56.31 MB / 466.4 MB, free: 6.391 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3052/0.7092, allocations: 111.7 MB / 0.5645 GB, free: 14.84 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002781/0.7095, allocations: 87.95 kB / 0.5646 GB, free: 14.75 MB / 410.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: 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.07194/0.7814, allocations: 24.9 MB / 0.5889 GB, free: 5.555 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.7815, allocations: 8 kB / 0.5889 GB, free: 5.547 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001151/0.7827, allocations: 158.6 kB / 0.5891 GB, free: 5.391 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004314/0.787, allocations: 1.399 MB / 0.5904 GB, free: 3.949 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002046/0.7872, allocations: 151.1 kB / 0.5906 GB, free: 3.781 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002648/0.7875, allocations: 59.91 kB / 0.5907 GB, free: 3.723 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001797/0.7893, allocations: 0.9606 MB / 0.5916 GB, free: 2.762 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002107/0.7914, allocations: 1.335 MB / 0.5929 GB, free: 1.348 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.159e-05/0.7915, allocations: 7.922 kB / 0.5929 GB, free: 1.34 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.948e-05/0.7916, allocations: 8 kB / 0.5929 GB, free: 1.332 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.039e-05/0.7917, allocations: 57.97 kB / 0.593 GB, free: 1.277 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00626/0.7979, allocations: 4.594 MB / 0.5975 GB, free: 12.54 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/0.799, allocations: 0.7454 MB / 0.5982 GB, free: 11.77 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008283/0.7999, allocations: 0.5275 MB / 0.5987 GB, free: 11.24 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.429e-05/0.7999, allocations: 20.64 kB / 0.5987 GB, free: 11.22 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008551/0.8008, allocations: 0.5925 MB / 0.5993 GB, free: 10.61 MB / 442.7 MB Notification: Performance of pre-optimization done (n=82): time 3.166e-06/0.8008, allocations: 0 / 0.5993 GB, free: 10.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=83): time 0.004073/0.8049, allocations: 2.287 MB / 0.6015 GB, free: 8.234 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.526e-05/0.805, allocations: 127.5 kB / 0.6016 GB, free: 8.086 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005204/0.8055, allocations: 417.9 kB / 0.602 GB, free: 7.672 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.41e-05/0.8056, allocations: 41.69 kB / 0.6021 GB, free: 7.625 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000302/0.8059, allocations: 402.8 kB / 0.6025 GB, free: 7.223 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002625/0.8062, allocations: 268.2 kB / 0.6027 GB, free: 6.957 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.545e-05/0.8062, allocations: 4 kB / 0.6027 GB, free: 6.953 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002108/0.8065, allocations: 390.8 kB / 0.6031 GB, free: 6.562 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007162/0.8072, allocations: 498.1 kB / 0.6036 GB, free: 6.078 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009497/0.8082, allocations: 0.7559 MB / 0.6043 GB, free: 5.207 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009364/0.8091, allocations: 0.5881 MB / 0.6049 GB, free: 4.617 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.8091, allocations: 4 kB / 0.6049 GB, free: 4.613 MB / 442.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002441/0.8116, allocations: 1.507 MB / 0.6064 GB, free: 3.074 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.8116, allocations: 4.625 kB / 0.6064 GB, free: 3.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001732/0.8133, allocations: 1.201 MB / 0.6075 GB, free: 1.848 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000431/0.8138, allocations: 97.64 kB / 0.6076 GB, free: 1.746 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007988/0.8146, allocations: 187.6 kB / 0.6078 GB, free: 1.562 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00244/0.817, allocations: 2.839 MB / 0.6106 GB, free: 14.49 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000701/0.8178, allocations: 56.02 kB / 0.6106 GB, free: 14.44 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001248/0.8179, allocations: 63.95 kB / 0.6107 GB, free: 14.38 MB / 458.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.0002647/0.8182, allocations: 151.8 kB / 0.6108 GB, free: 14.22 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.8183, allocations: 75.14 kB / 0.6109 GB, free: 14.14 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001731/0.82, allocations: 1.054 MB / 0.6119 GB, free: 13.06 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.607e-05/0.8201, allocations: 12 kB / 0.612 GB, free: 13.05 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.8201, allocations: 4 kB / 0.612 GB, free: 13.05 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.8201, allocations: 7.922 kB / 0.612 GB, free: 13.04 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002971/0.8231, allocations: 2.071 MB / 0.614 GB, free: 10.89 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.8231, allocations: 0 / 0.614 GB, free: 10.89 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007588/0.8239, allocations: 131.8 kB / 0.6141 GB, free: 10.76 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-05/0.8239, allocations: 24.84 kB / 0.6141 GB, free: 10.73 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-05/0.824, allocations: 19.97 kB / 0.6142 GB, free: 10.71 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008788/0.8249, allocations: 1.317 MB / 0.6154 GB, free: 9.281 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.8249, allocations: 8.062 kB / 0.6155 GB, free: 9.273 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002175/0.8271, allocations: 1.717 MB / 0.6171 GB, free: 7.484 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002915/0.83, allocations: 2.652 MB / 0.6197 GB, free: 4.75 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003776/0.8304, allocations: 236.2 kB / 0.6199 GB, free: 4.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002132/0.8306, allocations: 75.94 kB / 0.62 GB, free: 4.426 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007766/0.8314, allocations: 99.8 kB / 0.6201 GB, free: 4.328 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.8316, allocations: 52.53 kB / 0.6202 GB, free: 4.277 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.061e-05/0.8317, allocations: 31.91 kB / 0.6202 GB, free: 4.246 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0003694/0.832, allocations: 306.9 kB / 0.6205 GB, free: 3.949 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001502/0.8335, allocations: 236.1 kB / 0.6207 GB, free: 3.719 MB / 458.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.0003519/0.8339, allocations: 187.9 kB / 0.6209 GB, free: 3.523 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001922/0.8358, allocations: 1.37 MB / 0.6222 GB, free: 2.129 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.8359, allocations: 0 / 0.6222 GB, free: 2.129 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007667/0.8366, allocations: 0.579 MB / 0.6228 GB, free: 1.539 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006415/0.8373, allocations: 94.02 kB / 0.6229 GB, free: 1.449 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00318/0.8405, allocations: 1.862 MB / 0.6247 GB, free: 15.54 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001084/0.8416, allocations: 1.207 MB / 0.6259 GB, free: 14.31 MB / 474.7 MB Notification: Performance of SimCode: time 4.21e-07/0.8416, allocations: 0 / 0.6259 GB, free: 14.31 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Inverter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Inverter.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)