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"}) [: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.2+maint.om/package.mo): time 0.001067/0.001067, allocations: 179.7 kB / 8.131 MB, free: 2.219 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.023/1.023, allocations: 194.2 MB / 202.8 MB, free: 8.742 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.001641/0.001641, allocations: 125.2 kB / 247.7 MB, free: 6.371 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1539/0.1539, allocations: 37.92 MB / 330.5 MB, free: 6.926 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.186/0.3399, allocations: 59.34 MB / 389.9 MB, free: 78.03 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08364/0.4236, allocations: 53.23 MB / 443.1 MB, free: 24.89 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2527/0.6763, allocations: 106.7 MB / 0.5369 GB, free: 1.027 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002419/0.6766, allocations: 91.78 kB / 0.537 GB, free: 0.9805 MB / 346.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: 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.06872/0.7453, allocations: 24.9 MB / 0.5613 GB, free: 11.63 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.7454, allocations: 8 kB / 0.5613 GB, free: 11.62 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009474/0.7463, allocations: 166.6 kB / 0.5615 GB, free: 11.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003951/0.7503, allocations: 1.401 MB / 0.5628 GB, free: 10.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002128/0.7505, allocations: 140.8 kB / 0.563 GB, free: 10.1 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002415/0.7508, allocations: 70.95 kB / 0.563 GB, free: 10.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001629/0.7524, allocations: 0.9564 MB / 0.564 GB, free: 9.398 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001956/0.7544, allocations: 1.325 MB / 0.5653 GB, free: 8.332 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.992e-05/0.7544, allocations: 3.938 kB / 0.5653 GB, free: 8.328 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001215/0.7546, allocations: 11.98 kB / 0.5653 GB, free: 8.316 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.99e-05/0.7547, allocations: 57.92 kB / 0.5653 GB, free: 8.266 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006095/0.7608, allocations: 4.604 MB / 0.5698 GB, free: 4.273 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009583/0.7618, allocations: 0.7506 MB / 0.5706 GB, free: 3.734 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007707/0.7625, allocations: 0.5213 MB / 0.5711 GB, free: 3.367 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.237e-05/0.7626, allocations: 8.031 kB / 0.5711 GB, free: 3.359 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007638/0.7634, allocations: 0.5968 MB / 0.5717 GB, free: 2.902 MB / 378.7 MB Notification: Performance of pre-optimization done (n=82): time 3.577e-06/0.7634, allocations: 4 kB / 0.5717 GB, free: 2.898 MB / 378.7 MB Notification: Performance of matching and sorting (n=83): time 0.003512/0.7669, allocations: 2.277 MB / 0.5739 GB, free: 0.9805 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.25e-05/0.767, allocations: 126.1 kB / 0.574 GB, free: 0.8398 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000444/0.7674, allocations: 423 kB / 0.5744 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.134e-05/0.7675, allocations: 44.75 kB / 0.5745 GB, free: 472 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002462/0.7678, allocations: 401.3 kB / 0.5748 GB, free: 104 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002172/0.768, allocations: 277.7 kB / 0.5751 GB, free: 15.86 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.467e-05/0.768, allocations: 0 / 0.5751 GB, free: 15.86 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.7682, allocations: 382.7 kB / 0.5755 GB, free: 15.51 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006339/0.7688, allocations: 498.4 kB / 0.5759 GB, free: 15.19 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007873/0.7696, allocations: 0.7587 MB / 0.5767 GB, free: 14.51 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001141/0.7708, allocations: 0.5916 MB / 0.5773 GB, free: 14.09 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/0.7708, allocations: 4 kB / 0.5773 GB, free: 14.09 MB / 394.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002236/0.773, allocations: 1.508 MB / 0.5787 GB, free: 12.89 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.7731, allocations: 4 kB / 0.5787 GB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001724/0.7748, allocations: 1.191 MB / 0.5799 GB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000387/0.7752, allocations: 106.4 kB / 0.58 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007995/0.776, allocations: 194.2 kB / 0.5802 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00258/0.7786, allocations: 2.849 MB / 0.583 GB, free: 8.754 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007803/0.7794, allocations: 51.95 kB / 0.583 GB, free: 8.703 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001678/0.7796, allocations: 63.95 kB / 0.5831 GB, free: 8.641 MB / 394.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.0002866/0.7799, allocations: 147.9 kB / 0.5832 GB, free: 8.488 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001929/0.7801, allocations: 75.14 kB / 0.5833 GB, free: 8.414 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001755/0.7818, allocations: 1.046 MB / 0.5843 GB, free: 7.336 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.887e-05/0.7819, allocations: 16 kB / 0.5843 GB, free: 7.32 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.7819, allocations: 3.984 kB / 0.5843 GB, free: 7.316 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.7819, allocations: 4 kB / 0.5843 GB, free: 7.312 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003253/0.7852, allocations: 2.071 MB / 0.5864 GB, free: 5.164 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.112e-06/0.7852, allocations: 4 kB / 0.5864 GB, free: 5.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007776/0.786, allocations: 139.8 kB / 0.5865 GB, free: 5.023 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.21e-05/0.7861, allocations: 20.86 kB / 0.5865 GB, free: 5 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.645e-05/0.7862, allocations: 19.97 kB / 0.5865 GB, free: 4.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008769/0.787, allocations: 1.321 MB / 0.5878 GB, free: 3.539 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.7871, allocations: 0 / 0.5878 GB, free: 3.539 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002303/0.7894, allocations: 1.721 MB / 0.5895 GB, free: 1.742 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003251/0.7926, allocations: 2.652 MB / 0.5921 GB, free: 15 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004275/0.7931, allocations: 236.2 kB / 0.5923 GB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002481/0.7933, allocations: 71.94 kB / 0.5924 GB, free: 14.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008511/0.7942, allocations: 103.9 kB / 0.5925 GB, free: 14.58 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/0.7943, allocations: 48.48 kB / 0.5925 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.086e-05/0.7944, allocations: 31.92 kB / 0.5926 GB, free: 14.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0003956/0.7948, allocations: 306.9 kB / 0.5929 GB, free: 14.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001601/0.7964, allocations: 220.1 kB / 0.5931 GB, free: 13.99 MB / 410.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.0003357/0.7968, allocations: 193.1 kB / 0.5933 GB, free: 13.79 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001991/0.7988, allocations: 1.366 MB / 0.5946 GB, free: 12.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.7988, allocations: 0 / 0.5946 GB, free: 12.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007999/0.7996, allocations: 0.5821 MB / 0.5952 GB, free: 11.82 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006405/0.8002, allocations: 106.5 kB / 0.5953 GB, free: 11.72 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003281/0.8035, allocations: 1.862 MB / 0.5971 GB, free: 9.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001074/0.8046, allocations: 1.203 MB / 0.5983 GB, free: 8.59 MB / 410.7 MB Notification: Performance of SimCode: time 3.51e-07/0.8046, allocations: 0 / 0.5983 GB, free: 8.59 MB / 410.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)