Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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.InverterToGrid,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.InverterToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,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.InverterToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009404/0.0009405, allocations: 176.4 kB / 17.4 MB, free: 4.422 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.548/1.548, allocations: 205.4 MB / 223.6 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.0007813/0.0007815, allocations: 86.42 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.169/0.169, allocations: 38.08 MB / 358.3 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003208/0.0003208, allocations: 15.98 kB / 425.3 MB, free: 37.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3146/0.3149, allocations: 56.31 MB / 481.6 MB, free: 9.586 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1516/0.4666, allocations: 104.5 MB / 0.5723 GB, free: 13.75 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003287/0.467, allocations: 107.8 kB / 0.5724 GB, free: 13.64 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04966/0.5167, allocations: 17.49 MB / 0.5895 GB, free: 11.94 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.526e-06/0.5168, allocations: 4 kB / 0.5895 GB, free: 11.94 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.151e-05/0.5168, allocations: 16 kB / 0.5895 GB, free: 11.92 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.00269/0.5195, allocations: 1.21 MB / 0.5907 GB, free: 10.64 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/0.5196, allocations: 8.031 kB / 0.5907 GB, free: 10.64 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002279/0.5198, allocations: 92 kB / 0.5908 GB, free: 10.55 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002564/0.5224, allocations: 1.002 MB / 0.5918 GB, free: 9.508 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004949/0.5229, allocations: 355.8 kB / 0.5921 GB, free: 9.113 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001379/0.523, allocations: 67.98 kB / 0.5922 GB, free: 9.047 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002462/0.5255, allocations: 1.202 MB / 0.5934 GB, free: 7.801 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.044e-05/0.5255, allocations: 0 / 0.5934 GB, free: 7.801 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.792e-05/0.5256, allocations: 31.98 kB / 0.5934 GB, free: 7.77 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.898e-05/0.5257, allocations: 16 kB / 0.5934 GB, free: 7.754 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002857/0.5285, allocations: 1.274 MB / 0.5946 GB, free: 6.48 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005799/0.5343, allocations: 3.555 MB / 0.5981 GB, free: 2.82 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002591/0.537, allocations: 1.042 MB / 0.5991 GB, free: 1.758 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001719/0.5387, allocations: 0.7439 MB / 0.5999 GB, free: 1.008 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.422e-05/0.5388, allocations: 8.562 kB / 0.5999 GB, free: 1 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0017/0.5405, allocations: 0.7473 MB / 0.6006 GB, free: 240 kB / 426.7 MB Notification: Performance of pre-optimization done (n=59): time 3.416e-06/0.5405, allocations: 0 / 0.6006 GB, free: 240 kB / 426.7 MB Notification: Performance of matching and sorting (n=61): time 0.02065/0.5612, allocations: 7.038 MB / 0.6075 GB, free: 9.113 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.016e-05/0.5613, allocations: 93.66 kB / 0.6076 GB, free: 9.004 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006621/0.5619, allocations: 461.9 kB / 0.608 GB, free: 8.543 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001237/0.5621, allocations: 45.7 kB / 0.608 GB, free: 8.492 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002983/0.5624, allocations: 320.2 kB / 0.6084 GB, free: 8.176 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002231/0.5626, allocations: 201.2 kB / 0.6085 GB, free: 7.977 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.527e-05/0.5627, allocations: 16 kB / 0.6086 GB, free: 7.961 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001891/0.5629, allocations: 378.7 kB / 0.6089 GB, free: 7.582 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001188/0.5641, allocations: 0.552 MB / 0.6095 GB, free: 7.027 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001205/0.5653, allocations: 0.6764 MB / 0.6101 GB, free: 6.309 MB / 442.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.007131/0.5724, allocations: 3.358 MB / 0.6134 GB, free: 2.879 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.5724, allocations: 4 kB / 0.6134 GB, free: 2.875 MB / 442.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007906/0.5804, allocations: 3.045 MB / 0.6164 GB, free: 15.81 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000102/0.5805, allocations: 45.69 kB / 0.6164 GB, free: 15.76 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/0.5805, allocations: 4 kB / 0.6164 GB, free: 15.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002538/0.5831, allocations: 1.188 MB / 0.6176 GB, free: 14.56 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005798/0.5837, allocations: 111.8 kB / 0.6177 GB, free: 14.45 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01597/0.5996, allocations: 7.123 MB / 0.6246 GB, free: 7.199 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009629/0.6006, allocations: 112 kB / 0.6248 GB, free: 7.09 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.509e-05/0.6008, allocations: 39.97 kB / 0.6248 GB, free: 7.051 MB / 458.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$PRE.inverter.modulator.gates[4],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,$whenCondition1,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: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {5 11} Notification: Performance of prepare postOptimizeDAE: time 0.0005904/0.6014, allocations: 287.3 kB / 0.6251 GB, free: 6.762 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.6015, allocations: 59.25 kB / 0.6251 GB, free: 6.703 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008139/0.6096, allocations: 2.999 MB / 0.6281 GB, free: 3.688 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.247e-05/0.6097, allocations: 8 kB / 0.6281 GB, free: 3.68 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.6097, allocations: 0 / 0.6281 GB, free: 3.68 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.107e-05/0.6097, allocations: 3.984 kB / 0.6281 GB, free: 3.676 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009997/0.6197, allocations: 4.114 MB / 0.6321 GB, free: 15.47 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.775e-06/0.6197, allocations: 0 / 0.6321 GB, free: 15.47 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003984/0.6202, allocations: 83.83 kB / 0.6322 GB, free: 15.39 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002474/0.6226, allocations: 1.18 MB / 0.6333 GB, free: 14.21 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001035/0.6228, allocations: 19.98 kB / 0.6333 GB, free: 14.19 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01541/0.6382, allocations: 7.083 MB / 0.6403 GB, free: 6.965 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.163e-06/0.6382, allocations: 7.922 kB / 0.6403 GB, free: 6.957 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01002/0.6483, allocations: 3.832 MB / 0.644 GB, free: 3.082 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005358/0.6489, allocations: 224.3 kB / 0.6442 GB, free: 2.844 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001332/0.649, allocations: 31.92 kB / 0.6442 GB, free: 2.812 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007365/0.6498, allocations: 127.9 kB / 0.6444 GB, free: 2.688 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005054/0.6503, allocations: 164.3 kB / 0.6445 GB, free: 2.527 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.472e-05/0.6503, allocations: 19.98 kB / 0.6445 GB, free: 2.508 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.000541/0.6509, allocations: 318.9 kB / 0.6448 GB, free: 2.199 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6509, allocations: 0 / 0.6448 GB, free: 2.199 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001194/0.6521, allocations: 248.1 kB / 0.6451 GB, free: 1.957 MB / 474.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[2]) * Number of discrete variables: 8 ($whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0,system.initime) * 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 (50): * Single equations (assignments): 42 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {5 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002932/0.6524, allocations: 143 kB / 0.6452 GB, free: 1.809 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.2073/0.8597, allocations: 1.924 MB / 0.6471 GB, free: 144.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.083e-05/0.8598, allocations: 3.594 kB / 0.6471 GB, free: 144.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00389/0.8637, allocations: 1.267 MB / 0.6483 GB, free: 144.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001115/0.8648, allocations: 149.7 kB / 0.6485 GB, free: 144.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003584/0.8684, allocations: 2.009 MB / 0.6504 GB, free: 144 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006503/0.8691, allocations: 0.9983 MB / 0.6514 GB, free: 143.3 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.00051/0.8696, allocations: 125.1 kB / 0.6515 GB, free: 143.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001246/0.8698, allocations: 43.23 kB / 0.6516 GB, free: 143.3 MB / 474.7 MB Notification: Performance of SimCode: time 6.11e-07/0.8698, allocations: 0 / 0.6516 GB, free: 143.3 MB / 474.7 MB Notification: Performance of Templates: time 0.02852/0.8983, allocations: 15.32 MB / 0.6665 GB, free: 142.6 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches