Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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.Elementary.Inverter,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",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.001655/0.001655, allocations: 107.9 kB / 17.06 MB, free: 6.004 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.001768/0.001768, allocations: 189.4 kB / 18 MB, free: 5.09 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.547/1.547, allocations: 222.9 MB / 241.7 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.1905/0.1905, allocations: 38.05 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 68.12 kB / 457.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3429/0.3448, allocations: 58.06 MB / 0.5036 GB, free: 7.469 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.006193/0.351, allocations: 6.492 MB / 0.51 GB, free: 2.941 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002108/0.3532, allocations: 1.314 MB / 0.5113 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002888/0.3535, allocations: 27.75 kB / 0.5113 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003031/0.3538, allocations: 125.2 kB / 0.5114 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008619/0.3547, allocations: 423.1 kB / 0.5118 GB, free: 1.688 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004799/0.3552, allocations: 238.7 kB / 0.512 GB, free: 1.562 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001012/0.3562, allocations: 1.113 MB / 0.5131 GB, free: 1.078 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004452/0.3567, allocations: 401.9 kB / 0.5135 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006019/0.3573, allocations: 498.5 kB / 0.514 GB, free: 0.707 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000722/0.358, allocations: 0.5286 MB / 0.5145 GB, free: 0.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001452/0.3582, allocations: 69.28 kB / 0.5146 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001902/0.3584, allocations: 65.31 kB / 0.5146 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003574/0.3587, allocations: 335.5 kB / 0.5149 GB, free: 380 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003812/0.3591, allocations: 399.8 kB / 0.5153 GB, free: 140 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001114/0.3603, allocations: 0.9236 MB / 0.5162 GB, free: 15.78 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3603, allocations: 4.5 kB / 0.5162 GB, free: 15.77 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3603, allocations: 0.625 kB / 0.5162 GB, free: 15.77 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.3603, allocations: 0 / 0.5162 GB, free: 15.77 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002325/0.3626, allocations: 1.167 MB / 0.5174 GB, free: 14.96 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.3627, allocations: 10.2 kB / 0.5174 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001707/0.3629, allocations: 110.2 kB / 0.5175 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002182/0.3631, allocations: 88.59 kB / 0.5176 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/0.3642, allocations: 0.6151 MB / 0.5182 GB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001423/0.3644, allocations: 118.3 kB / 0.5183 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.3645, allocations: 63.38 kB / 0.5183 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001683/0.3662, allocations: 0.8687 MB / 0.5192 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.034e-05/0.3662, allocations: 1.375 kB / 0.5192 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.649e-05/0.3663, allocations: 21.75 kB / 0.5192 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001117/0.3664, allocations: 40.41 kB / 0.5193 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001247/0.3677, allocations: 0.6231 MB / 0.5199 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003985/0.3717, allocations: 2.751 MB / 0.5226 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00175/0.3734, allocations: 0.8927 MB / 0.5234 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007654/0.3742, allocations: 318.7 kB / 0.5237 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.291e-05/0.3743, allocations: 7.047 kB / 0.5237 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007794/0.375, allocations: 352.6 kB / 0.5241 GB, free: 11.12 MB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 2.194e-06/0.375, allocations: 3.938 kB / 0.5241 GB, free: 11.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.004664/0.3797, allocations: 1.996 MB / 0.526 GB, free: 9.938 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.588e-05/0.3798, allocations: 115.4 kB / 0.5261 GB, free: 9.809 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006667/0.3805, allocations: 0.5115 MB / 0.5266 GB, free: 9.574 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.851e-05/0.3806, allocations: 40.36 kB / 0.5267 GB, free: 9.535 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003188/0.3809, allocations: 362 kB / 0.527 GB, free: 9.246 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001356/0.381, allocations: 147.6 kB / 0.5272 GB, free: 9.133 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001863/0.3812, allocations: 125.5 kB / 0.5273 GB, free: 9.066 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001842/0.3814, allocations: 368.3 kB / 0.5276 GB, free: 8.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003517/0.3818, allocations: 223.8 kB / 0.5278 GB, free: 8.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004601/0.3822, allocations: 397.7 kB / 0.5282 GB, free: 8.379 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000839/0.3831, allocations: 0.6226 MB / 0.5288 GB, free: 7.957 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.3831, allocations: 1.719 kB / 0.5288 GB, free: 7.957 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00129/0.3844, allocations: 0.8987 MB / 0.5297 GB, free: 7.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.119e-05/0.3845, allocations: 49.27 kB / 0.5298 GB, free: 7.465 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.3845, allocations: 7.719 kB / 0.5298 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002887/0.3848, allocations: 84.89 kB / 0.5298 GB, free: 7.434 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003768/0.3852, allocations: 114.5 kB / 0.53 GB, free: 7.414 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002882/0.388, allocations: 3.259 MB / 0.5331 GB, free: 4.344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003853/0.3884, allocations: 29.47 kB / 0.5332 GB, free: 4.336 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.872e-05/0.3885, allocations: 48.33 kB / 0.5332 GB, free: 4.324 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,dc_ac.modulator.t0,$PRE.dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004274/0.389, allocations: 274.5 kB / 0.5335 GB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.521e-05/0.3891, allocations: 59.25 kB / 0.5335 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00152/0.3906, allocations: 0.7107 MB / 0.5342 GB, free: 3.648 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.3906, allocations: 4.688 kB / 0.5342 GB, free: 3.648 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/0.3906, allocations: 2.281 kB / 0.5342 GB, free: 3.648 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.3906, allocations: 7.938 kB / 0.5342 GB, free: 3.641 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002616/0.3933, allocations: 1.528 MB / 0.5357 GB, free: 2.539 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.3933, allocations: 1.344 kB / 0.5357 GB, free: 2.539 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002746/0.3936, allocations: 60.8 kB / 0.5358 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002843/0.3939, allocations: 99.28 kB / 0.5359 GB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001062/0.394, allocations: 17.39 kB / 0.5359 GB, free: 2.453 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003223/0.3972, allocations: 3.253 MB / 0.5391 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.3972, allocations: 5.5 kB / 0.5391 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00341/0.4006, allocations: 1.062 MB / 0.5401 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004462/0.4011, allocations: 181.1 kB / 0.5403 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001629/0.4013, allocations: 28.55 kB / 0.5403 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006355/0.4019, allocations: 42.88 kB / 0.5404 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001175/0.4021, allocations: 30.06 kB / 0.5404 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.63e-05/0.4021, allocations: 17.33 kB / 0.5404 GB, free: 14.33 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007505/0.4029, allocations: 361.2 kB / 0.5408 GB, free: 14.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4029, allocations: 4 kB / 0.5408 GB, free: 14.12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008955/0.4038, allocations: 146.5 kB / 0.5409 GB, free: 14.11 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003235/0.4071, allocations: 1.642 MB / 0.5425 GB, free: 12.86 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002048/0.4092, allocations: 0.9011 MB / 0.5434 GB, free: 12.28 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.4092, allocations: 2.5 kB / 0.5434 GB, free: 12.28 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001445/0.4106, allocations: 0.4959 MB / 0.5439 GB, free: 11.92 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001484/0.4121, allocations: 153.7 kB / 0.544 GB, free: 11.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0134/0.4256, allocations: 6.108 MB / 0.55 GB, free: 7.312 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009835/0.4266, allocations: 0.9721 MB / 0.5509 GB, free: 6.312 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005954/0.4272, allocations: 112.9 kB / 0.551 GB, free: 6.203 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005218/0.4278, allocations: 223.4 kB / 0.5512 GB, free: 5.984 MB / 414.1 MB Notification: Performance of SimCode: time 9.31e-07/0.4278, allocations: 0 / 0.5512 GB, free: 5.984 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0599/0.4877, allocations: 13.23 MB / 0.5642 GB, free: 8.961 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/11.23, allocations: 10.67 kB / 0.5642 GB, free: 8.957 MB / 430.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_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_Elementary_Inverter.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches