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.001563/0.001563, allocations: 109.9 kB / 16.51 MB, free: 6.707 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.001769/0.001769, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.416/1.416, allocations: 222.9 MB / 241.1 MB, free: 15.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1749/0.1749, allocations: 38.05 MB / 329.3 MB, free: 9.02 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002315/0.002315, allocations: 57.02 kB / 398.1 MB, free: 34.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1121, allocations: 58.06 MB / 456.2 MB, free: 8.539 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.008945/0.121, allocations: 7.206 MB / 463.4 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003632/0.1247, allocations: 1.932 MB / 465.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001091/0.1259, allocations: 35.81 kB / 465.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001044/0.1269, allocations: 206.8 kB / 465.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001455/0.1284, allocations: 346.3 kB / 465.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000743/0.1292, allocations: 195.8 kB / 466.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001823/0.1311, allocations: 1.418 MB / 467.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007068/0.1318, allocations: 421 kB / 467.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009616/0.1328, allocations: 398.2 kB / 468.3 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001019/0.1338, allocations: 490.3 kB / 468.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000186/0.134, allocations: 48 kB / 468.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002052/0.1342, allocations: 48 kB / 468.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003011/0.1345, allocations: 243.3 kB / 469.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006673/0.1352, allocations: 378.2 kB / 469.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001102/0.1363, allocations: 0.9968 MB / 470.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1363, allocations: 0 / 470.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1364, allocations: 0 / 470.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.6e-05/0.1364, allocations: 0 / 470.5 MB, free: 10.16 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.002426/0.1388, allocations: 1.017 MB / 471.5 MB, free: 9.098 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.1389, allocations: 8.031 kB / 471.5 MB, free: 9.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001857/0.1391, allocations: 76.09 kB / 471.6 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001293/0.1404, allocations: 0.6252 MB / 472.2 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000164/0.1405, allocations: 113.3 kB / 472.3 MB, free: 8.223 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001168/0.1407, allocations: 63.94 kB / 472.4 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001465/0.1421, allocations: 0.746 MB / 473.1 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.254e-05/0.1422, allocations: 7.938 kB / 473.1 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.17e-05/0.1422, allocations: 24 kB / 473.1 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.501e-05/0.1423, allocations: 16 kB / 473.2 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001233/0.1435, allocations: 0.6011 MB / 473.8 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003475/0.147, allocations: 2.468 MB / 476.2 MB, free: 4.164 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001018/0.148, allocations: 421 kB / 476.6 MB, free: 3.727 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004515/0.1485, allocations: 207 kB / 476.8 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.925e-05/0.1485, allocations: 8.266 kB / 476.8 MB, free: 3.508 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004398/0.149, allocations: 243.3 kB / 477.1 MB, free: 3.246 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 3.697e-06/0.149, allocations: 0 / 477.1 MB, free: 3.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.003058/0.1521, allocations: 0.8821 MB / 478 MB, free: 2.336 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.689e-05/0.1522, allocations: 136.5 kB / 478.1 MB, free: 2.172 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004165/0.1526, allocations: 417.8 kB / 478.5 MB, free: 1.758 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.196e-05/0.1526, allocations: 29.7 kB / 478.5 MB, free: 1.723 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002152/0.1529, allocations: 316 kB / 478.8 MB, free: 1.406 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.153, allocations: 118.3 kB / 479 MB, free: 1.289 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.1531, allocations: 82.12 kB / 479 MB, free: 1.203 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.1533, allocations: 358.8 kB / 479.4 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003005/0.1536, allocations: 124.8 kB / 479.5 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003578/0.1539, allocations: 246 kB / 479.7 MB, free: 440 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001511/0.1555, allocations: 0.6632 MB / 480.4 MB, free: 15.72 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.1555, allocations: 0 / 480.4 MB, free: 15.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001086/0.1566, allocations: 0.5289 MB / 480.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.1566, allocations: 4 kB / 480.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.1566, allocations: 4 kB / 480.9 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004505/0.1571, allocations: 140.9 kB / 481.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002936/0.1574, allocations: 79.89 kB / 481.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003153/0.1605, allocations: 2.049 MB / 483.2 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003317/0.1609, allocations: 47.52 kB / 483.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.229e-05/0.1609, allocations: 24.06 kB / 483.3 MB, free: 12.7 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.0003411/0.1613, allocations: 243.9 kB / 483.5 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.495e-05/0.1614, allocations: 43.44 kB / 483.6 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001246/0.1626, allocations: 483.7 kB / 484 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.1626, allocations: 4 kB / 484 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.1626, allocations: 4 kB / 484 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.1626, allocations: 11.92 kB / 484.1 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008254/0.1635, allocations: 0.6707 MB / 484.7 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1635, allocations: 0 / 484.7 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002488/0.1637, allocations: 47.97 kB / 484.8 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004473/0.1642, allocations: 152.7 kB / 484.9 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.985e-05/0.1642, allocations: 7.938 kB / 484.9 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002936/0.1672, allocations: 2.022 MB / 487 MB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.1672, allocations: 0 / 487 MB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001619/0.1688, allocations: 0.6984 MB / 487.6 MB, free: 8.086 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002034/0.1691, allocations: 152.4 kB / 487.8 MB, free: 7.918 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.927e-05/0.1691, allocations: 12 kB / 487.8 MB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002424/0.1694, allocations: 23.97 kB / 487.8 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/0.1695, allocations: 31.95 kB / 487.9 MB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.957e-05/0.1695, allocations: 15.98 kB / 487.9 MB, free: 7.836 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003126/0.1699, allocations: 271.2 kB / 488.1 MB, free: 7.574 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1699, allocations: 4 kB / 488.1 MB, free: 7.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006114/0.1705, allocations: 163.4 kB / 488.3 MB, free: 7.41 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.0001431/0.1706, allocations: 119.1 kB / 488.4 MB, free: 7.285 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009757/0.1716, allocations: 0.495 MB / 488.9 MB, free: 6.777 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.1716, allocations: 4.312 kB / 488.9 MB, free: 6.773 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005359/0.1722, allocations: 334.3 kB / 489.3 MB, free: 6.434 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000666/0.1728, allocations: 144.5 kB / 489.4 MB, free: 6.293 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002187/0.175, allocations: 1.497 MB / 490.9 MB, free: 4.766 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004679/0.1755, allocations: 0.9289 MB / 491.8 MB, free: 3.809 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002805/0.1758, allocations: 84.62 kB / 491.9 MB, free: 3.723 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.614e-05/0.1759, allocations: 39.38 kB / 491.9 MB, free: 3.684 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1759, allocations: 0 / 491.9 MB, free: 3.684 MB / 366.1 MB Notification: Performance of Templates: time 0.01331/0.1892, allocations: 7.673 MB / 499.6 MB, free: 12.11 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