Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.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.InverterToLoad,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",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.001133/0.001133, allocations: 109.7 kB / 17.06 MB, free: 5.996 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.001006/0.001006, allocations: 194.9 kB / 18.01 MB, free: 5.074 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.378/1.378, 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.1748/0.1748, allocations: 38.04 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 59.91 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3614/0.3629, allocations: 58.06 MB / 0.5036 GB, free: 7.371 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.007921/0.3708, allocations: 5.972 MB / 0.5095 GB, free: 3.227 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003079/0.374, allocations: 1.549 MB / 0.511 GB, free: 2.148 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004024/0.3744, allocations: 22.53 kB / 0.511 GB, free: 2.141 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005667/0.375, allocations: 138.5 kB / 0.5111 GB, free: 2.062 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008992/0.3759, allocations: 375.9 kB / 0.5115 GB, free: 1.836 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007642/0.3767, allocations: 305.5 kB / 0.5118 GB, free: 1.688 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001622/0.3783, allocations: 1.341 MB / 0.5131 GB, free: 1.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005628/0.3789, allocations: 377.7 kB / 0.5134 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009247/0.3798, allocations: 0.5485 MB / 0.514 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008004/0.3807, allocations: 0.5431 MB / 0.5145 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001423/0.3808, allocations: 91.44 kB / 0.5146 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001817/0.381, allocations: 91.44 kB / 0.5147 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003989/0.3814, allocations: 350.2 kB / 0.515 GB, free: 372 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004522/0.3819, allocations: 405.5 kB / 0.5154 GB, free: 128 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001576/0.3834, allocations: 1.063 MB / 0.5164 GB, free: 15.73 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.3835, allocations: 0.5 kB / 0.5164 GB, free: 15.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3835, allocations: 0 / 0.5164 GB, free: 15.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.928e-05/0.3835, allocations: 0.5 kB / 0.5164 GB, free: 15.73 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.003155/0.3867, allocations: 1.22 MB / 0.5176 GB, free: 14.95 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.3867, allocations: 13.98 kB / 0.5176 GB, free: 14.94 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001724/0.3869, allocations: 107.4 kB / 0.5178 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000213/0.3871, allocations: 83.58 kB / 0.5178 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00147/0.3886, allocations: 0.6715 MB / 0.5185 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004517/0.3891, allocations: 344.8 kB / 0.5188 GB, free: 14.13 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001359/0.3892, allocations: 58.94 kB / 0.5189 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002346/0.3916, allocations: 1.041 MB / 0.5199 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.3916, allocations: 1.062 kB / 0.5199 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.974e-05/0.3917, allocations: 26.05 kB / 0.5199 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.637e-05/0.3917, allocations: 14.47 kB / 0.5199 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002781/0.3945, allocations: 1.093 MB / 0.521 GB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005305/0.3998, allocations: 3.199 MB / 0.5241 GB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002305/0.4021, allocations: 0.7483 MB / 0.5248 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001477/0.4036, allocations: 0.5337 MB / 0.5254 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.397e-05/0.4037, allocations: 4.562 kB / 0.5254 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001541/0.4052, allocations: 0.6302 MB / 0.526 GB, free: 10.74 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.545e-06/0.4053, allocations: 0 / 0.526 GB, free: 10.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.004055/0.4093, allocations: 1.369 MB / 0.5273 GB, free: 10.24 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.545e-05/0.4094, allocations: 148.1 kB / 0.5275 GB, free: 10.07 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004923/0.4099, allocations: 396.6 kB / 0.5278 GB, free: 9.824 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.195e-05/0.41, allocations: 40.48 kB / 0.5279 GB, free: 9.785 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002524/0.4103, allocations: 293.8 kB / 0.5282 GB, free: 9.523 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001656/0.4105, allocations: 173.2 kB / 0.5283 GB, free: 9.375 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002164/0.4107, allocations: 116.8 kB / 0.5284 GB, free: 9.305 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.4108, allocations: 362.3 kB / 0.5288 GB, free: 8.957 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001035/0.4119, allocations: 453.4 kB / 0.5292 GB, free: 8.738 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001146/0.413, allocations: 0.5577 MB / 0.5298 GB, free: 8.387 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002038/0.4151, allocations: 0.8878 MB / 0.5306 GB, free: 7.859 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.409e-06/0.4151, allocations: 1.375 kB / 0.5306 GB, free: 7.859 MB / 398.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002543/0.4176, allocations: 1.088 MB / 0.5317 GB, free: 7.297 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.342e-05/0.4177, allocations: 52.56 kB / 0.5317 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.4177, allocations: 2.219 kB / 0.5317 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.4178, allocations: 5.781 kB / 0.5318 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006018/0.4238, allocations: 1.111 MB / 0.5328 GB, free: 6.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008477/0.4323, allocations: 4.7 MB / 0.5374 GB, free: 2.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/0.4334, allocations: 108.4 kB / 0.5375 GB, free: 2.852 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001242/0.4335, allocations: 38.75 kB / 0.5376 GB, free: 2.84 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 14 (inverter.modulator.t0,$PRE.inverter.modulator.t0,inverter.modulator.sigdel_t,$PRE.inverter.modulator.sigdel_t,inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005722/0.4341, allocations: 249 kB / 0.5378 GB, free: 2.641 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001199/0.4342, allocations: 59.45 kB / 0.5379 GB, free: 2.605 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002832/0.4371, allocations: 0.9866 MB / 0.5388 GB, free: 2.07 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/0.4371, allocations: 6.125 kB / 0.5388 GB, free: 2.07 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.4371, allocations: 5 kB / 0.5388 GB, free: 2.066 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.4371, allocations: 5.609 kB / 0.5388 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004793/0.4419, allocations: 2.13 MB / 0.5409 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.286e-06/0.442, allocations: 1.375 kB / 0.5409 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007005/0.449, allocations: 1.288 MB / 0.5422 GB, free: 112 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.023e-05/0.449, allocations: 3.812 kB / 0.5422 GB, free: 112 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.949e-05/0.4491, allocations: 17.86 kB / 0.5422 GB, free: 100 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.033e-06/0.4491, allocations: 3.781 kB / 0.5422 GB, free: 100 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-06/0.4491, allocations: 6.938 kB / 0.5422 GB, free: 96 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003991/0.4531, allocations: 1.701 MB / 0.5439 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003831/0.4535, allocations: 204.7 kB / 0.5441 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001186/0.4536, allocations: 31.98 kB / 0.5441 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006817/0.4543, allocations: 87.88 kB / 0.5442 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002071/0.4545, allocations: 99.73 kB / 0.5443 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.726e-05/0.4546, allocations: 19.98 kB / 0.5443 GB, free: 14.13 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002959/0.4549, allocations: 271.1 kB / 0.5446 GB, free: 13.86 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4549, allocations: 0 / 0.5446 GB, free: 13.86 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006998/0.4556, allocations: 175.7 kB / 0.5447 GB, free: 13.69 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004276/0.4599, allocations: 2.275 MB / 0.5469 GB, free: 11.37 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007642/0.4675, allocations: 2.078 MB / 0.549 GB, free: 9.277 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.4676, allocations: 4 kB / 0.549 GB, free: 9.273 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003554/0.4711, allocations: 0.9605 MB / 0.5499 GB, free: 8.312 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009041/0.472, allocations: 133.8 kB / 0.55 GB, free: 8.188 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01185/0.4839, allocations: 6.564 MB / 0.5565 GB, free: 1.418 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000659/0.4846, allocations: 0.9368 MB / 0.5574 GB, free: 468 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006902/0.4853, allocations: 156.6 kB / 0.5575 GB, free: 308 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004691/0.4858, allocations: 207.2 kB / 0.5577 GB, free: 100 kB / 414.1 MB Notification: Performance of SimCode: time 1.152e-06/0.4858, allocations: 0 / 0.5577 GB, free: 100 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03952/0.5253, allocations: 13.69 MB / 0.5711 GB, free: 2.633 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/13.03, allocations: 14.73 kB / 0.5711 GB, free: 2.621 MB / 430.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad_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_InverterToLoad.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches