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/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.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/Complex 3.2.3+maint.om/package.mo): time 0.001643/0.001643, allocations: 188.9 kB / 17.27 MB, free: 4.504 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.589/1.589, allocations: 205.1 MB / 223.1 MB, free: 8.469 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.001003/0.001003, allocations: 91.94 kB / 270.5 MB, free: 8.434 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2149/0.2149, allocations: 38.01 MB / 355.8 MB, free: 2.926 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001087/0.001087, allocations: 51.92 kB / 421.9 MB, free: 37.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3929/0.394, allocations: 55.24 MB / 477.1 MB, free: 9.918 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.01005/0.4041, allocations: 7.21 MB / 484.3 MB, free: 4.836 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00363/0.4078, allocations: 1.969 MB / 486.3 MB, free: 3.426 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005139/0.4084, allocations: 43.25 kB / 486.3 MB, free: 3.406 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007515/0.4092, allocations: 199.1 kB / 486.5 MB, free: 3.309 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009373/0.4101, allocations: 353.5 kB / 486.9 MB, free: 3.102 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005686/0.4107, allocations: 203.9 kB / 487.1 MB, free: 2.973 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0017/0.4124, allocations: 1.427 MB / 488.5 MB, free: 2.445 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006046/0.413, allocations: 426.3 kB / 488.9 MB, free: 2.262 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006077/0.4137, allocations: 396.5 kB / 489.3 MB, free: 2.098 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007871/0.4144, allocations: 493.1 kB / 489.8 MB, free: 1.91 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001093/0.4146, allocations: 48.28 kB / 489.8 MB, free: 1.91 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001517/0.4147, allocations: 49.31 kB / 489.9 MB, free: 1.91 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000376/0.4151, allocations: 238.8 kB / 490.1 MB, free: 1.82 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004277/0.4155, allocations: 371.9 kB / 490.5 MB, free: 1.609 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001323/0.4169, allocations: 0.9979 MB / 491.5 MB, free: 1.246 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.4169, allocations: 1.531 kB / 491.5 MB, free: 1.246 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.4169, allocations: 0 / 491.5 MB, free: 1.246 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.4169, allocations: 0 / 491.5 MB, free: 1.246 MB / 314.7 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.002101/0.419, allocations: 1.021 MB / 492.5 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.4191, allocations: 9.688 kB / 492.5 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001466/0.4192, allocations: 74.08 kB / 492.6 MB, free: 0.5117 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001171/0.4204, allocations: 0.6185 MB / 493.2 MB, free: 92 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001429/0.4206, allocations: 109.2 kB / 493.3 MB, free: 8 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001451/0.4207, allocations: 67.83 kB / 493.4 MB, free: 15.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001502/0.4222, allocations: 0.7505 MB / 494.1 MB, free: 15.62 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.4223, allocations: 1.188 kB / 494.1 MB, free: 15.62 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.338e-05/0.4223, allocations: 21.92 kB / 494.1 MB, free: 15.61 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.926e-05/0.4224, allocations: 15.19 kB / 494.1 MB, free: 15.61 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001349/0.4237, allocations: 0.607 MB / 494.7 MB, free: 15.4 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00368/0.4274, allocations: 2.469 MB / 497.2 MB, free: 13.74 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009315/0.4284, allocations: 430 kB / 497.6 MB, free: 13.48 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004321/0.4288, allocations: 201.2 kB / 497.8 MB, free: 13.37 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.58e-05/0.4289, allocations: 7.875 kB / 497.8 MB, free: 13.36 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004462/0.4293, allocations: 246.4 kB / 498.1 MB, free: 13.18 MB / 330.7 MB Notification: Performance of pre-optimization done (n=36): time 2.154e-06/0.4293, allocations: 0 / 498.1 MB, free: 13.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.003324/0.4326, allocations: 0.8768 MB / 499 MB, free: 12.66 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.542e-05/0.4328, allocations: 138.3 kB / 499.1 MB, free: 12.5 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005771/0.4333, allocations: 395.2 kB / 499.5 MB, free: 12.25 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.804e-05/0.4334, allocations: 35.95 kB / 499.5 MB, free: 12.21 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002484/0.4336, allocations: 316.5 kB / 499.8 MB, free: 11.93 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.4338, allocations: 121.2 kB / 499.9 MB, free: 11.82 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001288/0.4339, allocations: 81.97 kB / 0.4883 GB, free: 11.77 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.434, allocations: 352.9 kB / 0.4886 GB, free: 11.42 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003214/0.4344, allocations: 131.4 kB / 0.4888 GB, free: 11.36 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003816/0.4348, allocations: 251.6 kB / 0.489 GB, free: 11.15 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001573/0.4363, allocations: 0.6521 MB / 0.4896 GB, free: 10.73 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.663e-06/0.4364, allocations: 5.453 kB / 0.4896 GB, free: 10.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001122/0.4375, allocations: 0.516 MB / 0.4902 GB, free: 10.45 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.4375, allocations: 6.281 kB / 0.4902 GB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.4375, allocations: 3.344 kB / 0.4902 GB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005037/0.4381, allocations: 157.6 kB / 0.4903 GB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002967/0.4384, allocations: 75.19 kB / 0.4904 GB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003435/0.4418, allocations: 2.049 MB / 0.4924 GB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004071/0.4422, allocations: 55.53 kB / 0.4924 GB, free: 8.484 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.05e-05/0.4423, allocations: 18.03 kB / 0.4925 GB, free: 8.48 MB / 330.7 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.000494/0.4428, allocations: 245.8 kB / 0.4927 GB, free: 8.281 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.4429, allocations: 46.06 kB / 0.4927 GB, free: 8.258 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002044/0.4449, allocations: 486.6 kB / 0.4932 GB, free: 7.977 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.445, allocations: 3.875 kB / 0.4932 GB, free: 7.977 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.445, allocations: 5.953 kB / 0.4932 GB, free: 7.973 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.328e-06/0.445, allocations: 4.656 kB / 0.4932 GB, free: 7.969 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00105/0.4461, allocations: 0.6714 MB / 0.4939 GB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.4461, allocations: 1.156 kB / 0.4939 GB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002445/0.4463, allocations: 51.64 kB / 0.4939 GB, free: 7.387 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004845/0.4468, allocations: 149.9 kB / 0.4941 GB, free: 7.312 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.268e-05/0.4469, allocations: 10.56 kB / 0.4941 GB, free: 7.305 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004727/0.4516, allocations: 2.029 MB / 0.4961 GB, free: 5.48 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.4516, allocations: 1.062 kB / 0.4961 GB, free: 5.48 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0175/0.4691, allocations: 5.488 MB / 0.5014 GB, free: 1.176 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003131/0.4695, allocations: 156 kB / 0.5016 GB, free: 1.023 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.582e-05/0.4696, allocations: 10.91 kB / 0.5016 GB, free: 1.016 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003095/0.4699, allocations: 16.23 kB / 0.5016 GB, free: 1.008 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001617/0.4701, allocations: 39.34 kB / 0.5016 GB, free: 0.9844 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.139e-05/0.4701, allocations: 7.938 kB / 0.5016 GB, free: 0.9844 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004362/0.4706, allocations: 282.6 kB / 0.5019 GB, free: 0.8086 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4706, allocations: 0 / 0.5019 GB, free: 0.8086 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009485/0.4715, allocations: 218 kB / 0.5021 GB, free: 0.7539 MB / 330.7 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.000169/0.4717, allocations: 111.1 kB / 0.5022 GB, free: 0.6367 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.4728, allocations: 0.4993 MB / 0.5027 GB, free: 128 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.4728, allocations: 0 / 0.5027 GB, free: 128 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005412/0.4733, allocations: 330.5 kB / 0.503 GB, free: 15.79 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007035/0.474, allocations: 154.8 kB / 0.5032 GB, free: 15.64 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002923/0.477, allocations: 1.927 MB / 0.505 GB, free: 13.64 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005118/0.4775, allocations: 0.9408 MB / 0.506 GB, free: 12.68 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003179/0.4778, allocations: 92.56 kB / 0.5061 GB, free: 12.58 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.383e-05/0.4779, allocations: 35.44 kB / 0.5061 GB, free: 12.55 MB / 346.7 MB Notification: Performance of SimCode: time 5.31e-07/0.4779, allocations: 0 / 0.5061 GB, free: 12.55 MB / 346.7 MB Notification: Performance of Templates: time 0.02209/0.5, allocations: 9.111 MB / 0.515 GB, free: 3.461 MB / 346.7 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@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches