Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.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.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",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.001159/0.001159, allocations: 178.3 kB / 16.38 MB, free: 5.766 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.374/1.374, allocations: 194.5 MB / 211.6 MB, free: 3.059 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.001726/0.001727, allocations: 121.2 kB / 256.9 MB, free: 4.332 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1635/0.1635, allocations: 37.99 MB / 340.1 MB, free: 1.363 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003845/0.0003845, allocations: 12 kB / 403.9 MB, free: 68.71 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09032/0.09073, allocations: 53.23 MB / 457.1 MB, free: 15.47 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3319/0.4227, allocations: 97.04 MB / 0.5412 GB, free: 14.17 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/0.423, allocations: 102.9 kB / 0.5413 GB, free: 14.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04442/0.4675, allocations: 15.67 MB / 0.5566 GB, free: 0.4961 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.083e-06/0.4675, allocations: 0 / 0.5566 GB, free: 0.4961 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.517e-05/0.4676, allocations: 20 kB / 0.5566 GB, free: 488 kB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.003267/0.4709, allocations: 1.113 MB / 0.5577 GB, free: 15.35 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/0.4709, allocations: 16.02 kB / 0.5577 GB, free: 15.33 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003745/0.4713, allocations: 104.5 kB / 0.5578 GB, free: 15.26 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003304/0.4716, allocations: 83.16 kB / 0.5579 GB, free: 15.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003504/0.4752, allocations: 1.24 MB / 0.5591 GB, free: 14.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004811/0.4757, allocations: 347.2 kB / 0.5594 GB, free: 13.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000175/0.4758, allocations: 65.75 kB / 0.5595 GB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002375/0.4782, allocations: 1.099 MB / 0.5605 GB, free: 12.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.4783, allocations: 3.938 kB / 0.5605 GB, free: 12.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.75e-05/0.4783, allocations: 20.81 kB / 0.5606 GB, free: 12.83 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.705e-05/0.4784, allocations: 19.98 kB / 0.5606 GB, free: 12.81 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002697/0.4811, allocations: 1.192 MB / 0.5617 GB, free: 11.91 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005462/0.4865, allocations: 3.261 MB / 0.5649 GB, free: 9.227 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002187/0.4888, allocations: 0.8426 MB / 0.5658 GB, free: 8.547 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.038e-05/0.4888, allocations: 8.438 kB / 0.5658 GB, free: 8.539 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001467/0.4903, allocations: 0.6804 MB / 0.5664 GB, free: 7.973 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.364e-06/0.4903, allocations: 0 / 0.5664 GB, free: 7.973 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.003776/0.4941, allocations: 1.556 MB / 0.5679 GB, free: 6.727 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.592e-05/0.4942, allocations: 144.2 kB / 0.5681 GB, free: 6.559 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004093/0.4946, allocations: 342.4 kB / 0.5684 GB, free: 6.281 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.58e-05/0.4947, allocations: 40.8 kB / 0.5684 GB, free: 6.242 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002311/0.4949, allocations: 295.9 kB / 0.5687 GB, free: 6.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/0.4951, allocations: 166.4 kB / 0.5689 GB, free: 5.879 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.809e-05/0.4951, allocations: 15.12 kB / 0.5689 GB, free: 5.871 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.4953, allocations: 358.9 kB / 0.5692 GB, free: 5.531 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009938/0.4963, allocations: 489.7 kB / 0.5697 GB, free: 5.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00105/0.4974, allocations: 0.594 MB / 0.5703 GB, free: 4.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00098/0.4984, allocations: 0.4906 MB / 0.5708 GB, free: 4.305 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.4984, allocations: 7.938 kB / 0.5708 GB, free: 4.297 MB / 378.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002177/0.5006, allocations: 1.162 MB / 0.5719 GB, free: 3.383 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.993e-05/0.5006, allocations: 48.69 kB / 0.572 GB, free: 3.332 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.5006, allocations: 7.984 kB / 0.572 GB, free: 3.324 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.5007, allocations: 4 kB / 0.572 GB, free: 3.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005667/0.5063, allocations: 1.591 MB / 0.5735 GB, free: 1.734 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00753/0.5139, allocations: 4.98 MB / 0.5784 GB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000803/0.5147, allocations: 135.2 kB / 0.5785 GB, free: 12.78 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.688e-05/0.5148, allocations: 39.66 kB / 0.5786 GB, free: 12.75 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,system.initime,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.sigdel_t,inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,inverter.modulator.t0) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004303/0.5152, allocations: 256.5 kB / 0.5788 GB, free: 12.54 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.798e-05/0.5153, allocations: 51.38 kB / 0.5788 GB, free: 12.49 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002466/0.5178, allocations: 1.107 MB / 0.5799 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.792e-06/0.5178, allocations: 8 kB / 0.5799 GB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.5178, allocations: 3.953 kB / 0.5799 GB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.5179, allocations: 3.984 kB / 0.5799 GB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003715/0.5216, allocations: 2.228 MB / 0.5821 GB, free: 9.762 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/0.5216, allocations: 8.141 kB / 0.5821 GB, free: 9.754 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006517/0.5281, allocations: 1.833 MB / 0.5839 GB, free: 7.922 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.947e-06/0.5281, allocations: 4 kB / 0.5839 GB, free: 7.918 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.859e-05/0.5282, allocations: 15.05 kB / 0.5839 GB, free: 7.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/0.5282, allocations: 4 kB / 0.5839 GB, free: 7.906 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.5282, allocations: 7.984 kB / 0.5839 GB, free: 7.898 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00375/0.532, allocations: 1.96 MB / 0.5859 GB, free: 6.289 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003405/0.5323, allocations: 198.2 kB / 0.586 GB, free: 6.105 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.867e-05/0.5324, allocations: 31.8 kB / 0.5861 GB, free: 6.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006667/0.5331, allocations: 123.3 kB / 0.5862 GB, free: 5.973 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001956/0.5333, allocations: 96.91 kB / 0.5863 GB, free: 5.887 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.724e-05/0.5334, allocations: 19.42 kB / 0.5863 GB, free: 5.871 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002899/0.5337, allocations: 267.1 kB / 0.5866 GB, free: 5.664 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5337, allocations: 0 / 0.5866 GB, free: 5.664 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006655/0.5343, allocations: 187.2 kB / 0.5867 GB, free: 5.496 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004296/0.5387, allocations: 2.959 MB / 0.5896 GB, free: 2.906 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0065/0.5452, allocations: 2.439 MB / 0.592 GB, free: 0.7344 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.5452, allocations: 0 / 0.592 GB, free: 0.7344 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003384/0.5486, allocations: 1.191 MB / 0.5932 GB, free: 15.68 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000649/0.5492, allocations: 115.2 kB / 0.5933 GB, free: 15.59 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008776/0.558, allocations: 6.576 MB / 0.5997 GB, free: 9.031 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005123/0.5586, allocations: 0.9371 MB / 0.6006 GB, free: 8.066 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005779/0.5591, allocations: 164.6 kB / 0.6008 GB, free: 7.906 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003247/0.5595, allocations: 191.4 kB / 0.601 GB, free: 7.719 MB / 410.7 MB Notification: Performance of SimCode: time 1.052e-06/0.5595, allocations: 0 / 0.601 GB, free: 7.719 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02658/0.5861, allocations: 12.8 MB / 0.6135 GB, free: 10.93 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001545/0.5863, allocations: 212.7 kB / 0.6137 GB, free: 10.68 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.212/2.798, allocations: 0 / 0.6137 GB, free: 10.68 MB / 426.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)