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.001572/0.001572, allocations: 100.9 kB / 17.05 MB, free: 6.102 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.001887/0.001887, allocations: 196.1 kB / 18 MB, free: 5.172 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.347/1.347, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1717/0.1717, allocations: 38.04 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 63.88 kB / 457.7 MB, free: 7.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3229/0.3242, allocations: 58.07 MB / 0.5036 GB, free: 7.484 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.006481/0.3307, allocations: 6.481 MB / 0.51 GB, free: 2.969 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002229/0.333, allocations: 1.325 MB / 0.5113 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003044/0.3333, allocations: 23.38 kB / 0.5113 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003264/0.3337, allocations: 130.5 kB / 0.5114 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009026/0.3346, allocations: 425 kB / 0.5118 GB, free: 1.703 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004948/0.3351, allocations: 234.3 kB / 0.512 GB, free: 1.582 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001167/0.3363, allocations: 1.118 MB / 0.5131 GB, free: 1.098 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004831/0.3367, allocations: 404.5 kB / 0.5135 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008374/0.3376, allocations: 0.5033 MB / 0.514 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008426/0.3384, allocations: 0.5287 MB / 0.5145 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001144/0.3386, allocations: 69.44 kB / 0.5146 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000146/0.3387, allocations: 64.84 kB / 0.5146 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003271/0.3391, allocations: 334.3 kB / 0.515 GB, free: 396 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00036/0.3394, allocations: 404 kB / 0.5154 GB, free: 152 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001043/0.3405, allocations: 0.9155 MB / 0.5162 GB, free: 15.79 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3405, allocations: 0.5 kB / 0.5162 GB, free: 15.79 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3405, allocations: 0 / 0.5162 GB, free: 15.79 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.755e-05/0.3405, allocations: 0.5938 kB / 0.5162 GB, free: 15.79 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.002442/0.343, allocations: 1.177 MB / 0.5174 GB, free: 14.97 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/0.343, allocations: 13.88 kB / 0.5174 GB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001724/0.3432, allocations: 113.8 kB / 0.5175 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002077/0.3434, allocations: 92.41 kB / 0.5176 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001144/0.3446, allocations: 0.604 MB / 0.5182 GB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001232/0.3447, allocations: 117.7 kB / 0.5183 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000121/0.3448, allocations: 68.17 kB / 0.5184 GB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001634/0.3465, allocations: 0.8637 MB / 0.5192 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.111e-05/0.3465, allocations: 5.219 kB / 0.5192 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.926e-05/0.3466, allocations: 26.38 kB / 0.5192 GB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001205/0.3467, allocations: 38.12 kB / 0.5193 GB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001255/0.348, allocations: 0.6186 MB / 0.5199 GB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003889/0.3519, allocations: 2.751 MB / 0.5226 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001735/0.3536, allocations: 0.8998 MB / 0.5235 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007519/0.3544, allocations: 319.3 kB / 0.5238 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.54e-05/0.3544, allocations: 4.453 kB / 0.5238 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007628/0.3552, allocations: 356 kB / 0.5241 GB, free: 11.13 MB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 1.944e-06/0.3552, allocations: 1.375 kB / 0.5241 GB, free: 11.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.004311/0.3595, allocations: 1.988 MB / 0.526 GB, free: 9.953 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.171e-05/0.3596, allocations: 115.8 kB / 0.5262 GB, free: 9.824 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006119/0.3602, allocations: 0.511 MB / 0.5267 GB, free: 9.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.651e-05/0.3603, allocations: 43.2 kB / 0.5267 GB, free: 9.547 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002566/0.3606, allocations: 367.9 kB / 0.527 GB, free: 9.254 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001247/0.3607, allocations: 147.8 kB / 0.5272 GB, free: 9.141 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001812/0.3609, allocations: 129 kB / 0.5273 GB, free: 9.07 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.361, allocations: 367.3 kB / 0.5277 GB, free: 8.734 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003572/0.3614, allocations: 224 kB / 0.5279 GB, free: 8.664 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000435/0.3618, allocations: 392.6 kB / 0.5282 GB, free: 8.387 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007706/0.3626, allocations: 0.6244 MB / 0.5289 GB, free: 7.965 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.3626, allocations: 0 / 0.5289 GB, free: 7.965 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00129/0.3639, allocations: 0.8937 MB / 0.5297 GB, free: 7.512 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.327e-05/0.364, allocations: 54.12 kB / 0.5298 GB, free: 7.473 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.364, allocations: 9.375 kB / 0.5298 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002733/0.3643, allocations: 84.45 kB / 0.5299 GB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003786/0.3647, allocations: 106.3 kB / 0.53 GB, free: 7.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002488/0.3672, allocations: 3.262 MB / 0.5332 GB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003935/0.3676, allocations: 30.75 kB / 0.5332 GB, free: 4.348 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.298e-05/0.3677, allocations: 43.53 kB / 0.5332 GB, free: 4.34 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.0003842/0.3681, allocations: 279.3 kB / 0.5335 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.846e-05/0.3682, allocations: 59.78 kB / 0.5336 GB, free: 4.113 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001514/0.3697, allocations: 0.7036 MB / 0.5342 GB, free: 3.695 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.3697, allocations: 5.281 kB / 0.5342 GB, free: 3.695 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.3697, allocations: 2.25 kB / 0.5342 GB, free: 3.695 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.727e-06/0.3697, allocations: 5.266 kB / 0.5343 GB, free: 3.691 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002614/0.3723, allocations: 1.542 MB / 0.5358 GB, free: 2.574 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.3724, allocations: 1.062 kB / 0.5358 GB, free: 2.574 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002912/0.3726, allocations: 57.61 kB / 0.5358 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002829/0.3729, allocations: 98.78 kB / 0.5359 GB, free: 2.504 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.16e-05/0.373, allocations: 13.61 kB / 0.5359 GB, free: 2.496 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002372/0.3754, allocations: 3.257 MB / 0.5391 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3754, allocations: 0 / 0.5391 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002172/0.3776, allocations: 1.067 MB / 0.5401 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003156/0.3779, allocations: 173.4 kB / 0.5403 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001094/0.378, allocations: 27.92 kB / 0.5403 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004065/0.3784, allocations: 40.06 kB / 0.5404 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.914e-05/0.3785, allocations: 37.27 kB / 0.5404 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.746e-05/0.3786, allocations: 17.3 kB / 0.5404 GB, free: 14.38 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004453/0.379, allocations: 355.9 kB / 0.5408 GB, free: 14.17 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.824e-06/0.379, allocations: 1.156 kB / 0.5408 GB, free: 14.17 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008326/0.3799, allocations: 149.5 kB / 0.5409 GB, free: 14.15 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.002413/0.3823, allocations: 1.653 MB / 0.5425 GB, free: 12.9 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001676/0.384, allocations: 0.9023 MB / 0.5434 GB, free: 12.32 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.384, allocations: 0 / 0.5434 GB, free: 12.32 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009507/0.3849, allocations: 0.4973 MB / 0.5439 GB, free: 11.96 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008974/0.3859, allocations: 153.6 kB / 0.544 GB, free: 11.88 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008917/0.3948, allocations: 6.105 MB / 0.55 GB, free: 7.309 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006967/0.3955, allocations: 0.9682 MB / 0.5509 GB, free: 6.312 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003702/0.3959, allocations: 108.9 kB / 0.5511 GB, free: 6.207 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003055/0.3962, allocations: 223.4 kB / 0.5513 GB, free: 5.988 MB / 414.1 MB Notification: Performance of SimCode: time 6.12e-07/0.3962, allocations: 3.938 kB / 0.5513 GB, free: 5.984 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03881/0.4351, allocations: 13.24 MB / 0.5642 GB, free: 8.949 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.17/10.61, allocations: 3.984 kB / 0.5642 GB, free: 8.945 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