Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.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: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009887/0.0009885, allocations: 176.4 kB / 8.346 MB, free: 0.7266 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.498/1.498, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000858/0.0008581, allocations: 80.17 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1789/0.1789, allocations: 37.99 MB / 348 MB, free: 7.766 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.029e-05/2.015e-05, allocations: 0 / 410.6 MB, free: 46.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1154, allocations: 56.33 MB / 466.9 MB, free: 6.559 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.353/0.4684, allocations: 101.4 MB / 0.5549 GB, free: 9.559 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002532/0.4687, allocations: 91.94 kB / 0.555 GB, free: 9.469 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04238/0.5111, allocations: 15.54 MB / 0.5702 GB, free: 9.758 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.5111, allocations: 0 / 0.5702 GB, free: 9.758 MB / 411.1 MB Notification: Performance of Transformations before backend: time 3.386e-05/0.5112, allocations: 16 kB / 0.5702 GB, free: 9.742 MB / 411.1 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.002077/0.5133, allocations: 1.038 MB / 0.5712 GB, free: 8.645 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.5133, allocations: 8.031 kB / 0.5712 GB, free: 8.637 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001728/0.5135, allocations: 87.11 kB / 0.5713 GB, free: 8.551 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003127/0.5166, allocations: 1.23 MB / 0.5725 GB, free: 7.277 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004412/0.5171, allocations: 322.9 kB / 0.5728 GB, free: 6.914 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/0.5172, allocations: 39.91 kB / 0.5729 GB, free: 6.875 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001279/0.5185, allocations: 0.7913 MB / 0.5736 GB, free: 6.082 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001275/0.5198, allocations: 0.8199 MB / 0.5744 GB, free: 5.227 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.5198, allocations: 0 / 0.5744 GB, free: 5.227 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.07e-05/0.5199, allocations: 3.953 kB / 0.5744 GB, free: 5.223 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.645e-05/0.5199, allocations: 20 kB / 0.5745 GB, free: 5.203 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004464/0.5244, allocations: 3.163 MB / 0.5776 GB, free: 1.949 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008731/0.5253, allocations: 0.5184 MB / 0.5781 GB, free: 1.414 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000566/0.5259, allocations: 386.9 kB / 0.5784 GB, free: 1.031 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.782e-05/0.5259, allocations: 4.438 kB / 0.5784 GB, free: 1.027 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006476/0.5266, allocations: 469 kB / 0.5789 GB, free: 0.543 MB / 411.1 MB Notification: Performance of pre-optimization done (n=49): time 2.224e-06/0.5266, allocations: 0 / 0.5789 GB, free: 0.543 MB / 411.1 MB Notification: Performance of matching and sorting (n=49): time 0.001081/0.5277, allocations: 0.6326 MB / 0.5795 GB, free: 15.9 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.921e-05/0.5278, allocations: 148.3 kB / 0.5796 GB, free: 15.73 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002901/0.5281, allocations: 282.3 kB / 0.5799 GB, free: 15.45 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 5.65e-05/0.5281, allocations: 37.69 kB / 0.5799 GB, free: 15.41 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001926/0.5283, allocations: 292.8 kB / 0.5802 GB, free: 15.12 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001312/0.5285, allocations: 157.7 kB / 0.5804 GB, free: 14.96 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.779e-05/0.5285, allocations: 0 / 0.5804 GB, free: 14.96 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.5287, allocations: 358.8 kB / 0.5807 GB, free: 14.6 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004418/0.5291, allocations: 329.3 kB / 0.581 GB, free: 14.28 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005126/0.5297, allocations: 425.4 kB / 0.5814 GB, free: 13.83 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000423/0.5301, allocations: 294 kB / 0.5817 GB, free: 13.54 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.5301, allocations: 0 / 0.5817 GB, free: 13.54 MB / 427.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001121/0.5312, allocations: 0.7521 MB / 0.5825 GB, free: 12.78 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.712e-05/0.5313, allocations: 53.69 kB / 0.5825 GB, free: 12.72 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.5313, allocations: 0 / 0.5825 GB, free: 12.72 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/0.5313, allocations: 8 kB / 0.5825 GB, free: 12.71 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006362/0.5377, allocations: 1.589 MB / 0.5841 GB, free: 11.12 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00506/0.5428, allocations: 3.961 MB / 0.5879 GB, free: 6.934 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007726/0.5436, allocations: 127.5 kB / 0.5881 GB, free: 6.809 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.936e-05/0.5437, allocations: 39.97 kB / 0.5881 GB, free: 6.77 MB / 427.1 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 () * 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.0002311/0.5439, allocations: 130.6 kB / 0.5882 GB, free: 6.633 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.543e-05/0.544, allocations: 43.52 kB / 0.5883 GB, free: 6.59 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001216/0.5452, allocations: 0.6804 MB / 0.5889 GB, free: 5.902 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.5453, allocations: 4 kB / 0.5889 GB, free: 5.898 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.5453, allocations: 0 / 0.5889 GB, free: 5.898 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.5453, allocations: 4 kB / 0.5889 GB, free: 5.895 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002355/0.5476, allocations: 1.726 MB / 0.5906 GB, free: 4.094 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.5477, allocations: 4 kB / 0.5906 GB, free: 4.09 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007685/0.5554, allocations: 1.834 MB / 0.5924 GB, free: 2.254 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.188e-05/0.5554, allocations: 7.984 kB / 0.5924 GB, free: 2.246 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.884e-05/0.5554, allocations: 4 kB / 0.5924 GB, free: 2.242 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.462e-06/0.5555, allocations: 7.984 kB / 0.5924 GB, free: 2.234 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/0.5555, allocations: 11.89 kB / 0.5924 GB, free: 2.223 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001702/0.5572, allocations: 1.314 MB / 0.5937 GB, free: 0.8281 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002829/0.5575, allocations: 204.4 kB / 0.5939 GB, free: 0.6094 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001096/0.5576, allocations: 23.94 kB / 0.5939 GB, free: 0.5859 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000699/0.5583, allocations: 115.9 kB / 0.5941 GB, free: 484 kB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001973/0.5585, allocations: 95.78 kB / 0.5941 GB, free: 388 kB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.98e-05/0.5586, allocations: 19.98 kB / 0.5942 GB, free: 368 kB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0002234/0.5588, allocations: 216.6 kB / 0.5944 GB, free: 156 kB / 427.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5588, allocations: 0 / 0.5944 GB, free: 156 kB / 427.1 MB Notification: Performance of remove unused functions: time 0.0006811/0.5595, allocations: 175.6 kB / 0.5945 GB, free: 15.98 MB / 443.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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]) * 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.000227/0.5597, allocations: 133 kB / 0.5947 GB, free: 15.84 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.006068/0.5658, allocations: 2.038 MB / 0.5967 GB, free: 13.8 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.5658, allocations: 4 kB / 0.5967 GB, free: 13.79 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003082/0.5689, allocations: 0.9836 MB / 0.5976 GB, free: 12.81 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005964/0.5695, allocations: 111.2 kB / 0.5977 GB, free: 12.7 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002943/0.5725, allocations: 1.263 MB / 0.599 GB, free: 11.39 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005417/0.573, allocations: 0.9486 MB / 0.5999 GB, free: 10.42 MB / 443.1 MB Notification: Performance of simCode: alias equations: time 0.0005522/0.5736, allocations: 152.5 kB / 0.6 GB, free: 10.27 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001749/0.5738, allocations: 35.44 kB / 0.6001 GB, free: 10.23 MB / 443.1 MB Notification: Performance of SimCode: time 3.5e-07/0.5738, allocations: 0 / 0.6001 GB, free: 10.23 MB / 443.1 MB Notification: Performance of Templates: time 0.01172/0.5855, allocations: 7.071 MB / 0.607 GB, free: 3.168 MB / 443.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,meterAC.i,meterAC.p,meterAC.v,meterDC.i,meterDC.p,meterDC.v Variables in the result:bdCond.T_amb,bdCond.heat.m,bdCond.m,ind.L,ind.R,ind.RL_base[1],ind.RL_base[2],ind.S_nom,ind.V_nom,ind.dynType,ind.f_nom,ind.i_start,ind.puUnits,ind.r,ind.v_start,ind.x,inverter.heat.m,inverter.inverter.heat.m,inverter.inverter.par.Hsw_nom,inverter.inverter.par.I_nom,inverter.inverter.par.T0_loss,inverter.inverter.par.V_nom,inverter.inverter.par.Vf,inverter.inverter.par.eps[1],inverter.inverter.par.eps[2],inverter.modulator.del_t,inverter.modulator.delp_t,inverter.modulator.dt_min,inverter.modulator.f_carr,inverter.modulator.m,inverter.modulator.ngt[1],inverter.modulator.ngt[2],inverter.modulator.pgt[1],inverter.modulator.pgt[2],meterAC.I_base,meterAC.S_nom,meterAC.V_base,meterAC.V_nom,meterAC.av,meterAC.i,meterAC.p,meterAC.puUnits,meterAC.tcst,meterAC.v,meterDC.I_base,meterDC.S_nom,meterDC.V_base,meterDC.V_nom,meterDC.av,meterDC.i,meterDC.p,meterDC.puUnits,meterDC.tcst,meterDC.v,meterDC.v_ab[1],select.alpha0,select.f,select.fType,select.use_vPhasor_in,select.v0,system.alpha0,system.dynType,system.f,system.fType,system.f_lim[1],system.f_lim[2],system.f_nom,system.omega_nom,system.refType,system.synRef,system.w_nom,time,vCtrl.a_end,vCtrl.a_start,vCtrl.coef,vCtrl.n,vCtrl.ph_end,vCtrl.ph_start,vCtrl.t_change,vCtrl.t_duration,vDC.S_nom,vDC.V_base,vDC.V_nom,vDC.pol,vDC.puUnits,vDC.use_vDC_in,vDC.v0