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: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001804/0.001804, allocations: 110.2 kB / 17.06 MB, free: 5.82 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.001877/0.001877, allocations: 195 kB / 18 MB, free: 4.965 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.357/1.357, 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.1702/0.1702, allocations: 38.04 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 59.91 kB / 458.2 MB, free: 6.828 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4347/0.4359, allocations: 58.05 MB / 0.5041 GB, free: 7.848 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.009455/0.4454, allocations: 6.489 MB / 0.5105 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003094/0.4485, allocations: 1.311 MB / 0.5117 GB, free: 2.398 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004051/0.449, allocations: 27.25 kB / 0.5118 GB, free: 2.387 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003853/0.4494, allocations: 129.1 kB / 0.5119 GB, free: 2.309 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001059/0.4505, allocations: 419.5 kB / 0.5123 GB, free: 2.07 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005774/0.4511, allocations: 239.5 kB / 0.5125 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001319/0.4524, allocations: 1.119 MB / 0.5136 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005757/0.453, allocations: 405.8 kB / 0.514 GB, free: 1.305 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007512/0.4538, allocations: 0.4903 MB / 0.5145 GB, free: 1.078 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008882/0.4547, allocations: 0.5283 MB / 0.515 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001274/0.4548, allocations: 65.34 kB / 0.5151 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001713/0.455, allocations: 65 kB / 0.5151 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004331/0.4554, allocations: 332.3 kB / 0.5154 GB, free: 0.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004427/0.4559, allocations: 400.5 kB / 0.5158 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001494/0.4574, allocations: 0.9314 MB / 0.5167 GB, free: 152 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.4574, allocations: 0 / 0.5167 GB, free: 152 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.4574, allocations: 1.5 kB / 0.5167 GB, free: 152 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.715e-05/0.4574, allocations: 0 / 0.5167 GB, free: 152 kB / 382.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.002719/0.4601, allocations: 1.164 MB / 0.5179 GB, free: 15.33 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.4602, allocations: 8.969 kB / 0.5179 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002818/0.4605, allocations: 89.11 kB / 0.518 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001235/0.4617, allocations: 0.6109 MB / 0.5185 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002276/0.462, allocations: 126 kB / 0.5187 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002164/0.4622, allocations: 64.2 kB / 0.5187 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002799/0.465, allocations: 0.8593 MB / 0.5196 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.989e-05/0.4651, allocations: 1.438 kB / 0.5196 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001036/0.4652, allocations: 31.38 kB / 0.5196 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002172/0.4654, allocations: 37.62 kB / 0.5196 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002011/0.4674, allocations: 0.6256 MB / 0.5202 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006415/0.4739, allocations: 2.747 MB / 0.5229 GB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002801/0.4767, allocations: 0.8927 MB / 0.5238 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00119/0.4779, allocations: 325.3 kB / 0.5241 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.211e-05/0.478, allocations: 4.453 kB / 0.5241 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001249/0.4793, allocations: 349.5 kB / 0.5244 GB, free: 11.58 MB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 5.681e-06/0.4793, allocations: 0 / 0.5244 GB, free: 11.58 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.007731/0.487, allocations: 1.996 MB / 0.5264 GB, free: 10.39 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.4872, allocations: 116.1 kB / 0.5265 GB, free: 10.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00133/0.4885, allocations: 0.5154 MB / 0.527 GB, free: 10.03 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.121e-05/0.4886, allocations: 40.11 kB / 0.5271 GB, free: 9.988 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005013/0.4891, allocations: 361.9 kB / 0.5274 GB, free: 9.699 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002273/0.4894, allocations: 148.6 kB / 0.5275 GB, free: 9.586 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003003/0.4897, allocations: 120.6 kB / 0.5277 GB, free: 9.523 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002743/0.49, allocations: 368 kB / 0.528 GB, free: 9.188 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006835/0.4907, allocations: 227.7 kB / 0.5282 GB, free: 9.113 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008278/0.4915, allocations: 393.5 kB / 0.5286 GB, free: 8.836 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001276/0.4928, allocations: 0.6227 MB / 0.5292 GB, free: 8.414 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.433e-06/0.4928, allocations: 1.219 kB / 0.5292 GB, free: 8.414 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002175/0.495, allocations: 0.8995 MB / 0.5301 GB, free: 7.957 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.377e-05/0.4951, allocations: 47.09 kB / 0.5301 GB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.879e-05/0.4951, allocations: 7.859 kB / 0.5301 GB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004925/0.4956, allocations: 90.98 kB / 0.5302 GB, free: 7.887 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004778/0.4961, allocations: 109.3 kB / 0.5303 GB, free: 7.871 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003749/0.4999, allocations: 3.256 MB / 0.5335 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007154/0.5006, allocations: 40.66 kB / 0.5335 GB, free: 4.664 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001521/0.5008, allocations: 41.8 kB / 0.5336 GB, free: 4.652 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.0007814/0.5016, allocations: 265.7 kB / 0.5338 GB, free: 4.449 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002217/0.5018, allocations: 59.09 kB / 0.5339 GB, free: 4.418 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002307/0.5042, allocations: 0.7042 MB / 0.5346 GB, free: 3.965 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.5042, allocations: 5.812 kB / 0.5346 GB, free: 3.965 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.23e-05/0.5042, allocations: 5.5 kB / 0.5346 GB, free: 3.961 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.403e-05/0.5042, allocations: 13.44 kB / 0.5346 GB, free: 3.949 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004172/0.5084, allocations: 1.534 MB / 0.5361 GB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.5084, allocations: 5 kB / 0.5361 GB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004131/0.5089, allocations: 61.66 kB / 0.5362 GB, free: 2.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004301/0.5093, allocations: 95.03 kB / 0.5363 GB, free: 2.766 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.172e-05/0.5094, allocations: 18.14 kB / 0.5363 GB, free: 2.754 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002917/0.5123, allocations: 3.252 MB / 0.5395 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.5123, allocations: 9.469 kB / 0.5395 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002146/0.5145, allocations: 1.071 MB / 0.5405 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003388/0.5148, allocations: 176.6 kB / 0.5407 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001699/0.515, allocations: 27.42 kB / 0.5407 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000446/0.5155, allocations: 39.36 kB / 0.5407 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.458e-05/0.5156, allocations: 34.11 kB / 0.5408 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.83e-05/0.5156, allocations: 18.36 kB / 0.5408 GB, free: 14.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000456/0.5161, allocations: 351.8 kB / 0.5411 GB, free: 14.42 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5161, allocations: 4 kB / 0.5411 GB, free: 14.42 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008474/0.5169, allocations: 154.4 kB / 0.5413 GB, free: 14.4 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.0001892/0.5171, allocations: 121.9 kB / 0.5414 GB, free: 14.3 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00181/0.5189, allocations: 0.9143 MB / 0.5423 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.519, allocations: 1.25 kB / 0.5423 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009974/0.52, allocations: 496.2 kB / 0.5428 GB, free: 13.36 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000979/0.521, allocations: 152.5 kB / 0.5429 GB, free: 13.28 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003283/0.5243, allocations: 1.508 MB / 0.5444 GB, free: 12.29 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007381/0.525, allocations: 0.9681 MB / 0.5453 GB, free: 11.46 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003932/0.5254, allocations: 112.1 kB / 0.5454 GB, free: 11.41 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.5256, allocations: 44.16 kB / 0.5455 GB, free: 11.39 MB / 414.1 MB Notification: Performance of SimCode: time 9.11e-07/0.5256, allocations: 0 / 0.5455 GB, free: 11.39 MB / 414.1 MB Notification: Performance of Templates: time 0.01702/0.5426, allocations: 7.555 MB / 0.5528 GB, free: 5.164 MB / 414.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.mat","/var/lib/jenkins/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