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.00135/0.00135, allocations: 171.8 kB / 17.39 MB, free: 4.395 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.535/1.535, allocations: 205.4 MB / 223.5 MB, free: 9.016 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.0007437/0.0007436, allocations: 89.47 kB / 271.9 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1752/0.1752, allocations: 38.09 MB / 358.3 MB, free: 1.738 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000328/0.0003281, allocations: 16 kB / 425.2 MB, free: 37.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2684, allocations: 56.32 MB / 481.6 MB, free: 9.598 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1386/0.407, allocations: 102.2 MB / 0.57 GB, free: 92 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002913/0.4074, allocations: 103.9 kB / 0.5701 GB, free: 15.99 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04389/0.4513, allocations: 15.67 MB / 0.5854 GB, free: 136 kB / 410.7 MB Notification: Performance of FrontEnd: time 2.103e-06/0.4513, allocations: 0 / 0.5854 GB, free: 136 kB / 410.7 MB Notification: Performance of Transformations before backend: time 6.51e-05/0.4514, allocations: 20 kB / 0.5855 GB, free: 116 kB / 410.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.003284/0.4547, allocations: 1.105 MB / 0.5865 GB, free: 14.95 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.4548, allocations: 11.97 kB / 0.5866 GB, free: 14.93 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004192/0.4552, allocations: 84.09 kB / 0.5866 GB, free: 14.85 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0024/0.4576, allocations: 0.9125 MB / 0.5875 GB, free: 13.89 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004964/0.4581, allocations: 347.4 kB / 0.5879 GB, free: 13.51 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002076/0.4583, allocations: 60.56 kB / 0.5879 GB, free: 13.45 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002429/0.4608, allocations: 1.107 MB / 0.589 GB, free: 12.3 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.162e-05/0.4608, allocations: 8 kB / 0.589 GB, free: 12.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.784e-05/0.4609, allocations: 20 kB / 0.589 GB, free: 12.28 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.663e-05/0.4609, allocations: 12 kB / 0.589 GB, free: 12.27 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002758/0.4637, allocations: 1.194 MB / 0.5902 GB, free: 11.07 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00551/0.4692, allocations: 3.276 MB / 0.5934 GB, free: 7.695 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002078/0.4713, allocations: 0.8271 MB / 0.5942 GB, free: 6.852 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001306/0.4727, allocations: 0.5951 MB / 0.5948 GB, free: 6.25 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.398e-05/0.4727, allocations: 8.438 kB / 0.5948 GB, free: 6.242 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001482/0.4742, allocations: 0.6734 MB / 0.5954 GB, free: 5.543 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 3.386e-06/0.4742, allocations: 0 / 0.5954 GB, free: 5.543 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.003868/0.4781, allocations: 1.569 MB / 0.597 GB, free: 3.969 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.553e-05/0.4782, allocations: 144.5 kB / 0.5971 GB, free: 3.797 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000556/0.4788, allocations: 385.8 kB / 0.5975 GB, free: 3.406 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.201e-05/0.4789, allocations: 41.69 kB / 0.5975 GB, free: 3.359 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002404/0.4791, allocations: 292.4 kB / 0.5978 GB, free: 3.066 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001651/0.4793, allocations: 157.8 kB / 0.598 GB, free: 2.91 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.089e-05/0.4794, allocations: 12 kB / 0.598 GB, free: 2.898 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.4795, allocations: 362.8 kB / 0.5983 GB, free: 2.535 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001018/0.4805, allocations: 0.4969 MB / 0.5988 GB, free: 2.039 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001098/0.4816, allocations: 0.5992 MB / 0.5994 GB, free: 1.398 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001923/0.4836, allocations: 0.9832 MB / 0.6003 GB, free: 380 kB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.4836, allocations: 3.938 kB / 0.6003 GB, free: 376 kB / 426.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002336/0.4859, allocations: 1.183 MB / 0.6015 GB, free: 15.17 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.554e-05/0.486, allocations: 49.69 kB / 0.6016 GB, free: 15.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.486, allocations: 4 kB / 0.6016 GB, free: 15.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.983e-05/0.486, allocations: 12.16 kB / 0.6016 GB, free: 15.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005462/0.4915, allocations: 1.584 MB / 0.6031 GB, free: 13.51 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007605/0.4991, allocations: 4.837 MB / 0.6078 GB, free: 8.414 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009037/0.5001, allocations: 135.5 kB / 0.608 GB, free: 8.281 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00017/0.5003, allocations: 47.91 kB / 0.608 GB, free: 8.234 MB / 442.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.000658/0.5009, allocations: 251.3 kB / 0.6083 GB, free: 7.977 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001836/0.5011, allocations: 51.42 kB / 0.6083 GB, free: 7.926 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002761/0.5039, allocations: 1.102 MB / 0.6094 GB, free: 6.816 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.5039, allocations: 4 kB / 0.6094 GB, free: 6.812 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.5039, allocations: 0 / 0.6094 GB, free: 6.812 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/0.5039, allocations: 7.984 kB / 0.6094 GB, free: 6.805 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004224/0.5082, allocations: 2.258 MB / 0.6116 GB, free: 4.461 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.698e-06/0.5082, allocations: 0 / 0.6116 GB, free: 4.461 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006648/0.5149, allocations: 1.842 MB / 0.6134 GB, free: 2.617 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.856e-05/0.5149, allocations: 7.938 kB / 0.6134 GB, free: 2.609 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001312/0.515, allocations: 11.98 kB / 0.6134 GB, free: 2.598 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.073e-06/0.5151, allocations: 4 kB / 0.6134 GB, free: 2.594 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.5151, allocations: 4 kB / 0.6134 GB, free: 2.59 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004237/0.5193, allocations: 1.883 MB / 0.6153 GB, free: 0.668 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000471/0.5198, allocations: 208.3 kB / 0.6155 GB, free: 456 kB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001687/0.52, allocations: 31.98 kB / 0.6155 GB, free: 424 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006967/0.5207, allocations: 119.9 kB / 0.6156 GB, free: 304 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002206/0.521, allocations: 91.84 kB / 0.6157 GB, free: 212 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.231e-05/0.521, allocations: 19.98 kB / 0.6157 GB, free: 192 kB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004209/0.5214, allocations: 263.2 kB / 0.616 GB, free: 15.93 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5215, allocations: 4 kB / 0.616 GB, free: 15.93 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0007708/0.5222, allocations: 187.6 kB / 0.6161 GB, free: 15.75 MB / 458.7 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]) * 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.0002701/0.5225, allocations: 155 kB / 0.6163 GB, free: 15.59 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008139/0.5307, allocations: 2.637 MB / 0.6189 GB, free: 12.94 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.488e-06/0.5307, allocations: 0 / 0.6189 GB, free: 12.94 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003775/0.5345, allocations: 1.198 MB / 0.62 GB, free: 11.74 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001292/0.5358, allocations: 129.9 kB / 0.6202 GB, free: 11.62 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004262/0.5401, allocations: 1.877 MB / 0.622 GB, free: 9.695 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000665/0.5408, allocations: 0.9332 MB / 0.6229 GB, free: 8.738 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0007876/0.5416, allocations: 156.6 kB / 0.6231 GB, free: 8.582 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002172/0.5419, allocations: 39.44 kB / 0.6231 GB, free: 8.543 MB / 458.7 MB Notification: Performance of SimCode: time 1.322e-06/0.5419, allocations: 0 / 0.6231 GB, free: 8.543 MB / 458.7 MB Notification: Performance of Templates: time 0.01566/0.5575, allocations: 7.997 MB / 0.6309 GB, free: 0.5625 MB / 458.7 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/jenkins1/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.heat.ports[1].T,bdCond.heat.ports[2].T,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.heat.ports[1].T,inverter.heat.ports[2].T,inverter.inverter.T[1],inverter.inverter.T[2],inverter.inverter.heat.m,inverter.inverter.heat.ports[1].T,inverter.inverter.heat.ports[2].T,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,vDC.vDC_internal