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.001617/0.001617, allocations: 113.5 kB / 17.06 MB, free: 5.832 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.001849/0.001849, allocations: 193.4 kB / 18.01 MB, free: 4.938 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.503/1.503, 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.1884/0.1884, allocations: 38.04 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001974, allocations: 63.91 kB / 457.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3392/0.3412, allocations: 58.04 MB / 0.5036 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.00731/0.3486, allocations: 6.605 MB / 0.5101 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002403/0.351, allocations: 1.745 MB / 0.5118 GB, free: 1.668 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003866/0.3514, allocations: 24.41 kB / 0.5118 GB, free: 1.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006397/0.3521, allocations: 221.2 kB / 0.512 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008189/0.3529, allocations: 385.8 kB / 0.5124 GB, free: 1.305 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005217/0.3535, allocations: 225 kB / 0.5126 GB, free: 1.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001144/0.3546, allocations: 1.081 MB / 0.5136 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006067/0.3552, allocations: 0.504 MB / 0.5141 GB, free: 464 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006037/0.3559, allocations: 469.8 kB / 0.5146 GB, free: 236 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006407/0.3565, allocations: 485.2 kB / 0.515 GB, free: 28 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000118/0.3566, allocations: 84.59 kB / 0.5151 GB, free: 28 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001508/0.3568, allocations: 85.97 kB / 0.5152 GB, free: 28 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003479/0.3571, allocations: 273.4 kB / 0.5155 GB, free: 15.9 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004455/0.3576, allocations: 414 kB / 0.5159 GB, free: 15.64 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001258/0.3589, allocations: 1.039 MB / 0.5169 GB, free: 15.25 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3589, allocations: 0.5 kB / 0.5169 GB, free: 15.25 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3589, allocations: 0 / 0.5169 GB, free: 15.25 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.027e-05/0.3589, allocations: 1.125 kB / 0.5169 GB, free: 15.25 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.002269/0.3612, allocations: 1.031 MB / 0.5179 GB, free: 14.54 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.3612, allocations: 17.42 kB / 0.5179 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001549/0.3614, allocations: 107.5 kB / 0.518 GB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001622/0.3616, allocations: 79.7 kB / 0.5181 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001187/0.3628, allocations: 0.6673 MB / 0.5187 GB, free: 13.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001489/0.3629, allocations: 116.8 kB / 0.5188 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.641e-05/0.363, allocations: 63.25 kB / 0.5189 GB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/0.3644, allocations: 0.7433 MB / 0.5196 GB, free: 13.51 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.3644, allocations: 1.156 kB / 0.5196 GB, free: 13.51 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.588e-05/0.3645, allocations: 26.14 kB / 0.5197 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.3645, allocations: 14.72 kB / 0.5197 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001242/0.3658, allocations: 0.6056 MB / 0.5203 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00351/0.3693, allocations: 2.455 MB / 0.5227 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009223/0.3702, allocations: 423.1 kB / 0.5231 GB, free: 11.43 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004416/0.3707, allocations: 202.5 kB / 0.5233 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.142e-05/0.3707, allocations: 8.391 kB / 0.5233 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000464/0.3712, allocations: 246.5 kB / 0.5235 GB, free: 11.19 MB / 398.1 MB Notification: Performance of pre-optimization done (n=36): time 2.344e-06/0.3712, allocations: 0 / 0.5235 GB, free: 11.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.00334/0.3745, allocations: 0.8726 MB / 0.5243 GB, free: 10.85 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.942e-05/0.3747, allocations: 143.7 kB / 0.5245 GB, free: 10.69 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000495/0.3752, allocations: 400.6 kB / 0.5249 GB, free: 10.49 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.231e-05/0.3752, allocations: 34.89 kB / 0.5249 GB, free: 10.45 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002828/0.3755, allocations: 322.4 kB / 0.5252 GB, free: 10.2 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001125/0.3756, allocations: 124.5 kB / 0.5253 GB, free: 10.1 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001331/0.3758, allocations: 80.72 kB / 0.5254 GB, free: 10.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.3759, allocations: 355.3 kB / 0.5257 GB, free: 9.719 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003153/0.3763, allocations: 131.2 kB / 0.5259 GB, free: 9.676 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003982/0.3767, allocations: 249.6 kB / 0.5261 GB, free: 9.484 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001571/0.3782, allocations: 0.6635 MB / 0.5268 GB, free: 9.125 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.3783, allocations: 1.562 kB / 0.5268 GB, free: 9.125 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001125/0.3794, allocations: 0.5284 MB / 0.5273 GB, free: 8.887 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.3794, allocations: 5.969 kB / 0.5273 GB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.3794, allocations: 4.531 kB / 0.5273 GB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004736/0.3799, allocations: 150.1 kB / 0.5274 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002816/0.3802, allocations: 71.28 kB / 0.5275 GB, free: 8.832 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003737/0.384, allocations: 2.266 MB / 0.5297 GB, free: 6.949 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004303/0.3844, allocations: 58.02 kB / 0.5298 GB, free: 6.914 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.486e-05/0.3844, allocations: 18.16 kB / 0.5298 GB, free: 6.91 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.0003846/0.3848, allocations: 239.6 kB / 0.53 GB, free: 6.73 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.967e-05/0.3849, allocations: 54.58 kB / 0.5301 GB, free: 6.699 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001324/0.3863, allocations: 488.9 kB / 0.5305 GB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.3863, allocations: 3.75 kB / 0.5305 GB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.305e-06/0.3863, allocations: 0 / 0.5305 GB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.273e-06/0.3863, allocations: 4.953 kB / 0.5305 GB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009172/0.3872, allocations: 0.672 MB / 0.5312 GB, free: 6.031 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.3872, allocations: 1.156 kB / 0.5312 GB, free: 6.031 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002441/0.3875, allocations: 46.47 kB / 0.5312 GB, free: 6.027 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004659/0.388, allocations: 155.1 kB / 0.5314 GB, free: 5.969 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.397e-05/0.388, allocations: 8.531 kB / 0.5314 GB, free: 5.965 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003599/0.3916, allocations: 2.251 MB / 0.5336 GB, free: 4.039 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.164e-06/0.3917, allocations: 5.672 kB / 0.5336 GB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001785/0.3934, allocations: 0.6916 MB / 0.5343 GB, free: 3.621 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002492/0.3937, allocations: 151.9 kB / 0.5344 GB, free: 3.473 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.353e-05/0.3938, allocations: 11.53 kB / 0.5344 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002526/0.394, allocations: 24.59 kB / 0.5344 GB, free: 3.449 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001423/0.3942, allocations: 34.3 kB / 0.5345 GB, free: 3.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.051e-05/0.3942, allocations: 11.84 kB / 0.5345 GB, free: 3.426 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004295/0.3947, allocations: 282.7 kB / 0.5348 GB, free: 3.254 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3947, allocations: 1.125 kB / 0.5348 GB, free: 3.254 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007579/0.3954, allocations: 162.8 kB / 0.5349 GB, free: 3.215 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.002062/0.3975, allocations: 1.246 MB / 0.5361 GB, free: 2.254 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001261/0.3988, allocations: 0.504 MB / 0.5366 GB, free: 1.949 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.3988, allocations: 0 / 0.5366 GB, free: 1.949 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006911/0.3995, allocations: 348.3 kB / 0.537 GB, free: 1.711 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00079/0.4003, allocations: 164.1 kB / 0.5371 GB, free: 1.621 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007976/0.4083, allocations: 4.571 MB / 0.5416 GB, free: 14.46 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007634/0.4091, allocations: 0.936 MB / 0.5425 GB, free: 13.64 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003542/0.4094, allocations: 84.44 kB / 0.5426 GB, free: 13.6 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003085/0.4098, allocations: 190.5 kB / 0.5428 GB, free: 13.44 MB / 414.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4098, allocations: 0 / 0.5428 GB, free: 13.44 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04938/0.4592, allocations: 13.27 MB / 0.5557 GB, free: 2.355 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.81/13.27, allocations: 10.75 kB / 0.5557 GB, free: 2.348 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