Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterDCin.i|meterDCin.p|meterDCin.v|meterDCout.i|meterDCout.p|meterDCout.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterDCin.i|meterDCin.p|meterDCin.v|meterDCout.i|meterDCout.p|meterDCout.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 111.9 kB / 17.68 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 192 kB / 18.62 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1822/0.1822, allocations: 38.04 MB / 330.5 MB, free: 8.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002234/0.002234, allocations: 62.52 kB / 400.2 MB, free: 33.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1281, allocations: 58.07 MB / 458.3 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.007327/0.1355, allocations: 6.581 MB / 464.9 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002734/0.1383, allocations: 1.764 MB / 466.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004068/0.1387, allocations: 19.88 kB / 466.7 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007047/0.1395, allocations: 222.4 kB / 466.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000875/0.1404, allocations: 385.8 kB / 467.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004792/0.1408, allocations: 227.6 kB / 467.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001019/0.1419, allocations: 1.075 MB / 468.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005772/0.1425, allocations: 0.51 MB / 469.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005993/0.1431, allocations: 474.2 kB / 469.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006/0.1437, allocations: 474.4 kB / 470 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.852e-05/0.1438, allocations: 92 kB / 470.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001246/0.1439, allocations: 84 kB / 470.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002747/0.1442, allocations: 279.3 kB / 470.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003703/0.1446, allocations: 402.3 kB / 470.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008757/0.1455, allocations: 1.04 MB / 471.9 MB, free: 9.711 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1455, allocations: 0 / 471.9 MB, free: 9.711 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1455, allocations: 0 / 471.9 MB, free: 9.711 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.1455, allocations: 0 / 471.9 MB, free: 9.711 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.001828/0.1473, allocations: 1.017 MB / 472.9 MB, free: 8.641 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.1474, allocations: 15.89 kB / 472.9 MB, free: 8.625 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001316/0.1475, allocations: 76.09 kB / 473 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001131/0.1487, allocations: 0.6603 MB / 473.7 MB, free: 7.852 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000131/0.1488, allocations: 109.3 kB / 473.8 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.189e-05/0.1489, allocations: 63.94 kB / 473.8 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/0.1501, allocations: 0.7499 MB / 474.6 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.718e-05/0.1501, allocations: 0 / 474.6 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.928e-05/0.1502, allocations: 20 kB / 474.6 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.1502, allocations: 16 kB / 474.6 MB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001067/0.1512, allocations: 0.6089 MB / 475.2 MB, free: 6.242 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003142/0.1544, allocations: 2.456 MB / 477.7 MB, free: 3.688 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008091/0.1552, allocations: 413 kB / 478.1 MB, free: 3.258 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003762/0.1556, allocations: 199.1 kB / 478.3 MB, free: 3.055 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.527e-05/0.1557, allocations: 12.22 kB / 478.3 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004245/0.1561, allocations: 239.3 kB / 478.5 MB, free: 2.785 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 3.316e-06/0.1561, allocations: 7.984 kB / 478.5 MB, free: 2.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.002819/0.1589, allocations: 0.8822 MB / 479.4 MB, free: 1.867 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.122e-05/0.159, allocations: 132.5 kB / 479.5 MB, free: 1.707 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004548/0.1595, allocations: 401.9 kB / 479.9 MB, free: 1.305 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.044e-05/0.1595, allocations: 33.7 kB / 480 MB, free: 1.266 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002319/0.1598, allocations: 324 kB / 480.3 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.602e-05/0.1599, allocations: 114.3 kB / 480.4 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001384/0.16, allocations: 78.12 kB / 480.5 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.1602, allocations: 362.8 kB / 480.8 MB, free: 392 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000272/0.1605, allocations: 124.8 kB / 480.9 MB, free: 268 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003448/0.1608, allocations: 254 kB / 481.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001348/0.1622, allocations: 0.6526 MB / 481.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.1622, allocations: 0 / 481.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.000966/0.1632, allocations: 0.5252 MB / 482.4 MB, free: 14.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.1632, allocations: 4 kB / 482.4 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.1632, allocations: 4 kB / 482.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004321/0.1637, allocations: 152.9 kB / 482.5 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002712/0.1639, allocations: 75.91 kB / 482.6 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003156/0.1671, allocations: 2.265 MB / 484.9 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003256/0.1674, allocations: 59.5 kB / 484.9 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.134e-05/0.1675, allocations: 16.08 kB / 484.9 MB, free: 12.02 MB / 366.1 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = "s" fixed = true protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = "s" fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,$whenCondition1,$PRE.chopper.modulator.t1,$PRE.chopper.modulator.t0,chopper.chopper.diode.on,chopper.modulator.t1,chopper.modulator.t0,chopper.modulator.gate) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003502/0.1678, allocations: 247.8 kB / 485.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.692e-05/0.1679, allocations: 51.38 kB / 485.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001165/0.1691, allocations: 482.5 kB / 485.7 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.1691, allocations: 7.938 kB / 485.7 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.1691, allocations: 0 / 485.7 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.1691, allocations: 0 / 485.7 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008884/0.17, allocations: 0.6785 MB / 486.4 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-06/0.17, allocations: 3.938 kB / 486.4 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002353/0.1703, allocations: 51.91 kB / 486.4 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004299/0.1707, allocations: 144.7 kB / 486.6 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.01e-05/0.1707, allocations: 8 kB / 486.6 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003175/0.1739, allocations: 2.248 MB / 488.8 MB, free: 7.895 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1739, allocations: 0 / 488.8 MB, free: 7.895 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001368/0.1753, allocations: 0.6882 MB / 489.5 MB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001784/0.1755, allocations: 160.4 kB / 489.7 MB, free: 7 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.996e-05/0.1756, allocations: 8 kB / 489.7 MB, free: 6.992 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002206/0.1758, allocations: 23.92 kB / 489.7 MB, free: 6.969 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/0.1759, allocations: 39.94 kB / 489.8 MB, free: 6.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.256e-05/0.176, allocations: 8 kB / 489.8 MB, free: 6.922 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003101/0.1763, allocations: 275.2 kB / 490 MB, free: 6.656 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1763, allocations: 0 / 490 MB, free: 6.656 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006386/0.1769, allocations: 167.4 kB / 490.2 MB, free: 6.492 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (meterDCin.pav,meterDCout.pav,load.i) * Number of discrete variables: 6 ($whenCondition1,chopper.modulator.gate,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.diode.on,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001785/0.1771, allocations: 118.1 kB / 490.3 MB, free: 6.367 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001127/0.1782, allocations: 0.5109 MB / 490.8 MB, free: 5.844 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.1783, allocations: 4.062 kB / 490.8 MB, free: 5.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005449/0.1788, allocations: 330.5 kB / 491.1 MB, free: 5.504 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006558/0.1795, allocations: 153.7 kB / 491.3 MB, free: 5.352 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002286/0.1818, allocations: 1.245 MB / 492.5 MB, free: 4.078 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005018/0.1823, allocations: 0.9289 MB / 493.5 MB, free: 3.121 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002432/0.1825, allocations: 84.62 kB / 493.6 MB, free: 3.035 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.667e-05/0.1826, allocations: 39.44 kB / 493.6 MB, free: 2.996 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1826, allocations: 0 / 493.6 MB, free: 2.996 MB / 366.1 MB Notification: Performance of Templates: time 0.01392/0.1966, allocations: 8.207 MB / 0.49 GB, free: 10.89 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches