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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00117/0.001171, allocations: 185.2 kB / 8.135 MB, free: 2.191 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.297/1.297, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.001106/0.001106, allocations: 99.38 kB / 261.8 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1696/0.1696, allocations: 37.97 MB / 347.7 MB, free: 7.469 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.372e-06/6.412e-06, allocations: 0 / 410 MB, free: 46.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09268/0.0927, allocations: 56.32 MB / 466.3 MB, free: 6.461 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2932/0.386, allocations: 101.3 MB / 0.5544 GB, free: 9.219 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002661/0.3863, allocations: 87.95 kB / 0.5544 GB, free: 9.133 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.04605/0.4324, allocations: 15.36 MB / 0.5694 GB, free: 9.605 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.938e-05/0.4324, allocations: 15.98 kB / 0.5695 GB, free: 9.59 MB / 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.002349/0.4348, allocations: 1.065 MB / 0.5705 GB, free: 8.465 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.4348, allocations: 8.031 kB / 0.5705 GB, free: 8.457 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002158/0.4351, allocations: 87.33 kB / 0.5706 GB, free: 8.371 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00368/0.4388, allocations: 1.23 MB / 0.5718 GB, free: 7.098 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004661/0.4392, allocations: 338.8 kB / 0.5721 GB, free: 6.719 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001325/0.4394, allocations: 39.94 kB / 0.5722 GB, free: 6.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001558/0.441, allocations: 0.8186 MB / 0.573 GB, free: 5.859 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/0.4423, allocations: 0.8427 MB / 0.5738 GB, free: 4.977 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/0.4424, allocations: 0 / 0.5738 GB, free: 4.977 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.987e-05/0.4425, allocations: 4 kB / 0.5738 GB, free: 4.973 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.975e-05/0.4425, allocations: 15.91 kB / 0.5738 GB, free: 4.957 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005504/0.448, allocations: 3.206 MB / 0.5769 GB, free: 1.66 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009258/0.449, allocations: 0.5363 MB / 0.5775 GB, free: 1.109 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000629/0.4496, allocations: 398.8 kB / 0.5778 GB, free: 0.7148 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.3e-05/0.4497, allocations: 12.44 kB / 0.5778 GB, free: 0.7031 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007214/0.4504, allocations: 473 kB / 0.5783 GB, free: 220 kB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 2.314e-06/0.4504, allocations: 0 / 0.5783 GB, free: 220 kB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.001163/0.4516, allocations: 0.6286 MB / 0.5789 GB, free: 15.58 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.655e-05/0.4517, allocations: 140.6 kB / 0.579 GB, free: 15.41 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003279/0.452, allocations: 294.5 kB / 0.5793 GB, free: 15.12 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.072e-05/0.4521, allocations: 29.7 kB / 0.5794 GB, free: 15.09 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001707/0.4523, allocations: 256.1 kB / 0.5796 GB, free: 14.83 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.4524, allocations: 157.8 kB / 0.5797 GB, free: 14.68 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.755e-05/0.4525, allocations: 3.938 kB / 0.5797 GB, free: 14.67 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.4526, allocations: 358.8 kB / 0.5801 GB, free: 14.31 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004913/0.4531, allocations: 341.2 kB / 0.5804 GB, free: 13.98 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000583/0.4537, allocations: 432.8 kB / 0.5808 GB, free: 13.52 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004506/0.4542, allocations: 309.2 kB / 0.5811 GB, free: 13.22 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.4542, allocations: 0 / 0.5811 GB, free: 13.22 MB / 426.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001185/0.4554, allocations: 0.7731 MB / 0.5819 GB, free: 12.44 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.4554, allocations: 8 kB / 0.5819 GB, free: 12.43 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.4554, allocations: 0 / 0.5819 GB, free: 12.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.083e-05/0.4554, allocations: 8 kB / 0.5819 GB, free: 12.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006691/0.4621, allocations: 1.78 MB / 0.5836 GB, free: 10.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005943/0.4681, allocations: 4.098 MB / 0.5876 GB, free: 6.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008944/0.4691, allocations: 139.4 kB / 0.5878 GB, free: 6.184 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001233/0.4692, allocations: 39.98 kB / 0.5878 GB, free: 6.145 MB / 426.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 () * 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.0002352/0.4694, allocations: 130.5 kB / 0.5879 GB, free: 6.008 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.4695, allocations: 43.44 kB / 0.588 GB, free: 5.965 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001213/0.4708, allocations: 0.6716 MB / 0.5886 GB, free: 5.285 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.4708, allocations: 11.92 kB / 0.5886 GB, free: 5.273 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-06/0.4708, allocations: 0 / 0.5886 GB, free: 5.273 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.385e-06/0.4708, allocations: 8 kB / 0.5886 GB, free: 5.266 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002553/0.4734, allocations: 1.742 MB / 0.5903 GB, free: 3.449 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.4734, allocations: 0 / 0.5903 GB, free: 3.449 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008028/0.4814, allocations: 2.057 MB / 0.5924 GB, free: 1.391 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.45e-05/0.4815, allocations: 4 kB / 0.5924 GB, free: 1.387 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001117/0.4816, allocations: 12 kB / 0.5924 GB, free: 1.375 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.062e-06/0.4816, allocations: 7.984 kB / 0.5924 GB, free: 1.367 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.854e-06/0.4816, allocations: 7.906 kB / 0.5924 GB, free: 1.359 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001863/0.4835, allocations: 1.341 MB / 0.5937 GB, free: 15.94 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003674/0.4839, allocations: 204.3 kB / 0.5939 GB, free: 15.72 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001315/0.484, allocations: 31.89 kB / 0.5939 GB, free: 15.69 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007656/0.4848, allocations: 123.9 kB / 0.594 GB, free: 15.57 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000191/0.485, allocations: 67.89 kB / 0.5941 GB, free: 15.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.676e-05/0.4851, allocations: 19.98 kB / 0.5941 GB, free: 15.48 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0002593/0.4853, allocations: 220.6 kB / 0.5943 GB, free: 15.27 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007053/0.486, allocations: 167.5 kB / 0.5945 GB, free: 15.1 MB / 442.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]) * 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.0002518/0.4863, allocations: 143.2 kB / 0.5946 GB, free: 14.95 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009565/0.4959, allocations: 3.129 MB / 0.5977 GB, free: 11.81 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.122e-05/0.496, allocations: 4 kB / 0.5977 GB, free: 11.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003281/0.4992, allocations: 1.078 MB / 0.5987 GB, free: 10.73 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008264/0.5001, allocations: 93.2 kB / 0.5988 GB, free: 10.64 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003304/0.5034, allocations: 1.295 MB / 0.6001 GB, free: 9.301 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008259/0.5042, allocations: 0.9832 MB / 0.6011 GB, free: 8.289 MB / 442.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5043, allocations: 4 kB / 0.6011 GB, free: 8.285 MB / 442.7 MB Notification: Performance of Templates: time 0.01445/0.5187, allocations: 8.417 MB / 0.6093 GB, free: 15.87 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.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