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.001591/0.001591, allocations: 107 kB / 17.74 MB, free: 5.359 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.001832/0.001832, allocations: 186.4 kB / 18.67 MB, free: 4.438 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.422/1.422, allocations: 222.9 MB / 242.4 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.1725/0.1725, allocations: 38.04 MB / 330.6 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 67.89 kB / 458.8 MB, free: 6.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.334, allocations: 58.05 MB / 0.5048 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.006916/0.3409, allocations: 6.593 MB / 0.5112 GB, free: 3.172 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002666/0.3436, allocations: 1.743 MB / 0.5129 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002929/0.344, allocations: 27.5 kB / 0.5129 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006065/0.3446, allocations: 221.2 kB / 0.5132 GB, free: 1.801 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006687/0.3453, allocations: 388.3 kB / 0.5135 GB, free: 1.562 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004222/0.3457, allocations: 231.2 kB / 0.5137 GB, free: 1.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001077/0.3468, allocations: 1.079 MB / 0.5148 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006139/0.3474, allocations: 0.5089 MB / 0.5153 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006415/0.3481, allocations: 483.3 kB / 0.5158 GB, free: 476 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006058/0.3487, allocations: 482.3 kB / 0.5162 GB, free: 272 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001219/0.3488, allocations: 84.62 kB / 0.5163 GB, free: 272 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001525/0.349, allocations: 85.34 kB / 0.5164 GB, free: 272 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002694/0.3492, allocations: 277.1 kB / 0.5166 GB, free: 140 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004088/0.3497, allocations: 410.3 kB / 0.517 GB, free: 15.88 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001279/0.351, allocations: 1.041 MB / 0.518 GB, free: 15.5 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.351, allocations: 0 / 0.518 GB, free: 15.5 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.351, allocations: 0.5625 kB / 0.518 GB, free: 15.5 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.99e-05/0.351, allocations: 0 / 0.518 GB, free: 15.5 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.002182/0.3532, allocations: 1.008 MB / 0.519 GB, free: 14.8 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.3532, allocations: 18.42 kB / 0.519 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001483/0.3534, allocations: 72.72 kB / 0.5191 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001237/0.3546, allocations: 0.6574 MB / 0.5198 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001367/0.3548, allocations: 112.3 kB / 0.5199 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.3549, allocations: 67.41 kB / 0.5199 GB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/0.3562, allocations: 0.7468 MB / 0.5207 GB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.3563, allocations: 1.719 kB / 0.5207 GB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.629e-05/0.3563, allocations: 25.5 kB / 0.5207 GB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.75e-05/0.3564, allocations: 15.12 kB / 0.5207 GB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001219/0.3576, allocations: 0.6032 MB / 0.5213 GB, free: 13.65 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003446/0.361, allocations: 2.449 MB / 0.5237 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009529/0.362, allocations: 433.1 kB / 0.5241 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004375/0.3625, allocations: 199.1 kB / 0.5243 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.712e-05/0.3625, allocations: 4.641 kB / 0.5243 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004703/0.363, allocations: 242.2 kB / 0.5245 GB, free: 11.56 MB / 398.1 MB Notification: Performance of pre-optimization done (n=36): time 2.335e-06/0.363, allocations: 0 / 0.5245 GB, free: 11.56 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.003273/0.3663, allocations: 0.8764 MB / 0.5254 GB, free: 11.21 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.305e-05/0.3664, allocations: 138.9 kB / 0.5255 GB, free: 11.05 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004597/0.3668, allocations: 404.8 kB / 0.5259 GB, free: 10.85 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.602e-05/0.3669, allocations: 39.81 kB / 0.5259 GB, free: 10.81 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002393/0.3671, allocations: 320.6 kB / 0.5262 GB, free: 10.55 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.3672, allocations: 116.4 kB / 0.5264 GB, free: 10.46 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001292/0.3674, allocations: 77.02 kB / 0.5264 GB, free: 10.42 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.3675, allocations: 356.3 kB / 0.5268 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003194/0.3679, allocations: 134.2 kB / 0.5269 GB, free: 10.04 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003793/0.3682, allocations: 244.4 kB / 0.5271 GB, free: 9.855 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001592/0.3698, allocations: 0.6561 MB / 0.5278 GB, free: 9.5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.3699, allocations: 1.062 kB / 0.5278 GB, free: 9.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001134/0.371, allocations: 0.5316 MB / 0.5283 GB, free: 9.258 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.371, allocations: 8.219 kB / 0.5283 GB, free: 9.258 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.371, allocations: 3.406 kB / 0.5283 GB, free: 9.258 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004743/0.3715, allocations: 146.8 kB / 0.5284 GB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003036/0.3718, allocations: 79.36 kB / 0.5285 GB, free: 9.199 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003535/0.3754, allocations: 2.246 MB / 0.5307 GB, free: 7.336 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003932/0.3758, allocations: 56.97 kB / 0.5308 GB, free: 7.301 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.626e-05/0.3758, allocations: 17.98 kB / 0.5308 GB, free: 7.297 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.0003693/0.3762, allocations: 249.3 kB / 0.531 GB, free: 7.109 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.486e-05/0.3763, allocations: 45.91 kB / 0.5311 GB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001345/0.3777, allocations: 482 kB / 0.5315 GB, free: 6.887 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.09e-05/0.3777, allocations: 7.734 kB / 0.5315 GB, free: 6.883 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-06/0.3777, allocations: 1.812 kB / 0.5315 GB, free: 6.883 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002162/0.3779, allocations: 147.9 kB / 0.5317 GB, free: 6.746 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.195e-05/0.378, allocations: 8.25 kB / 0.5317 GB, free: 6.742 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002547/0.3783, allocations: 22.78 kB / 0.5317 GB, free: 6.734 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.403e-05/0.3784, allocations: 28.97 kB / 0.5317 GB, free: 6.727 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001827/0.3802, allocations: 0.8087 MB / 0.5325 GB, free: 6.234 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001188/0.3814, allocations: 0.9108 MB / 0.5334 GB, free: 5.555 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000328/0.3817, allocations: 158.4 kB / 0.5336 GB, free: 5.473 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003053/0.382, allocations: 291.3 kB / 0.5338 GB, free: 5.293 MB / 398.1 MB Notification: Performance of Backend: time 3e-07/0.3821, allocations: 0 / 0.5338 GB, free: 5.293 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001309/0.3834, allocations: 468 kB / 0.5343 GB, free: 4.973 MB / 398.1 MB Notification: Performance of SimCode: time 0.002384/0.3858, allocations: 1.748 MB / 0.536 GB, free: 3.664 MB / 398.1 MB Notification: Performance of Templates: time 0.01549/0.4013, allocations: 8.069 MB / 0.5439 GB, free: 15.71 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