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.001409/0.001409, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.473/1.473, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.0009782/0.0009785, allocations: 86.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1536/0.1536, allocations: 37.98 MB / 353.5 MB, free: 1.758 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.148e-05/2.15e-05, allocations: 8 kB / 417.7 MB, free: 29.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09053/0.09057, allocations: 56.32 MB / 474.1 MB, free: 4.809 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3811/0.4717, allocations: 102 MB / 0.5626 GB, free: 0.7227 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000311/0.4721, allocations: 98.73 kB / 0.5627 GB, free: 0.6719 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0629/0.535, allocations: 15.68 MB / 0.578 GB, free: 3.039 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.5351, allocations: 4 kB / 0.578 GB, free: 3.035 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.096e-05/0.5351, allocations: 16.19 kB / 0.578 GB, free: 3.02 MB / 378.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.003056/0.5382, allocations: 1.045 MB / 0.579 GB, free: 1.965 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.5383, allocations: 8.031 kB / 0.579 GB, free: 1.957 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002567/0.5385, allocations: 87.11 kB / 0.5791 GB, free: 1.871 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004598/0.5431, allocations: 1.221 MB / 0.5803 GB, free: 0.8203 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006122/0.5438, allocations: 349.7 kB / 0.5806 GB, free: 468 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001785/0.544, allocations: 60.41 kB / 0.5807 GB, free: 424 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002083/0.5461, allocations: 0.8992 MB / 0.5816 GB, free: 15.76 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.206e-05/0.5461, allocations: 3.938 kB / 0.5816 GB, free: 15.75 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001157/0.5462, allocations: 25.69 kB / 0.5816 GB, free: 15.75 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.679e-05/0.5463, allocations: 15.95 kB / 0.5816 GB, free: 15.73 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00211/0.5484, allocations: 0.8321 MB / 0.5824 GB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007173/0.5556, allocations: 3.264 MB / 0.5856 GB, free: 12.49 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001455/0.5571, allocations: 0.552 MB / 0.5862 GB, free: 12.1 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009708/0.558, allocations: 400.2 kB / 0.5865 GB, free: 11.85 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.748e-05/0.5581, allocations: 8.438 kB / 0.5865 GB, free: 11.84 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001052/0.5592, allocations: 487.7 kB / 0.587 GB, free: 11.47 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 3.617e-06/0.5592, allocations: 4 kB / 0.587 GB, free: 11.47 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.001786/0.561, allocations: 0.6555 MB / 0.5877 GB, free: 11 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.5611, allocations: 152.3 kB / 0.5878 GB, free: 10.82 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005444/0.5617, allocations: 340.7 kB / 0.5881 GB, free: 10.55 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.601e-05/0.5618, allocations: 39.81 kB / 0.5882 GB, free: 10.51 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002587/0.5621, allocations: 290.2 kB / 0.5884 GB, free: 10.29 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001998/0.5623, allocations: 163.9 kB / 0.5886 GB, free: 10.16 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.968e-05/0.5624, allocations: 10.69 kB / 0.5886 GB, free: 10.15 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001778/0.5625, allocations: 360.5 kB / 0.589 GB, free: 9.812 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007904/0.5633, allocations: 331 kB / 0.5893 GB, free: 9.613 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008927/0.5643, allocations: 447.3 kB / 0.5897 GB, free: 9.273 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000786/0.5651, allocations: 344.5 kB / 0.59 GB, free: 9.031 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.5651, allocations: 0 / 0.59 GB, free: 9.031 MB / 394.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002037/0.5671, allocations: 0.8455 MB / 0.5909 GB, free: 8.41 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.587e-05/0.5672, allocations: 49.38 kB / 0.5909 GB, free: 8.359 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.5672, allocations: 4 kB / 0.5909 GB, free: 8.355 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.478e-05/0.5673, allocations: 4 kB / 0.5909 GB, free: 8.352 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00976/0.577, allocations: 1.596 MB / 0.5925 GB, free: 6.762 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00818/0.5853, allocations: 4.086 MB / 0.5965 GB, free: 2.797 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001251/0.5865, allocations: 148.4 kB / 0.5966 GB, free: 2.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001989/0.5868, allocations: 40.8 kB / 0.5966 GB, free: 2.625 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 () * 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.0003236/0.5871, allocations: 146.7 kB / 0.5968 GB, free: 2.488 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002073/0.5873, allocations: 47.44 kB / 0.5968 GB, free: 2.441 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001963/0.5893, allocations: 0.7122 MB / 0.5975 GB, free: 1.953 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.5893, allocations: 4 kB / 0.5975 GB, free: 1.949 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.5893, allocations: 0 / 0.5975 GB, free: 1.949 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.5894, allocations: 4 kB / 0.5975 GB, free: 1.945 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003846/0.5932, allocations: 1.852 MB / 0.5993 GB, free: 460 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.909e-06/0.5932, allocations: 8 kB / 0.5993 GB, free: 452 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01106/0.6043, allocations: 1.834 MB / 0.6011 GB, free: 14.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.85e-05/0.6043, allocations: 4 kB / 0.6011 GB, free: 14.61 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.949e-05/0.6045, allocations: 19.17 kB / 0.6012 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.602e-05/0.6045, allocations: 7.938 kB / 0.6012 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/0.6045, allocations: 0 / 0.6012 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002748/0.6073, allocations: 1.365 MB / 0.6025 GB, free: 13.54 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004924/0.6078, allocations: 207.2 kB / 0.6027 GB, free: 13.36 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001998/0.608, allocations: 25.8 kB / 0.6027 GB, free: 13.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001116/0.6091, allocations: 128.8 kB / 0.6028 GB, free: 13.22 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003345/0.6094, allocations: 86.84 kB / 0.6029 GB, free: 13.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.087e-05/0.6095, allocations: 23.38 kB / 0.6029 GB, free: 13.12 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004941/0.61, allocations: 260.6 kB / 0.6032 GB, free: 12.92 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6101, allocations: 0 / 0.6032 GB, free: 12.92 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001142/0.6112, allocations: 191.8 kB / 0.6034 GB, free: 12.75 MB / 410.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.0003514/0.6116, allocations: 153 kB / 0.6035 GB, free: 12.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009883/0.6215, allocations: 2.072 MB / 0.6055 GB, free: 10.79 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.6215, allocations: 0 / 0.6055 GB, free: 10.79 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005194/0.6267, allocations: 1.001 MB / 0.6065 GB, free: 9.93 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001323/0.6281, allocations: 122.8 kB / 0.6066 GB, free: 9.84 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005144/0.6333, allocations: 1.299 MB / 0.6079 GB, free: 8.684 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009268/0.6342, allocations: 0.9389 MB / 0.6088 GB, free: 7.742 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001093/0.6353, allocations: 160.6 kB / 0.609 GB, free: 7.586 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003289/0.6357, allocations: 43.42 kB / 0.609 GB, free: 7.543 MB / 410.7 MB Notification: Performance of SimCode: time 1.553e-06/0.6357, allocations: 0 / 0.609 GB, free: 7.543 MB / 410.7 MB Notification: Performance of Templates: time 0.02265/0.6584, allocations: 7.931 MB / 0.6168 GB, free: 15.63 MB / 426.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