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.001568/0.001568, allocations: 112.7 kB / 17.74 MB, free: 5.227 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.001752/0.001752, allocations: 184.5 kB / 18.67 MB, free: 4.309 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.511/1.511, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1753/0.1753, allocations: 38.03 MB / 330.6 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 67.88 kB / 458.8 MB, free: 6.84 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3764/0.3778, allocations: 58.06 MB / 0.5048 GB, free: 8.07 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.007827/0.3857, allocations: 6.585 MB / 0.5112 GB, free: 3.484 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00322/0.389, allocations: 1.748 MB / 0.5129 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006805/0.3897, allocations: 23.62 kB / 0.5129 GB, free: 2.227 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007931/0.3905, allocations: 227.7 kB / 0.5131 GB, free: 2.102 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001092/0.3916, allocations: 387.7 kB / 0.5135 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006194/0.3922, allocations: 223.1 kB / 0.5137 GB, free: 1.738 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001327/0.3936, allocations: 1.073 MB / 0.5148 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000714/0.3943, allocations: 0.5095 MB / 0.5153 GB, free: 1.004 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001003/0.3953, allocations: 476 kB / 0.5157 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008535/0.3962, allocations: 485.4 kB / 0.5162 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001589/0.3964, allocations: 85.22 kB / 0.5163 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000196/0.3966, allocations: 84.75 kB / 0.5163 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003199/0.3969, allocations: 282.1 kB / 0.5166 GB, free: 456 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004382/0.3973, allocations: 405.8 kB / 0.517 GB, free: 204 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001569/0.3989, allocations: 1.04 MB / 0.518 GB, free: 15.81 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3989, allocations: 0.5312 kB / 0.518 GB, free: 15.81 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3989, allocations: 0.6562 kB / 0.518 GB, free: 15.81 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.093e-05/0.399, allocations: 0 / 0.518 GB, free: 15.81 MB / 398.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.002485/0.4015, allocations: 1.024 MB / 0.519 GB, free: 15.11 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.4015, allocations: 13.86 kB / 0.519 GB, free: 15.1 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001807/0.4017, allocations: 77.58 kB / 0.5191 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001287/0.403, allocations: 0.6458 MB / 0.5197 GB, free: 14.65 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001579/0.4032, allocations: 123.7 kB / 0.5199 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/0.4033, allocations: 63.56 kB / 0.5199 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001561/0.4049, allocations: 0.7443 MB / 0.5206 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/0.4049, allocations: 0 / 0.5206 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.918e-05/0.405, allocations: 26.53 kB / 0.5207 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.28e-05/0.405, allocations: 15.56 kB / 0.5207 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001396/0.4064, allocations: 0.5985 MB / 0.5213 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003809/0.4102, allocations: 2.457 MB / 0.5237 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008982/0.4111, allocations: 421.6 kB / 0.5241 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004522/0.4116, allocations: 208 kB / 0.5243 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.795e-05/0.4116, allocations: 7.656 kB / 0.5243 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004954/0.4121, allocations: 237.3 kB / 0.5245 GB, free: 11.86 MB / 398.1 MB Notification: Performance of pre-optimization done (n=36): time 4.258e-06/0.4122, allocations: 0 / 0.5245 GB, free: 11.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.003387/0.4156, allocations: 0.8864 MB / 0.5254 GB, free: 11.51 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.784e-05/0.4157, allocations: 133.9 kB / 0.5255 GB, free: 11.36 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000591/0.4163, allocations: 404.6 kB / 0.5259 GB, free: 11.15 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.011e-05/0.4163, allocations: 31.95 kB / 0.5259 GB, free: 11.12 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002735/0.4166, allocations: 320.5 kB / 0.5262 GB, free: 10.86 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001474/0.4167, allocations: 120.7 kB / 0.5263 GB, free: 10.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001374/0.4169, allocations: 79.83 kB / 0.5264 GB, free: 10.72 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.4171, allocations: 356.1 kB / 0.5267 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003205/0.4174, allocations: 127.2 kB / 0.5269 GB, free: 10.35 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003888/0.4178, allocations: 248.8 kB / 0.5271 GB, free: 10.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001581/0.4194, allocations: 0.6574 MB / 0.5277 GB, free: 9.805 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.4194, allocations: 1.156 kB / 0.5277 GB, free: 9.805 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001145/0.4205, allocations: 0.5232 MB / 0.5283 GB, free: 9.57 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.4206, allocations: 6.734 kB / 0.5283 GB, free: 9.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/0.4206, allocations: 7.609 kB / 0.5283 GB, free: 9.566 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004699/0.4211, allocations: 150.9 kB / 0.5284 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003114/0.4214, allocations: 71.28 kB / 0.5285 GB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003543/0.4249, allocations: 2.272 MB / 0.5307 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004591/0.4254, allocations: 53.09 kB / 0.5308 GB, free: 7.598 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.878e-05/0.4255, allocations: 14.94 kB / 0.5308 GB, free: 7.598 MB / 398.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.000444/0.4259, allocations: 248.3 kB / 0.531 GB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.669e-05/0.426, allocations: 46.61 kB / 0.5311 GB, free: 7.387 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00134/0.4273, allocations: 481.7 kB / 0.5315 GB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.4274, allocations: 8.25 kB / 0.5315 GB, free: 7.184 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.4274, allocations: 1.844 kB / 0.5315 GB, free: 7.184 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.4274, allocations: 3.328 kB / 0.5315 GB, free: 7.184 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009312/0.4283, allocations: 0.6761 MB / 0.5322 GB, free: 6.676 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.4283, allocations: 6.156 kB / 0.5322 GB, free: 6.672 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002389/0.4286, allocations: 42.3 kB / 0.5322 GB, free: 6.664 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004329/0.429, allocations: 153.6 kB / 0.5324 GB, free: 6.586 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.96e-05/0.4291, allocations: 11.44 kB / 0.5324 GB, free: 6.578 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003371/0.4324, allocations: 2.251 MB / 0.5346 GB, free: 4.562 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.4325, allocations: 1.406 kB / 0.5346 GB, free: 4.562 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001677/0.4341, allocations: 0.6879 MB / 0.5353 GB, free: 4.152 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002387/0.4344, allocations: 151.7 kB / 0.5354 GB, free: 4.004 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.042e-05/0.4345, allocations: 8.156 kB / 0.5354 GB, free: 4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002478/0.4347, allocations: 19.33 kB / 0.5354 GB, free: 3.988 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.4348, allocations: 35.17 kB / 0.5355 GB, free: 3.969 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.576e-05/0.4349, allocations: 15.91 kB / 0.5355 GB, free: 3.961 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003894/0.4353, allocations: 283.2 kB / 0.5357 GB, free: 3.789 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4353, allocations: 0 / 0.5357 GB, free: 3.789 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007607/0.436, allocations: 158.7 kB / 0.5359 GB, free: 3.754 MB / 398.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.0001683/0.4362, allocations: 112.8 kB / 0.536 GB, free: 3.648 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001259/0.4375, allocations: 0.5111 MB / 0.5365 GB, free: 3.336 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.4375, allocations: 0 / 0.5365 GB, free: 3.336 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006066/0.4381, allocations: 337.9 kB / 0.5368 GB, free: 3.109 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007495/0.4389, allocations: 150 kB / 0.537 GB, free: 3.031 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002728/0.4416, allocations: 1.293 MB / 0.5382 GB, free: 2.18 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006232/0.4422, allocations: 0.9297 MB / 0.5391 GB, free: 1.359 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.4424, allocations: 36.88 kB / 0.5392 GB, free: 1.352 MB / 398.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4424, allocations: 0 / 0.5392 GB, free: 1.352 MB / 398.1 MB Notification: Performance of Templates: time 0.01882/0.4612, allocations: 10.32 MB / 0.5493 GB, free: 10.23 MB / 414.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/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