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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001565/0.001565, allocations: 113.6 kB / 17.06 MB, free: 6.012 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.001744/0.001744, allocations: 191 kB / 18 MB, free: 5.098 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.376/1.376, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.176/0.176, allocations: 38.04 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 71.83 kB / 457.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3607/0.3622, allocations: 58.05 MB / 0.5036 GB, free: 7.469 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.007597/0.3698, allocations: 6.59 MB / 0.5101 GB, free: 2.883 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00283/0.3727, allocations: 1.745 MB / 0.5118 GB, free: 1.633 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004382/0.3731, allocations: 28.78 kB / 0.5118 GB, free: 1.621 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007602/0.374, allocations: 215.4 kB / 0.512 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000933/0.3749, allocations: 393 kB / 0.5124 GB, free: 1.266 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005404/0.3754, allocations: 227.7 kB / 0.5126 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001199/0.3767, allocations: 1.075 MB / 0.5136 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006259/0.3773, allocations: 0.4986 MB / 0.5141 GB, free: 428 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007083/0.378, allocations: 488.7 kB / 0.5146 GB, free: 188 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007583/0.3788, allocations: 484.9 kB / 0.5151 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000123/0.3789, allocations: 85.25 kB / 0.5151 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001548/0.3791, allocations: 84.69 kB / 0.5152 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003444/0.3794, allocations: 278.8 kB / 0.5155 GB, free: 15.85 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005515/0.38, allocations: 409.4 kB / 0.5159 GB, free: 15.6 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001553/0.3816, allocations: 1.044 MB / 0.5169 GB, free: 15.21 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3816, allocations: 0.5 kB / 0.5169 GB, free: 15.21 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3816, allocations: 0.625 kB / 0.5169 GB, free: 15.21 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.947e-05/0.3816, allocations: 0 / 0.5169 GB, free: 15.21 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.002379/0.384, allocations: 1.032 MB / 0.5179 GB, free: 14.49 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/0.384, allocations: 13.02 kB / 0.5179 GB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001577/0.3842, allocations: 107.1 kB / 0.518 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000168/0.3844, allocations: 79.28 kB / 0.5181 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001261/0.3857, allocations: 0.6601 MB / 0.5187 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000141/0.3858, allocations: 120.2 kB / 0.5188 GB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/0.3859, allocations: 60.11 kB / 0.5189 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/0.3874, allocations: 0.7433 MB / 0.5196 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.3874, allocations: 1.312 kB / 0.5196 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.598e-05/0.3875, allocations: 26.27 kB / 0.5197 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.449e-05/0.3875, allocations: 14.56 kB / 0.5197 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.3888, allocations: 0.5985 MB / 0.5203 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003863/0.3926, allocations: 2.461 MB / 0.5227 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009874/0.3936, allocations: 429.8 kB / 0.5231 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004481/0.3941, allocations: 202.2 kB / 0.5233 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.958e-05/0.3941, allocations: 8.344 kB / 0.5233 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004879/0.3946, allocations: 246.5 kB / 0.5235 GB, free: 11.15 MB / 398.1 MB Notification: Performance of pre-optimization done (n=36): time 2.184e-06/0.3946, allocations: 0 / 0.5235 GB, free: 11.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.003321/0.398, allocations: 0.8722 MB / 0.5244 GB, free: 10.81 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.681e-05/0.3981, allocations: 138.2 kB / 0.5245 GB, free: 10.65 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005216/0.3986, allocations: 405.1 kB / 0.5249 GB, free: 10.45 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.601e-05/0.3987, allocations: 31.95 kB / 0.5249 GB, free: 10.41 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002713/0.3989, allocations: 326.8 kB / 0.5252 GB, free: 10.16 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001166/0.3991, allocations: 128.5 kB / 0.5253 GB, free: 10.05 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/0.3992, allocations: 75.73 kB / 0.5254 GB, free: 10.01 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.3994, allocations: 356.6 kB / 0.5258 GB, free: 9.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003157/0.3997, allocations: 126.2 kB / 0.5259 GB, free: 9.641 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003815/0.4001, allocations: 248.5 kB / 0.5261 GB, free: 9.449 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001552/0.4016, allocations: 0.6684 MB / 0.5268 GB, free: 9.082 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.4017, allocations: 2.188 kB / 0.5268 GB, free: 9.082 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.00112/0.4028, allocations: 0.5273 MB / 0.5273 GB, free: 8.844 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.4028, allocations: 9.969 kB / 0.5273 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.4028, allocations: 9.656 kB / 0.5273 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004705/0.4033, allocations: 153.6 kB / 0.5274 GB, free: 8.781 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002877/0.4036, allocations: 72.05 kB / 0.5275 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003706/0.4073, allocations: 2.253 MB / 0.5297 GB, free: 6.906 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004423/0.4078, allocations: 53.67 kB / 0.5298 GB, free: 6.875 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.806e-05/0.4078, allocations: 22.06 kB / 0.5298 GB, free: 6.867 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.0004188/0.4083, allocations: 244.3 kB / 0.53 GB, free: 6.684 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.485e-05/0.4083, allocations: 50.27 kB / 0.5301 GB, free: 6.656 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001375/0.4097, allocations: 493.2 kB / 0.5305 GB, free: 6.449 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.4097, allocations: 3.594 kB / 0.5305 GB, free: 6.449 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.4098, allocations: 0 / 0.5305 GB, free: 6.449 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/0.4098, allocations: 9.594 kB / 0.5305 GB, free: 6.445 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009793/0.4108, allocations: 0.6717 MB / 0.5312 GB, free: 5.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.4108, allocations: 1.875 kB / 0.5312 GB, free: 5.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002443/0.411, allocations: 45.28 kB / 0.5312 GB, free: 5.977 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004272/0.4115, allocations: 151.5 kB / 0.5314 GB, free: 5.922 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.92e-05/0.4115, allocations: 8.031 kB / 0.5314 GB, free: 5.918 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003462/0.415, allocations: 2.255 MB / 0.5336 GB, free: 4.023 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.415, allocations: 0.9375 kB / 0.5336 GB, free: 4.023 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001623/0.4166, allocations: 0.6923 MB / 0.5343 GB, free: 3.609 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002274/0.4169, allocations: 148.1 kB / 0.5344 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.288e-05/0.4169, allocations: 12.16 kB / 0.5344 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002407/0.4172, allocations: 19.42 kB / 0.5345 GB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/0.4173, allocations: 39.5 kB / 0.5345 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.734e-05/0.4173, allocations: 11.72 kB / 0.5345 GB, free: 3.418 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003915/0.4177, allocations: 282.8 kB / 0.5348 GB, free: 3.246 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4177, allocations: 192 / 0.5348 GB, free: 3.246 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007538/0.4185, allocations: 162.9 kB / 0.5349 GB, free: 3.207 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.00186/0.4204, allocations: 1.253 MB / 0.5362 GB, free: 2.242 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001034/0.4214, allocations: 0.5038 MB / 0.5366 GB, free: 1.938 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4214, allocations: 0 / 0.5366 GB, free: 1.938 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005655/0.422, allocations: 344.2 kB / 0.537 GB, free: 1.703 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007465/0.4228, allocations: 164.2 kB / 0.5371 GB, free: 1.613 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006986/0.4298, allocations: 4.578 MB / 0.5416 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005498/0.4303, allocations: 0.9313 MB / 0.5425 GB, free: 13.62 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003284/0.4307, allocations: 85.73 kB / 0.5426 GB, free: 13.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002391/0.4309, allocations: 193.5 kB / 0.5428 GB, free: 13.42 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4309, allocations: 0 / 0.5428 GB, free: 13.42 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03767/0.4686, allocations: 13.27 MB / 0.5557 GB, free: 2.344 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.11/12.58, allocations: 0 / 0.5557 GB, free: 2.344 MB / 414.1 MB (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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper_res.csv","/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