Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.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.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter") translateModel(PowerSystems.Examples.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter") [: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.000936/0.000936, allocations: 182.8 kB / 8.137 MB, free: 2.184 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.189/1.189, allocations: 205.2 MB / 213.7 MB, free: 13.83 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.0008623/0.0008622, allocations: 86.81 kB / 261.7 MB, free: 13.52 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1818/0.1818, allocations: 37.97 MB / 347.7 MB, free: 7.445 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.061e-05/1.119e-05, allocations: 0 / 410 MB, free: 46.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1195, allocations: 56.32 MB / 466.3 MB, free: 6.438 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3511/0.4707, allocations: 111.6 MB / 0.5644 GB, free: 14.86 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003547/0.4711, allocations: 87.95 kB / 0.5645 GB, free: 14.77 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Control/Modulation.mo:17:7-17:46:writable] Error: Variable ac_dc.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter.Modulator.$for loop scope$. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Control/Modulation.mo:20:7-20:46:writable] Error: Variable ac_dc.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter.Modulator.$for loop scope$. Notification: Performance of FrontEnd: time 0.06938/0.5405, allocations: 23.55 MB / 0.5875 GB, free: 6.992 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.281e-05/0.5406, allocations: 20 kB / 0.5875 GB, free: 6.973 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.003603/0.5442, allocations: 1.32 MB / 0.5888 GB, free: 5.574 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.5443, allocations: 8.031 kB / 0.5888 GB, free: 5.566 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001197/0.5455, allocations: 166.6 kB / 0.589 GB, free: 5.402 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004716/0.5502, allocations: 1.407 MB / 0.5904 GB, free: 3.953 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002584/0.5505, allocations: 139.1 kB / 0.5905 GB, free: 3.797 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004173/0.551, allocations: 67.89 kB / 0.5906 GB, free: 3.73 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002066/0.553, allocations: 0.9567 MB / 0.5915 GB, free: 2.773 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002668/0.5557, allocations: 1.338 MB / 0.5928 GB, free: 1.355 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.993e-05/0.5558, allocations: 4 kB / 0.5928 GB, free: 1.352 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001279/0.5559, allocations: 0 / 0.5928 GB, free: 1.352 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001135/0.556, allocations: 61.97 kB / 0.5929 GB, free: 1.293 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007357/0.5634, allocations: 4.594 MB / 0.5974 GB, free: 12.55 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001174/0.5646, allocations: 0.7493 MB / 0.5981 GB, free: 11.79 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008884/0.5655, allocations: 0.5244 MB / 0.5986 GB, free: 11.26 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.269e-05/0.5656, allocations: 16.62 kB / 0.5986 GB, free: 11.24 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009126/0.5665, allocations: 0.5964 MB / 0.5992 GB, free: 10.62 MB / 442.7 MB Notification: Performance of pre-optimization done (n=82): time 4.359e-06/0.5665, allocations: 0 / 0.5992 GB, free: 10.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=83): time 0.004386/0.5709, allocations: 2.28 MB / 0.6014 GB, free: 8.258 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.768e-05/0.5711, allocations: 123.5 kB / 0.6015 GB, free: 8.113 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006261/0.5717, allocations: 421.9 kB / 0.6019 GB, free: 7.695 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.548e-05/0.5718, allocations: 41.7 kB / 0.602 GB, free: 7.648 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004276/0.5722, allocations: 410.7 kB / 0.6024 GB, free: 7.238 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002974/0.5725, allocations: 268.2 kB / 0.6026 GB, free: 6.973 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-05/0.5726, allocations: 0 / 0.6026 GB, free: 6.973 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001867/0.5728, allocations: 386.8 kB / 0.603 GB, free: 6.586 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007586/0.5735, allocations: 0.4904 MB / 0.6035 GB, free: 6.098 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009473/0.5745, allocations: 0.7481 MB / 0.6042 GB, free: 5.234 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009382/0.5755, allocations: 0.5959 MB / 0.6048 GB, free: 4.637 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/0.5755, allocations: 0 / 0.6048 GB, free: 4.637 MB / 442.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002507/0.578, allocations: 1.511 MB / 0.6063 GB, free: 3.09 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.578, allocations: 4.625 kB / 0.6063 GB, free: 3.086 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001837/0.5799, allocations: 1.201 MB / 0.6074 GB, free: 1.863 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004309/0.5803, allocations: 105.6 kB / 0.6075 GB, free: 1.754 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008159/0.5811, allocations: 183.7 kB / 0.6077 GB, free: 1.574 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002563/0.5837, allocations: 2.839 MB / 0.6105 GB, free: 14.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007671/0.5845, allocations: 52.02 kB / 0.6105 GB, free: 14.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00016/0.5847, allocations: 63.95 kB / 0.6106 GB, free: 14.39 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.ac_dc.modulator.gates[1],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 108 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003093/0.585, allocations: 159.9 kB / 0.6108 GB, free: 14.23 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002206/0.5852, allocations: 67.16 kB / 0.6108 GB, free: 14.16 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002023/0.5873, allocations: 1.05 MB / 0.6118 GB, free: 13.08 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.422e-05/0.5873, allocations: 19.98 kB / 0.6119 GB, free: 13.06 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/0.5873, allocations: 0 / 0.6119 GB, free: 13.06 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/0.5873, allocations: 7.922 kB / 0.6119 GB, free: 13.05 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003326/0.5907, allocations: 2.071 MB / 0.6139 GB, free: 10.91 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.5907, allocations: 4 kB / 0.6139 GB, free: 10.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007751/0.5915, allocations: 127.8 kB / 0.614 GB, free: 10.78 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.429e-05/0.5916, allocations: 24.84 kB / 0.614 GB, free: 10.75 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.265e-05/0.5917, allocations: 23.95 kB / 0.6141 GB, free: 10.73 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001046/0.5927, allocations: 1.321 MB / 0.6154 GB, free: 9.285 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.713e-06/0.5927, allocations: 3.906 kB / 0.6154 GB, free: 9.281 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002571/0.5953, allocations: 1.717 MB / 0.617 GB, free: 7.492 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004148/0.5957, allocations: 232.2 kB / 0.6173 GB, free: 7.246 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002179/0.596, allocations: 83.94 kB / 0.6173 GB, free: 7.164 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007814/0.5968, allocations: 91.89 kB / 0.6174 GB, free: 7.074 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/0.5969, allocations: 52.48 kB / 0.6175 GB, free: 7.023 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.741e-05/0.597, allocations: 23.98 kB / 0.6175 GB, free: 7 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0003674/0.5973, allocations: 306.9 kB / 0.6178 GB, free: 6.703 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001061/0.5984, allocations: 228.2 kB / 0.618 GB, free: 6.48 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,ac_dc.modulator.gates[1],ac_dc.modulator.gates[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.t0[1],ac_dc.modulator.t0[2],ac_dc.modulator.t0[3],system.initime) * Number of discrete states: 12 (ac_dc.modulator.t0[3],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.t0[2],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[1],ac_dc.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 61 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000373/0.5988, allocations: 191.9 kB / 0.6182 GB, free: 6.281 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002041/0.6008, allocations: 1.377 MB / 0.6195 GB, free: 4.879 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.6009, allocations: 0 / 0.6195 GB, free: 4.879 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007501/0.6016, allocations: 0.5782 MB / 0.6201 GB, free: 4.293 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006635/0.6023, allocations: 103 kB / 0.6202 GB, free: 4.191 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003275/0.6056, allocations: 1.846 MB / 0.622 GB, free: 2.301 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001001/0.6066, allocations: 1.195 MB / 0.6232 GB, free: 1.082 MB / 458.7 MB Notification: Performance of SimCode: time 6.91e-07/0.6066, allocations: 0 / 0.6232 GB, free: 1.082 MB / 458.7 MB Notification: Performance of Templates: time 0.01886/0.6255, allocations: 10.19 MB / 0.6331 GB, free: 6.898 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Inverter.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches