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.001395/0.001395, allocations: 107.9 kB / 16.92 MB, free: 6.332 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.001615/0.001615, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.391/1.391, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1674/0.1674, allocations: 38.04 MB / 329.7 MB, free: 8.84 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 63.75 kB / 398.8 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1097, allocations: 58.06 MB / 456.9 MB, free: 8.059 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.008414/0.1182, allocations: 6.581 MB / 463.4 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003029/0.1212, allocations: 1.752 MB / 465.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003587/0.1216, allocations: 23.88 kB / 465.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007524/0.1224, allocations: 226.4 kB / 465.4 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008973/0.1234, allocations: 385.8 kB / 465.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004979/0.1239, allocations: 235.6 kB / 466 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001032/0.1249, allocations: 1.063 MB / 467.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006838/0.1256, allocations: 0.5139 MB / 467.6 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005703/0.1262, allocations: 470.2 kB / 468.1 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006365/0.1269, allocations: 482.3 kB / 468.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001269/0.127, allocations: 91.98 kB / 468.6 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001818/0.1272, allocations: 84 kB / 468.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003899/0.1276, allocations: 279.2 kB / 469 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005652/0.1282, allocations: 406.3 kB / 469.4 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001388/0.1296, allocations: 1.028 MB / 470.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.1296, allocations: 0 / 470.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.1296, allocations: 0 / 470.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.49e-05/0.1296, allocations: 0 / 470.4 MB, free: 10.43 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.002727/0.1324, allocations: 1.024 MB / 471.4 MB, free: 9.355 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.781e-05/0.1324, allocations: 15.89 kB / 471.5 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002075/0.1327, allocations: 72.09 kB / 471.5 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001519/0.1342, allocations: 0.6174 MB / 472.2 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002188/0.1344, allocations: 113.3 kB / 472.3 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001634/0.1346, allocations: 63.94 kB / 472.3 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001937/0.1366, allocations: 0.7498 MB / 473.1 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.239e-05/0.1366, allocations: 0 / 473.1 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.322e-05/0.1367, allocations: 24 kB / 473.1 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.541e-05/0.1367, allocations: 16 kB / 473.1 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001792/0.1385, allocations: 0.605 MB / 473.7 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004732/0.1433, allocations: 2.464 MB / 476.2 MB, free: 4.438 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001291/0.1446, allocations: 420 kB / 476.6 MB, free: 4.004 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006228/0.1452, allocations: 209.7 kB / 476.8 MB, free: 3.793 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.274e-05/0.1453, allocations: 4.281 kB / 476.8 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006564/0.1459, allocations: 243.3 kB / 477 MB, free: 3.527 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.635e-06/0.1459, allocations: 0 / 477 MB, free: 3.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.004602/0.1506, allocations: 0.8783 MB / 477.9 MB, free: 2.621 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/0.1507, allocations: 144.5 kB / 478.1 MB, free: 2.449 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006352/0.1513, allocations: 397.9 kB / 478.4 MB, free: 2.051 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.258e-05/0.1514, allocations: 33.7 kB / 478.5 MB, free: 2.012 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003216/0.1517, allocations: 324.1 kB / 478.8 MB, free: 1.688 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001349/0.1519, allocations: 118.3 kB / 478.9 MB, free: 1.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001847/0.1521, allocations: 78.12 kB / 479 MB, free: 1.488 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001969/0.1523, allocations: 358.8 kB / 479.3 MB, free: 1.129 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004598/0.1527, allocations: 136.8 kB / 479.5 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005596/0.1533, allocations: 250 kB / 479.7 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002264/0.1556, allocations: 0.6633 MB / 480.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.187e-06/0.1556, allocations: 0 / 480.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001612/0.1572, allocations: 0.5246 MB / 480.9 MB, free: 15.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/0.1573, allocations: 10.81 kB / 480.9 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.1573, allocations: 8 kB / 480.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006983/0.158, allocations: 140.8 kB / 481.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003574/0.1584, allocations: 75.84 kB / 481.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00364/0.162, allocations: 2.267 MB / 483.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003253/0.1624, allocations: 47.7 kB / 483.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.301e-05/0.1624, allocations: 16 kB / 483.5 MB, free: 12.75 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.0003329/0.1628, allocations: 252 kB / 483.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.115e-05/0.1628, allocations: 47.38 kB / 483.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001541/0.1644, allocations: 482.6 kB / 484.2 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.1644, allocations: 7.938 kB / 484.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1644, allocations: 4 kB / 484.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.1644, allocations: 0 / 484.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001083/0.1655, allocations: 0.6785 MB / 484.9 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.544e-05/0.1655, allocations: 3.938 kB / 484.9 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003729/0.1659, allocations: 47.91 kB / 485 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000631/0.1666, allocations: 140.8 kB / 485.1 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.959e-05/0.1666, allocations: 8 kB / 485.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00478/0.1714, allocations: 2.255 MB / 487.4 MB, free: 8.629 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.1714, allocations: 0 / 487.4 MB, free: 8.629 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002387/0.1738, allocations: 0.6805 MB / 488 MB, free: 7.918 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002871/0.1741, allocations: 156.4 kB / 488.2 MB, free: 7.746 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001084/0.1743, allocations: 8 kB / 488.2 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000424/0.1747, allocations: 23.92 kB / 488.2 MB, free: 7.715 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/0.1749, allocations: 44.06 kB / 488.3 MB, free: 7.672 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-05/0.1749, allocations: 15.94 kB / 488.3 MB, free: 7.656 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004732/0.1754, allocations: 283.1 kB / 488.6 MB, free: 7.383 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1754, allocations: 0 / 488.6 MB, free: 7.383 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001036/0.1765, allocations: 167.4 kB / 488.7 MB, free: 7.219 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.0001843/0.1767, allocations: 103.2 kB / 488.8 MB, free: 7.105 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001834/0.1785, allocations: 0.533 MB / 489.4 MB, free: 6.559 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/0.1785, allocations: 0.9375 kB / 489.4 MB, free: 6.559 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008642/0.1794, allocations: 330.7 kB / 489.7 MB, free: 6.223 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.1804, allocations: 161.6 kB / 489.8 MB, free: 6.062 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003548/0.184, allocations: 1.258 MB / 491.1 MB, free: 4.773 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001058/0.1851, allocations: 0.925 MB / 492 MB, free: 3.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004943/0.1856, allocations: 92.62 kB / 492.1 MB, free: 3.727 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.1857, allocations: 35.44 kB / 492.2 MB, free: 3.691 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.1858, allocations: 0 / 492.2 MB, free: 3.691 MB / 366.1 MB Notification: Performance of Templates: time 0.02794/0.2137, allocations: 8.205 MB / 0.4886 GB, free: 11.59 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.mat","/var/lib/jenkins/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