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.00161/0.00161, allocations: 180.2 kB / 16.39 MB, free: 5.766 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.371/1.371, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0007845/0.0007845, allocations: 92.14 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1622/0.1622, allocations: 38.06 MB / 357.2 MB, free: 1.883 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000287/0.000287, allocations: 8 kB / 424 MB, free: 37.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.2834, allocations: 56.31 MB / 480.3 MB, free: 9.555 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1413/0.4248, allocations: 102.1 MB / 0.5688 GB, free: 296 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002345/0.4251, allocations: 95.95 kB / 0.5689 GB, free: 200 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04336/0.4685, allocations: 15.69 MB / 0.5842 GB, free: 328 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.4685, allocations: 0 / 0.5842 GB, free: 328 kB / 410.7 MB Notification: Performance of Transformations before backend: time 4.051e-05/0.4685, allocations: 23.92 kB / 0.5842 GB, free: 304 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.00229/0.4708, allocations: 1.113 MB / 0.5853 GB, free: 15.12 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.4709, allocations: 12.03 kB / 0.5853 GB, free: 15.11 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001677/0.4711, allocations: 79.16 kB / 0.5854 GB, free: 15.03 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003322/0.4744, allocations: 1.243 MB / 0.5866 GB, free: 13.74 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004399/0.4749, allocations: 350.8 kB / 0.5869 GB, free: 13.35 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001275/0.475, allocations: 60 kB / 0.587 GB, free: 13.29 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002182/0.4772, allocations: 1.107 MB / 0.5881 GB, free: 12.14 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.4772, allocations: 7.891 kB / 0.5881 GB, free: 12.14 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.608e-05/0.4773, allocations: 24 kB / 0.5881 GB, free: 12.11 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.374e-05/0.4773, allocations: 12 kB / 0.5881 GB, free: 12.1 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002591/0.4799, allocations: 1.198 MB / 0.5893 GB, free: 10.9 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004994/0.4849, allocations: 3.263 MB / 0.5925 GB, free: 7.543 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002133/0.4871, allocations: 0.8471 MB / 0.5933 GB, free: 6.68 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.707e-05/0.4871, allocations: 8.438 kB / 0.5933 GB, free: 6.672 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001396/0.4885, allocations: 0.6734 MB / 0.594 GB, free: 5.973 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 2.235e-06/0.4886, allocations: 3.938 kB / 0.594 GB, free: 5.969 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.003721/0.4923, allocations: 1.554 MB / 0.5955 GB, free: 4.41 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.47e-05/0.4924, allocations: 140.5 kB / 0.5956 GB, free: 4.242 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004196/0.4928, allocations: 345.1 kB / 0.596 GB, free: 3.895 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.768e-05/0.4929, allocations: 41.7 kB / 0.596 GB, free: 3.848 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002266/0.4931, allocations: 300.2 kB / 0.5963 GB, free: 3.551 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001602/0.4933, allocations: 153.8 kB / 0.5964 GB, free: 3.398 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.953e-05/0.4933, allocations: 15.94 kB / 0.5964 GB, free: 3.383 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.4935, allocations: 366.7 kB / 0.5968 GB, free: 3.016 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001021/0.4945, allocations: 0.4891 MB / 0.5973 GB, free: 2.527 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001061/0.4956, allocations: 0.5796 MB / 0.5978 GB, free: 1.902 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009773/0.4966, allocations: 0.4957 MB / 0.5983 GB, free: 1.402 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.4966, allocations: 0 / 0.5983 GB, free: 1.402 MB / 426.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002378/0.499, allocations: 1.156 MB / 0.5994 GB, free: 236 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.159e-05/0.4991, allocations: 49.69 kB / 0.5995 GB, free: 180 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.4991, allocations: 4 kB / 0.5995 GB, free: 176 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.4991, allocations: 8 kB / 0.5995 GB, free: 168 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00555/0.5046, allocations: 1.588 MB / 0.6011 GB, free: 14.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007782/0.5125, allocations: 4.977 MB / 0.6059 GB, free: 9.336 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001003/0.5135, allocations: 151.3 kB / 0.6061 GB, free: 9.188 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/0.5136, allocations: 39.97 kB / 0.6061 GB, free: 9.148 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.0006249/0.5143, allocations: 247.4 kB / 0.6063 GB, free: 8.895 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.5144, allocations: 47.44 kB / 0.6064 GB, free: 8.848 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00279/0.5172, allocations: 1.114 MB / 0.6075 GB, free: 7.73 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.5172, allocations: 4 kB / 0.6075 GB, free: 7.727 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.5172, allocations: 0 / 0.6075 GB, free: 7.727 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.5172, allocations: 7.984 kB / 0.6075 GB, free: 7.719 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0042/0.5214, allocations: 2.2 MB / 0.6096 GB, free: 5.445 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.634e-06/0.5215, allocations: 4 kB / 0.6096 GB, free: 5.441 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006845/0.5283, allocations: 1.834 MB / 0.6114 GB, free: 3.605 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.529e-05/0.5284, allocations: 4 kB / 0.6114 GB, free: 3.602 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001168/0.5285, allocations: 23.92 kB / 0.6115 GB, free: 3.578 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.953e-06/0.5285, allocations: 7.938 kB / 0.6115 GB, free: 3.57 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.5285, allocations: 4 kB / 0.6115 GB, free: 3.566 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00409/0.5326, allocations: 1.966 MB / 0.6134 GB, free: 1.527 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003939/0.533, allocations: 208.4 kB / 0.6136 GB, free: 1.305 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00011/0.5331, allocations: 27.98 kB / 0.6136 GB, free: 1.277 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006823/0.5338, allocations: 123.9 kB / 0.6137 GB, free: 1.156 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002289/0.5341, allocations: 91.84 kB / 0.6138 GB, free: 1.066 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.064e-05/0.5341, allocations: 19.98 kB / 0.6138 GB, free: 1.047 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003034/0.5344, allocations: 259.2 kB / 0.6141 GB, free: 0.7969 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5344, allocations: 0 / 0.6141 GB, free: 0.7969 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0006959/0.5351, allocations: 199.5 kB / 0.6143 GB, free: 0.6016 MB / 442.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.0002241/0.5354, allocations: 146.5 kB / 0.6144 GB, free: 464 kB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006784/0.5422, allocations: 2.433 MB / 0.6168 GB, free: 14 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.5422, allocations: 0 / 0.6168 GB, free: 14 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00359/0.5458, allocations: 1.191 MB / 0.6179 GB, free: 12.81 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007487/0.5466, allocations: 120 kB / 0.6181 GB, free: 12.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003656/0.5502, allocations: 1.885 MB / 0.6199 GB, free: 10.76 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005241/0.5508, allocations: 0.941 MB / 0.6208 GB, free: 9.789 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0005887/0.5514, allocations: 164.6 kB / 0.621 GB, free: 9.629 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000178/0.5516, allocations: 39.44 kB / 0.621 GB, free: 9.59 MB / 458.7 MB Notification: Performance of SimCode: time 7.51e-07/0.5516, allocations: 0 / 0.621 GB, free: 9.59 MB / 458.7 MB Notification: Performance of Templates: time 0.01275/0.5643, allocations: 7.855 MB / 0.6287 GB, free: 1.75 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/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.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