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.001331/0.00133, allocations: 110.2 kB / 17.06 MB, free: 5.785 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.001351/0.001352, allocations: 191 kB / 18 MB, free: 4.945 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.337/1.337, 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.1769/0.1769, allocations: 38.05 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 59.89 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3613/0.3628, allocations: 58.06 MB / 0.5036 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.009404/0.3723, allocations: 6.488 MB / 0.51 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002966/0.3753, allocations: 1.314 MB / 0.5113 GB, free: 2.059 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004273/0.3758, allocations: 27.91 kB / 0.5113 GB, free: 2.047 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003949/0.3762, allocations: 124.7 kB / 0.5114 GB, free: 1.973 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001279/0.3775, allocations: 425.8 kB / 0.5118 GB, free: 1.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007043/0.3782, allocations: 235 kB / 0.512 GB, free: 1.609 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001735/0.38, allocations: 1.125 MB / 0.5131 GB, free: 1.117 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006984/0.3807, allocations: 401.1 kB / 0.5135 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001303/0.382, allocations: 0.5102 MB / 0.514 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001305/0.3833, allocations: 0.5259 MB / 0.5145 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000197/0.3835, allocations: 64.97 kB / 0.5146 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002035/0.3837, allocations: 64.31 kB / 0.5146 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005138/0.3843, allocations: 341.9 kB / 0.515 GB, free: 412 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005309/0.3848, allocations: 401.1 kB / 0.5154 GB, free: 172 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001733/0.3865, allocations: 0.9192 MB / 0.5162 GB, free: 15.81 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.3866, allocations: 0 / 0.5162 GB, free: 15.81 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.796e-06/0.3866, allocations: 0.5 kB / 0.5163 GB, free: 15.81 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.374e-05/0.3866, allocations: 0.5 kB / 0.5163 GB, free: 15.81 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.003011/0.3896, allocations: 1.175 MB / 0.5174 GB, free: 14.99 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/0.3897, allocations: 13.36 kB / 0.5174 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001678/0.3899, allocations: 115 kB / 0.5175 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002016/0.3901, allocations: 87.98 kB / 0.5176 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001359/0.3914, allocations: 0.6069 MB / 0.5182 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000161/0.3916, allocations: 118.1 kB / 0.5183 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001395/0.3918, allocations: 65.36 kB / 0.5184 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001807/0.3936, allocations: 0.8663 MB / 0.5192 GB, free: 13.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.3936, allocations: 5.188 kB / 0.5192 GB, free: 13.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.34e-05/0.3937, allocations: 26.44 kB / 0.5192 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001346/0.3938, allocations: 38.44 kB / 0.5193 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001406/0.3952, allocations: 0.6217 MB / 0.5199 GB, free: 13.76 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004451/0.3997, allocations: 2.752 MB / 0.5226 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001798/0.4015, allocations: 0.8921 MB / 0.5235 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008047/0.4023, allocations: 311.5 kB / 0.5237 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.884e-05/0.4024, allocations: 11.91 kB / 0.5238 GB, free: 11.31 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008594/0.4033, allocations: 348.5 kB / 0.5241 GB, free: 11.16 MB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 4.959e-06/0.4033, allocations: 7.938 kB / 0.5241 GB, free: 11.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.004703/0.408, allocations: 1.996 MB / 0.526 GB, free: 9.965 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.755e-05/0.4081, allocations: 112 kB / 0.5262 GB, free: 9.84 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006947/0.4088, allocations: 0.5111 MB / 0.5267 GB, free: 9.605 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.455e-05/0.4088, allocations: 40.83 kB / 0.5267 GB, free: 9.566 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003675/0.4092, allocations: 362.3 kB / 0.527 GB, free: 9.277 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001578/0.4094, allocations: 151.5 kB / 0.5272 GB, free: 9.16 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002139/0.4096, allocations: 120.9 kB / 0.5273 GB, free: 9.098 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002087/0.4098, allocations: 373 kB / 0.5277 GB, free: 8.758 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004519/0.4103, allocations: 226.9 kB / 0.5279 GB, free: 8.684 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005065/0.4108, allocations: 393.4 kB / 0.5282 GB, free: 8.406 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008317/0.4116, allocations: 0.6238 MB / 0.5289 GB, free: 7.984 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.4116, allocations: 1.281 kB / 0.5289 GB, free: 7.984 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001384/0.413, allocations: 0.8967 MB / 0.5297 GB, free: 7.527 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.577e-05/0.4131, allocations: 53.42 kB / 0.5298 GB, free: 7.488 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/0.4131, allocations: 4.844 kB / 0.5298 GB, free: 7.488 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003469/0.4135, allocations: 92.8 kB / 0.5299 GB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004166/0.4139, allocations: 106.1 kB / 0.53 GB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003018/0.4169, allocations: 3.259 MB / 0.5332 GB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004995/0.4175, allocations: 38.23 kB / 0.5332 GB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.1e-05/0.4175, allocations: 40.02 kB / 0.5332 GB, free: 4.352 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.0004734/0.418, allocations: 271.6 kB / 0.5335 GB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.827e-05/0.4181, allocations: 59.19 kB / 0.5336 GB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001548/0.4197, allocations: 0.7116 MB / 0.5342 GB, free: 3.699 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.4197, allocations: 5.438 kB / 0.5343 GB, free: 3.699 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.4197, allocations: 1.062 kB / 0.5343 GB, free: 3.699 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.328e-06/0.4197, allocations: 4.984 kB / 0.5343 GB, free: 3.695 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002838/0.4226, allocations: 1.535 MB / 0.5358 GB, free: 2.586 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.4226, allocations: 4.969 kB / 0.5358 GB, free: 2.582 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000296/0.4229, allocations: 62.28 kB / 0.5358 GB, free: 2.566 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003158/0.4232, allocations: 90.62 kB / 0.5359 GB, free: 2.516 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.948e-05/0.4233, allocations: 21.2 kB / 0.5359 GB, free: 2.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002724/0.426, allocations: 3.253 MB / 0.5391 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.426, allocations: 2.625 kB / 0.5391 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002408/0.4285, allocations: 1.07 MB / 0.5401 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003923/0.4289, allocations: 173.7 kB / 0.5403 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001343/0.429, allocations: 27.58 kB / 0.5403 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004206/0.4294, allocations: 39.61 kB / 0.5404 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001269/0.4296, allocations: 40.98 kB / 0.5404 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.682e-05/0.4296, allocations: 18.2 kB / 0.5404 GB, free: 14.38 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005992/0.4303, allocations: 352.3 kB / 0.5408 GB, free: 14.17 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4303, allocations: 0 / 0.5408 GB, free: 14.17 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008737/0.4311, allocations: 151.2 kB / 0.5409 GB, free: 14.16 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.002494/0.4336, allocations: 1.639 MB / 0.5425 GB, free: 12.92 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001719/0.4354, allocations: 0.9016 MB / 0.5434 GB, free: 12.33 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.4354, allocations: 5.188 kB / 0.5434 GB, free: 12.33 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009281/0.4363, allocations: 0.4992 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.000948/0.4373, allocations: 157 kB / 0.544 GB, free: 11.89 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009038/0.4464, allocations: 6.105 MB / 0.55 GB, free: 7.266 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005725/0.447, allocations: 0.9798 MB / 0.551 GB, free: 6.258 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003679/0.4473, allocations: 108.9 kB / 0.5511 GB, free: 6.152 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002872/0.4476, allocations: 219.4 kB / 0.5513 GB, free: 5.938 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4476, allocations: 0 / 0.5513 GB, free: 5.938 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04095/0.4886, allocations: 13.23 MB / 0.5642 GB, free: 8.914 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.44/10.93, allocations: 11.86 kB / 0.5642 GB, free: 8.906 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