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.001428/0.001428, allocations: 182 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.735/1.735, allocations: 194.3 MB / 208.4 MB, free: 6.711 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.001651/0.001651, allocations: 104.8 kB / 253.5 MB, free: 9.59 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1743/0.1743, allocations: 37.91 MB / 336.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.796e-05/4.836e-05, allocations: 4 kB / 397.6 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3822/0.3822, allocations: 53.22 MB / 450.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6134/0.9957, allocations: 107.4 MB / 0.5451 GB, free: 29.02 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004601/0.9963, allocations: 91.25 kB / 0.5452 GB, free: 29.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06558/1.062, allocations: 24.02 MB / 0.5687 GB, free: 24.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.663e-06/1.062, allocations: 0 / 0.5687 GB, free: 24.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.036e-05/1.062, allocations: 23.25 kB / 0.5687 GB, free: 24.32 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.002693/1.065, allocations: 1.34 MB / 0.57 GB, free: 23.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.543e-05/1.065, allocations: 7.625 kB / 0.57 GB, free: 23.38 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002293/1.065, allocations: 162.6 kB / 0.5702 GB, free: 23.31 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008363/1.066, allocations: 162.5 kB / 0.5703 GB, free: 23.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003776/1.07, allocations: 1.371 MB / 0.5717 GB, free: 22.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000152/1.07, allocations: 175.3 kB / 0.5718 GB, free: 22.49 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001649/1.07, allocations: 102.1 kB / 0.5719 GB, free: 22.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002191/1.072, allocations: 1.421 MB / 0.5733 GB, free: 21.99 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.514e-05/1.072, allocations: 3.875 kB / 0.5733 GB, free: 21.99 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001236/1.072, allocations: 44.25 kB / 0.5734 GB, free: 21.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001055/1.072, allocations: 56.3 kB / 0.5734 GB, free: 21.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001637/1.074, allocations: 1.043 MB / 0.5744 GB, free: 21.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006251/1.08, allocations: 4.787 MB / 0.5791 GB, free: 18.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001269/1.082, allocations: 0.8919 MB / 0.58 GB, free: 18.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006887/1.082, allocations: 498.8 kB / 0.5805 GB, free: 18.62 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.294e-05/1.082, allocations: 12.12 kB / 0.5805 GB, free: 18.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008654/1.083, allocations: 0.6371 MB / 0.5811 GB, free: 18.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=82): time 3.907e-06/1.083, allocations: 3.625 kB / 0.5811 GB, free: 18.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=83): time 0.003828/1.087, allocations: 2.376 MB / 0.5834 GB, free: 17.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.555e-05/1.087, allocations: 122.3 kB / 0.5835 GB, free: 17.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005765/1.088, allocations: 0.5063 MB / 0.584 GB, free: 17.13 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.154e-05/1.088, allocations: 59.2 kB / 0.5841 GB, free: 17.09 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002607/1.088, allocations: 447.8 kB / 0.5845 GB, free: 16.81 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001845/1.088, allocations: 284.3 kB / 0.5848 GB, free: 16.62 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.594e-05/1.088, allocations: 21.5 kB / 0.5848 GB, free: 16.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001157/1.089, allocations: 389.4 kB / 0.5852 GB, free: 16.28 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006038/1.089, allocations: 0.4934 MB / 0.5857 GB, free: 16.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007263/1.09, allocations: 0.7686 MB / 0.5864 GB, free: 15.85 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007764/1.091, allocations: 0.6435 MB / 0.587 GB, free: 15.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/1.091, allocations: 0 / 0.587 GB, free: 15.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002158/1.093, allocations: 1.603 MB / 0.5886 GB, free: 15.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.811e-05/1.093, allocations: 64.69 kB / 0.5887 GB, free: 15.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001671/1.095, allocations: 1.357 MB / 0.59 GB, free: 14.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003989/1.095, allocations: 105 kB / 0.5901 GB, free: 14.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007194/1.096, allocations: 201.2 kB / 0.5903 GB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00219/1.098, allocations: 2.979 MB / 0.5932 GB, free: 12.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007978/1.099, allocations: 76.08 kB / 0.5933 GB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001334/1.099, allocations: 64.95 kB / 0.5933 GB, free: 12 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.0003059/1.099, allocations: 199.1 kB / 0.5935 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001896/1.099, allocations: 73.94 kB / 0.5936 GB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001825/1.101, allocations: 1.102 MB / 0.5947 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.862e-05/1.101, allocations: 19.42 kB / 0.5947 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/1.101, allocations: 0 / 0.5947 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/1.101, allocations: 7.859 kB / 0.5947 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003562/1.105, allocations: 2.294 MB / 0.5969 GB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.782e-06/1.105, allocations: 0 / 0.5969 GB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007168/1.106, allocations: 146.8 kB / 0.5971 GB, free: 10.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001014/1.106, allocations: 27.91 kB / 0.5971 GB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.86e-05/1.106, allocations: 22.3 kB / 0.5971 GB, free: 10.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009622/1.107, allocations: 1.39 MB / 0.5985 GB, free: 9.129 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/1.107, allocations: 0 / 0.5985 GB, free: 9.129 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002669/1.11, allocations: 1.738 MB / 0.6002 GB, free: 8.555 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005597/1.11, allocations: 250.8 kB / 0.6004 GB, free: 8.387 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002942/1.11, allocations: 78.45 kB / 0.6005 GB, free: 8.375 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008651/1.111, allocations: 113.2 kB / 0.6006 GB, free: 8.332 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001742/1.112, allocations: 49.36 kB / 0.6006 GB, free: 8.312 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.359e-05/1.112, allocations: 36.06 kB / 0.6007 GB, free: 8.305 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000637/1.112, allocations: 382.4 kB / 0.601 GB, free: 8.184 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.31e-07/1.112, allocations: 0 / 0.601 GB, free: 8.184 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001506/1.114, allocations: 262.1 kB / 0.6013 GB, free: 8.168 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.003442/1.117, allocations: 2.658 MB / 0.6039 GB, free: 6.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002711/1.12, allocations: 1.576 MB / 0.6054 GB, free: 5.898 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/1.12, allocations: 0 / 0.6054 GB, free: 5.898 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007657/1.121, allocations: 0.5771 MB / 0.606 GB, free: 5.312 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00094/1.122, allocations: 154.8 kB / 0.6061 GB, free: 5.168 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004672/1.126, allocations: 2.17 MB / 0.6083 GB, free: 2.949 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008324/1.127, allocations: 1.126 MB / 0.6094 GB, free: 1.793 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007795/1.128, allocations: 242.5 kB / 0.6096 GB, free: 1.551 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005524/1.129, allocations: 327.3 kB / 0.6099 GB, free: 1.23 MB / 378.7 MB Notification: Performance of SimCode: time 1.764e-06/1.129, allocations: 0 / 0.6099 GB, free: 1.23 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05168/1.18, allocations: 17.69 MB / 0.6272 GB, free: 15.53 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002352/1.181, allocations: 167.9 kB / 0.6273 GB, free: 15.31 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.827/4.007, allocations: 0 / 0.6273 GB, free: 15.31 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)